You're unable to transfer multiple Shiny Pokémon, Lucky Pokémon, or Buddy Pokémon with whom you've reached Good Buddy status or above at a time. Additionally, certain Legendary and some Mythical Pokémon (e.g. Mew, Celebi) are not able to be selected for transfer.