I think I read something about a special ribbon for some event pokemon who make trade impossible.
https://bulbapedia.bulbagarden.net/wiki/List_of_Ribbons_in_the_games#Classic_Ribbon
EDIT : I thought it was about trading pokemon, in fact it's about transfering those pokemons to Sw/Sh ... So I don't know why you can't transfer it to your game ...