Unreal Engine cook and packaging errors
The errors that make Unreal Engine 5 packaging fail, what they mean and how to fix them. Paste your log below to find which one you have.
Generic summary messages
Final messages printed by UAT that hide the real error higher up in the log.
-
PackagingResults: Error: Unknown Cook Failure (ExitCode=25) in Unreal Engine
PackagingResults: Error: Unknown Cook Failure
Environment & toolchain
Visual Studio, Windows SDK, .NET, Turnkey and file permissions on the build machine.
-
Turnkey returned an error, code 1 when packaging in Unreal Engine
Turnkey returned an error, code 1Blocking -
The SDK for Windows is not installed properly in Unreal Engine
The SDK for Windows is not installed properlyBlocking -
Platform Win64 is not a valid platform to build in Unreal Engine
Platform Win64 is not a valid platform to build. Check that the SDK is installed properlyBlocking -
Access to the path is denied when packaging in Unreal Engine
Access to the path '...' is deniedBlocking -
error CS0579 Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute in Unreal Engine
error CS0579: Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute [...\Build\Scripts\<Project>.Automation.csproj]Blocking
Content & references
Missing or uncookable assets, broken references, materials, textures and redirectors.
-
Content is missing from cook: NeverCook Bridge content in Unreal Engine
Content is missing from cook. Target package was marked NeverCook (/Bridge/)Blocking -
LogCook: Error: Content is missing from cook in Unreal Engine
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.Blocking -
Package has a dependency on package which does not exist: soft references in Unreal Engine
LogCook: Display: Package ... has a dependency on package ... which does not existNot blocking Reproduced in our lab -
Failed to load: Can't find file (hard reference) in Unreal Engine
Failed to load '...': Can't find fileNot blocking Reproduced in our lab -
Unresolved redirectors break packaging in Unreal Engine
Packaging fails because of unresolved redirectorsBlocking -
Failed to compile Material for platform PCD3D_SM6: Missing input texture
Failed to compile Material for platform PCD3D_SM6 ... Missing input textureBlocking -
Assertion failed in TextureCompressorModule.cpp during cook in Unreal Engine
Assertion failed: ... TextureCompressorModule.cppBlocking
Plugins & third-party code
Third-party plugins, the Fab plugin, plugin descriptors and plugin crashes during cook.
-
Assertion failed: CurrentApplication.IsValid() in UnrealEditor-Fab.dll
Assertion failed: CurrentApplication.IsValid() in UnrealEditor-Fab.dllBlocking -
FFabAssetMetadata::IsQuixel is not initialized properly in Unreal Engine
BoolProperty FFabAssetMetadata::IsQuixel is not initialized properly. Module:FabBlocking -
FilenameToLongPackageName failed to convert: Fab plugin content in Unreal Engine
FilenameToLongPackageName failed to convert '.../Plugins/Fab/...'Blocking -
Unreal Engine: Expecting to find a type to be declared in a module rules named
Expecting to find a type to be declared in a module rules named '...'Blocking Reproduced in our lab -
EXCEPTION_ACCESS_VIOLATION during cook in Unreal Engine: a plugin crashes the cook
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION in UnrealEditor-<Plugin>.dll during cookBlocking Reproduced in our lab -
error CS0101 already contains a definition: duplicate plugin in Unreal Engine
error CS0101: The namespace '<global namespace>' already contains a definition for '...'Blocking Reproduced in our lab -
Could not find definition for module when packaging in Unreal Engine
Could not find definition for module '...', (referenced via ... -> <Plugin>.uplugin)Blocking Reproduced in our lab
Target platforms
Android, Quest, iOS and Mac toolchains.
-
Android packaging in Unreal Engine: Execution failed for task
Execution failed for task ':app:...' (rungradle.bat)Blocking -
Failed to finalize the .app with Xcode in Unreal Engine
Failed to finalize the .app with XcodeBlocking
Engine upgrades
Settings and shader issues that appear after moving a project to a newer engine version.
-
Virtual shader source file name should be absolute in Unreal Engine
LogShaders: Error: Virtual shader source file name ... should be absoluteBlocking
Paths & names
Path length, non-ASCII or synced folders, reserved folder names.
-
Couldn't save package, filename is too long in Unreal Engine
Couldn't save package, filename is too longBlocking -
fatal error C1083: cannot open SharedPCH file in Unreal Engine
fatal error C1083: Cannot open ... SharedPCH (OneDrive or non-ASCII project path)Blocking -
Reserved folder names like Apple break packaging in Unreal Engine
Packaging fails because of a reserved folder name (e.g. "Apple")Blocking
Decode your log
Paste your packaging log, or drop Log.txt with Cook-*.txt / UBA-*.txt. The analysis runs in your browser: the log is never uploaded.
Get notified when the in-editor plugin launches
The same decoder inside the Unreal Editor, with checks that catch these errors before you cook.