How do I save and load everything in a level?

I have tried creating an array of actors saving that to the file and spawning them in a loop but i get an error saying that the class is null and cant be spawned: