# Cooking failed

**URL:** <https://forums.unrealengine.com/t/cooking-failed/562235>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine, Cooking-Failed\
**Created:** [May 20, 2022, 7:29pm UTC](https://forums.unrealengine.com/t/cooking-failed/562235 "2022-05-20T19:29:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfabe78aa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alfabe78aa](https://forums.unrealengine.com/u/alfabe78aa)\
**Post date:** [May 20, 2022, 7:29pm UTC](https://forums.unrealengine.com/t/cooking-failed/562235/1 "2022-05-20T19:29:29Z")

</div>

so when ı was cooking my game this happened `UATHelper: Packaging (Windows (64-bit)): ERROR: System.Exception: Couldn't update resource UATHelper: Packaging (Windows (64-bit)): at ModuleResourceUpdate.SetData(Int32 ResourceId, ResourceType Type, Byte[] Data) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Win\WinResources.cs:line 265 UATHelper: Packaging (Windows (64-bit)): at ModuleResourceUpdate.SetIcons(Int32 ResourceId, GroupIconResource GroupIcon) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Win\WinResources.cs:line 270 UATHelper: Packaging (Windows (64-bit)): at BaseWinPlatform.StageBootstrapExecutable(DeploymentContext SC, String ExeName, FileReference TargetFile, StagedFileReference StagedRelativeTargetPath, String StagedArguments) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Win\WinPlatform.Automation.cs:line 153 UATHelper: Packaging (Windows (64-bit)): at BaseWinPlatform.GetFilesToDeployOrStage(ProjectParams Params, DeploymentContext SC) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Win\WinPlatform.Automation.cs:line 103 UATHelper: Packaging (Windows (64-bit)): at Win64Platform.GetFilesToDeployOrStage(ProjectParams Params, DeploymentContext SC) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Win\WinPlatform.Automation.cs:line 570 UATHelper: Packaging (Windows (64-bit)): at Project.CreateStagingManifest(ProjectParams Params, DeploymentContext SC) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 751 UATHelper: Packaging (Windows (64-bit)): at Project.CopyBuildToStagingDirectory(ProjectParams Params) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 4217 UATHelper: Packaging (Windows (64-bit)): at BuildCookRun.DoBuildCookRun(ProjectParams Params) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 216 UATHelper: Packaging (Windows (64-bit)): at BuildCookRun.ExecuteBuild() in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 39 UATHelper: Packaging (Windows (64-bit)): at AutomationTool.BuildCommand.Execute() in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 263 UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Automation.Execute(List`1 CommandsToExecute, Dictionary`2 Commands) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 547 UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Automation.Process(String[] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 511 UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Program.MainProc(String[] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Program.cs:line 175 UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Program.<>c __DisplayClass1_0.<Main>b__ 2() in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Program.cs:line 87 UATHelper: Packaging (Windows (64-bit)): at AutomationTool.InternalUtils.RunSingleInstance(Func`1 Main) in D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 739  
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Program.Main(String[] Arguments) in D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\Program.cs:line 87  
UATHelper: Packaging (Windows (64-bit)): (see C:\Users\rdltu\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE\_4.27\Log.txt for full exception trace)  
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=1 (Error\_Unknown)  
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED  
PackagingResults: Error: System.Exception: Couldn’t update resource  
PackagingResults: Error: Unknown Error  
LogSlate: Window ‘Output Log’ being destroyed  
LogSlate: Window ‘Output Log’ being destroyed`

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [May 21, 2022, 1:07am UTC](https://forums.unrealengine.com/t/cooking-failed/562235/2 "2022-05-21T01:07:12Z")

</div>

when cooking fails, at the very top of the message window, you’ll see a search bar. If you type “Error” without the quotes in there, you’ll see only the error messages highlighted in red. This will help you to narrow down the issue.  
Also, what engine are you using? 4.27 or 5 or something else?

---

<div class="post-metadata">

**Author:** ![alfabe78aa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alfabe78aa](https://forums.unrealengine.com/u/alfabe78aa)\
**Post date:** [May 22, 2022, 7:51pm UTC](https://forums.unrealengine.com/t/cooking-failed/562235/3 "2022-05-22T19:51:30Z")

</div>

Firstly I use 4.27 and ıI got this when ı typed that `MapCheck: Map check complete: 0 Error(s), 0 Warning(s), took 0,823ms to complete. UATHelper: Packaging (Windows (64-bit)): WARNING: Error while enumerating Visual Studio toolchains PackagingResults: Warning: Error while enumerating Visual Studio toolchains UATHelper: Packaging (Windows (64-bit)): LogInit: Display: Success - 0 error(s), 0 warning(s) UATHelper: Packaging (Windows (64-bit)): ERROR: System.Exception: Couldn't update resource PackagingResults: Error: System.Exception: Couldn't update resource UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=1 (Error_Unknown) PackagingResults: Error: Unknown Error`
