Error Unknown Cook Failure

Hi,

So I am trying to cook my archviz project but I got several error during the process. Some of them I found the way resolve them but I am now stock at this point. I tried some solution from other topics, but it didn’t work for me.

I post here the final part of the output Log in UE4 and I attached the log file error.

I hope you can help me.

Thank you!

PackagingResults:Error: Error Error Couldn't save package, filename is too long: D:/Documents/Unreal Projects/NAAM_atelier_artisan/Saved/Cooked/WindowsNoEditor/NAAM_atelier_artisan/Content/W_external_content/GTFreeMaterials/Textures/wood_JFfantasyWoodPlanksNailedClean/wood_JFfantasyWoodPlanksNailedClean_2k_alb.uasset
PackagingResults:Error: Error Error Couldn't save package, filename is too long: D:/Documents/Unreal Projects/NAAM_atelier_artisan/Saved/Cooked/WindowsNoEditor/NAAM_atelier_artisan/Content/W_external_content/GTFreeMaterials/Textures/wood_JFfantasyWoodPlanksNailedClean/wood_JFfantasyWoodPlanksNailedClean_2k_n.uasset
PackagingResults:Error: Error Error Couldn't save package, filename is too long: D:/Documents/Unreal Projects/NAAM_atelier_artisan/Saved/Cooked/WindowsNoEditor/NAAM_atelier_artisan/Content/W_external_content/GTFreeMaterials/Textures/wood_JFfantasyWoodPlanksNailedClean/wood_JFfantasyWoodPlanksNailedClean_2k_mask.uasset
PackagingResults:Error: Error Error Couldn't save package, filename is too long: D:/Documents/Unreal Projects/NAAM_atelier_artisan/Saved/Cooked/WindowsNoEditor/NAAM_atelier_artisan/Content/W_external_content/GTFreeMaterials/Textures/wood_JFfantasyWoodPlanksNailedClean/wood_JFfantasyWoodPlanksNailedClean_2k_h.uasset
PackagingResults:Error: Error Error Couldn't save package, filename is too long: D:/Documents/Unreal Projects/NAAM_atelier_artisan/Saved/Cooked/WindowsNoEditor/NAAM_atelier_artisan/Content/W_external_conte
PackagingResults:Error: Error Error Couldn't save package, filename is too long: D:/Documents/Unreal Projects/NAAM_atelier_artisan/Saved/Cooked/WindowsNoEditor/NAAM_atelier_artisan/Content/W_external_content/GTFreeMaterials/Textures/wood_JFfantasyWoodPlanksNailedClean/wood_JFfantasyWoodPlanksNailedClean_2k_g.uasset
PackagingResults:Error: Error Error Couldn't save package, filename is too long: D:/Documents/Unreal Projects/NAAM_atelier_artisan/Saved/Cooked/WindowsNoEditor/NAAM_atelier_artisan/Content/W_external_content/GTFreeMaterials/Textures/Metal_SciFiMetalWalkWayPowered/Metal_SciFiMetalWalkWayPowered_2k_mask.uasset


MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: Execution of commandlet took:  198.47 seconds
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 201.5863513s to run UE4Editor-Cmd.exe, ExitCode=1
MainFrameActions: Packaging (Windows (64-bit)): Project.Cook: Cook failed. Deleting cooked data.
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Cook failed. ---> AutomationTool.AutomationException: BUILD FAILED: Failed while running Cook for D:\Documents\Unreal Projects\NAAM_atelier_artisan\NAAM_atel
MainFrameActions: Packaging (Windows (64-bit)): ier_artisan.uproject; see log C:\Users\Alexandre\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Softwares+Epic+Games+UE_4.12\Cook-2017.04.05-18.14.33.txt
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunCommandlet(FileReference ProjectName, String UE4Exe, String Commandlet, String Parameters)
MainFrameActions: Packaging (Windows (64-bit)):    at Project.Cook(ProjectParams Params)
MainFrameActions: Packaging (Windows (64-bit)):    --- End of inner exception stack trace ---
MainFrameActions: Packaging (Windows (64-bit)):    at Project.Cook(ProjectParams Params)
MainFrameActions: Packaging (Windows (64-bit)):    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.BuildCommand.Execute()
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.Automation.Process(String[] CommandLine)
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.Program.Main()
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
MainFrameActions: Packaging (Windows (64-bit)): Domain_ProcessExit
MainFrameActions: Packaging (Windows (64-bit)): copying UAT log files...
MainFrameActions: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Cook Failure
LogCollectionManager: Rebuilt the object cache for 1 collections in 0.000002 seconds (found 0 objects)

Hello Entrestudio,

Based on the logs provided, you have several files that have too long of a package name to be cooked correctly. This kind of error can cause a build to fail. One way to fix this issue is to change the folder location of your project, this can shorten the package. If your project folder is deeply nested, I recommend moving closer to the root of whatever drive it is on.

Thanks you , I saw the log information about the files that have too long name but I thought this wont be the reason why it crash and I was wondering how I can do it without rename it all, you solution will be quicker. I will try this!