Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
This happened once to me, but sometimes when I try to pick a pokemon to use there is an errorthat states, "[Invalid choice] Can't choose for Team Preview: You do not have a Pokémon in slot NaN"