Failed to unpersist

I’m getting a couple of errors saying:

“Failed to unpersist: Not loaded ID: 10572 FileID: 1576886872”

The numbers are different for each error. When I run the scene, they disappear and everything seems fine. However, the next time I reload the scene, I get them again. Our scenes are set to text format, and we had a merge conflict (using git). We resolved the conflict (maybe shouldn’t have…) and everything seemed to be okay. Except this error. I’ve checked the scene file and I can’t see any reference to the numbers in the errors…

Any suggestions on how to fix this, and avoid it in the future?

Edit: Saving the project and re-opening Unity seemed to make the errors go away. I’m guessing we should be closing Unity before merging, lol.

Help !

I have the same problem, but I closed Unity before merging, and the errors still there even if I re-save my scene (which doesn’t works anyway).
I can “play” the scene, but many many errors occur.

Our scene is in text format and I erased some parts for merging, but I noticed that some IDs have changed :

<<<<<<< HEAD
  channelMapping: []
--- !u!1001 1918848065
=======
--- !u!1001 2033419638
>>>>>>> e716eda32d254e42b54bfcb4371dac4e8015af9e

I removed the second part in all conflicts (which is the old one), but the IDs that were there are still used in another parts of the file that were not conflicting… so I guess it confuses Unity (and me) a lot O.O

Ho can we solve this problem?

EDIT : actually, both conflict parts are referenced in another parts of the file, I can’t choose any of them without breaking it :open_mouth:

For me it was fixed by using “save scene as…” , and then save it as “scene2.unity” or something. Then close unity, delete the original scene and rename “scene2.unity” to the original scene. Finally, I had to add back the object that was destroyed and causing the error.

3 Likes

Thank you @Immportaly007, that solved my problem too.

Thank you so much! Old posts can sometimes come in really handy