Can't save asset

When I try to save my asset I get this error:
“The Asset <…> being saved does not have any of the provided object flags (0x10000002); saving the package would cause data loss. Run with -dpcvars=save.FixupStandaloneFlags=1 to add the RF_Standalone flag”

How can I solve?
(I’m using UE5 Preview 1)

13 Likes

Using launcher version?
Try to verify the engine. See if everything is complete and nothing went wrong during install.
On launcher click on the down arrow of installed engine next to launch and click verify.

I verified the editor but the error persists.

Solved running console command “save.FixupStandaloneFlags 1” before saving the asset.

28 Likes

Got this too. You know what causes it?

2 Likes

This worked for me, thanks

2 Likes

Worked for me too thanks!

Well that is some random fix for a random issue…
Wonder why doesn’t it just do it by itself in the background

2 Likes

What does

save.FixupStandaloneFlags 1

do exactly? What if we are entering this command and rebuild everything that is standalone…

I ran into a similar situation writing my own exporter today. There are cases where this happens when you have a transient object and you try to save it without the proper flags. Running the console command seems to just explicitly set the flags. Ideally I think the flags should be set properly with FSavPackageArgs before saving the file.