This is a follow up to this thread: [Intermittent Cook Error "object was stripped out of the target package when [Content removed]
I’ll recap the essentials:
- We sometimes get the error “Content is missing from cook. Source package referenced an object in target package but the object was stripped out of the target package when saved.” while cooking our game.
- It started with UE 5.5.3, some time end of May, several months into us using said engine version.
- We updated to 5.6.0 in the meanwhile, still getting the error.
- Simply rerunning the build usually “fixes” it, letting the cook finish. Sometimes multiple cooks in a row fail, but (almost) never with the same assets affected.
- Occurrence is highly random. Sometimes 20 builds in a row work fine, then the next 3 have the error, then the next 5 work fine again.
- Happens on all our build agents as well as on local cooks.
- The source package mentioned in the error is always a “_Generated_” package from some level.
- The target is always a child blueprint in a blueprint hierarchy.
- The referenced object is always something inherited from the parent.
- It seems like when it happens, all instances of the blueprint in that level error out.
Here’s an example of such an error from one of our cooks:
01:54:27 LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the object was stripped out of the target package when saved. 01:54:27 Source package: /Game/GG/Levels/Atlantis/WP_Atlantis/_Generated_/47WZYRHL2HSDOVKRK0OC4RPQZ 01:54:27 Target package: /Game/GG/Props/SimpleInteractables/BP_Candle_01_Interactable 01:54:27 Referenced object: /Game/GG/Props/SimpleInteractables/BP_Candle_01_Interactable.BP_Candle_01_Interactable_C:SM_CandleFlame_Base_GEN_VARIABLEWe also have something new to report:
We were so annoyed by this error regularly popping up and torpedoing even our local test builds, that we tried “the stupid thing” and simply ignored it, continuing the cook.
The assumption was that some asset or component would then be missing from the cooked build, but so far it seems that everything behaves completely normal - in one cook it complained about a very specific mesh component, and upon checking the mesh component seems to be in the final build. So potentially this is a false positive?
Mentioning [mention removed] here ![]()
Ciao, Daniel!