LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.

During the cook process of packaging I get a bunch of these errors? I tried using this cook settings and without: -AdditionalCookerOptions=“-cookprocesscount=4”. 1Either way I see errors. Sometimes without that multi-thread cook setting, it works, but not always.

LogCook: Error: Content is missing from cook. Source package referenced an object in target package but the target package was marked NeverCook or is not cookable for the target platform.
    Source package: /Landmass/Landscape/BlueprintBrushes/Materials/Sprite/M_BrushSprite_01
    Target package: /Engine/EditorResources/S_Terrain
    Referenced object: /Engine/EditorResources/S_Terrain

I too am facing this. My project doesn’t even use Landmass. Still, it seemed to be ticked in the plugins window in the editor. Unticking it seemed to solve the issue.

Same problem here on another asset not related to landmass,

UATHelper: Packaging (Windows): 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.
UATHelper: Packaging (Windows): Source package: /Game/A_DarkEvil/Maps/WP/L_DarkEvill_WP_OK/Generated/7JC11A382LKLD2L2RX43207AC
UATHelper: Packaging (Windows): Target package: /AscentCombatFramework/Blueprints/AI/AIs/ACFAICharacterBP
UATHelper: Packaging (Windows): Referenced object: /AscentCombatFramework/Blueprints/AI/AIs/ACFAICharacterBP.ACFAICharacterBP_C:ACF Effects Manager Comp_GEN_VARIABLE

1 Like

Same issue here are you on unreal 5.4 by chance this might be a issue with 5.4

I managed to fix a few of my assets with this issue by

  1. Marking the variable with the error as editor only compiling.
  2. Unticking editor only and compiling agian.
    3.Packaging/Cooking Content agian.

I have it on 5.4, fine on 5.3.2

4 Likes

I get multiples of the same error as OP, mainly about Landmass but some others too.
The fix/workaround that works for me is:

Project Settings → Packaging → Advanced → Uncheck “Exclude editor content when cooking”

Not sure yet of the consequences but at least packaging works and my build plays as expected.

6 Likes

Exclude Editor Content didn’t work for me. I had some meshes and sounds referenced in Engine that refuse to cook for Android. No idea why, fixed it by:

1 - Moving them into my plugins/project so they get re-referenced
2 - Then re-running Setup.bat restores the original engine copies that I moved.

1 Like

I also have this problem in 5.4.1. I made a copy of my 5.2 project (which packages fine), tried to package, and I get about ~200 of the “Content is missing from cook” errors that look similar to this:

UATHelper: Packaging (Windows): 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.
UATHelper: Packaging (Windows):    Source package: /Game/Blueprints/Story/StoryInteractable_Core_MistVault
UATHelper: Packaging (Windows):    Target package: /Game/Blueprints/Story/StoryInteractable_Core
UATHelper: Packaging (Windows):    Referenced object: /Game/Blueprints/Story/StoryInteractable_Core.StoryInteractable_Core_C:BlockerCapsule_GEN_VARIABLE
2 Likes

I’ve found a solution from this post.
https://forums.unrealengine.com/t/quixel-megascans-fails-to-build-to-the-apple-vision-pro-in-5-4/1819932/4?u=rayhans

I was getting the problem from this two plugin.
Epic Games\UE_5.4\Engine\Plugins\Bridge\Bridge.uplugin"
Epic Games\UE_5.4\Engine\Plugins\Interchange\Runtime\Interchange.uplugin"

So I just edited the files and added “Android” in the SupportedTargetPlatforms for my android build. And it fixed the issue.

6 Likes

If you’re getting this error, you can try adding this to your DefaultEditor.ini:

[CookSettings]
CookContentMissingSeverity=Warning

That downgrades the error to a warning. If it was spurious you’ll be okay, if not you probably won’t be :-D.

19 Likes

Thanks, this allowed me to successfully cook and verify that my ~200 “content is missing from cook” errors are indeed spurious.

1 Like

Solved my packing with Quixel Bridge assets for Android, thank you so much!

1 Like

Thank you so much.

1 Like

Worked for me, Thanks.

For all of you still facing this issue it has been resolved in 5.4.2.
Found last in the change list → 5.4.2 Change List
[UE-213910 Cook error (Content is missing from cook) raised when cooking deep blueprint hierarchy]

2 Likes

I had the same issue, 5.4.2 did not fix it.
One of my asset title contained an accent, rename it solved the issue

2 Likes

I’ve fixed it.

In my case, I recreate all the materials from ground up. I think there are some changes between 5.3 and 5.4 that material files are changed and migrating doesnt fix it automatically.

1 Like

TRY THIS >>> I THINK ITS USEFUL

3 Likes

UE5.4.3 it is not fixed yet

2 Likes