I’ve just upgraded several projects from 4.18 to 4.21.
In one of the projects, I’m calling UPackage::SavePackage and I’m getting this error:
LogSavePackage: Error: Unexpected custom version “Dev-Editor” found when saving /Game/Maps/BaseLevel. This usually happens when export tagging and final serialization paths differ. Package will not be saved.
I’ve tried clearing out the cache and intermediate files, re-building, re-saving in editor, but the error is still there.
For me its was related with Niagara Assets. I manage to solve selecting the problematic assets and clicking with mouse right button and choosing: “mark dependent compatible assets dirty”. Apparently in this case, the problems is those assets have dependency of some Niagara code which got changed or removed from newer Unreal version and this updates those dependencies. So it fix the problem in my case.