Buildings that have characters doing an activity inside, or buildings that are affected by Maleficent's curse, cannot be stored and will be left in the Kingdom when you use "Store All."