Every Pokemon in the National Dex has to be stored in the mobile Home app all at once in order to be eligible for the special Magearna. Some people that have done that and still had the same problem said they were able to fix it by moving all their Pokemon one box over and it corrected itself. Can't confirm it myself, but hopefully that does the trick.