Errors when trying to cook content for Windows

We are having problems cooking our game content for Windows 64-bit.
This is the stack trace I get when I click the “Cook Content” option:

https://scontent-bru2-1.xx.fbcdn.net/v/t1.15752-9/50641953_371287437020603_6155829114705018880_n.png?_nc_cat=111&_nc_ht=scontent-bru2-1.xx&oh=922087bb9943418c1f9d233ca2be0acd&oe=5CBE404F

I can see it says “Failed to identify the asset package that ‘…’ belongs to” and I would like to know how I can solve this.

I would like to say this also only happens when nativization is enabled, but we would like to know if there is another way to fix this other than disabling nativization.

Is this 4.21.2, the newest update? That seems to give me an assertion failure (perhaps a bug).

If not that version, the usual thing to try is exit UE4 editor, delete (or if you’re unsure, move to another folder) Binaries, Build, and Intermediate folders (maybe the Saved too, but you would lose saved games, for example), restart UE4 editor and try again. Sometimes that works.

We have tried deleting the folders you mentioned and we have restarted the editor, but unfortunately that didn’t change anything. I think it’s fixed now though, and if I can tell with certainty that it is fixed, I will post the answer here. Thank you for the reply anyway.

are you able to post your fix for this yet? i’ve just migrated from 4.18 to 4.21.2 and am having the same issue when nativizing blueprints specifically for a custom enum that was created in blueprints.

Hey, paradoc. No, unfortunately we have not found a fix without disabling nativization as of now.