# Error when packing a file on the Windows platform 

**URL:** <https://forums.unrealengine.com/t/error-when-packing-a-file-on-the-windows-platform/2598396>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [July 9, 2025, 1:09pm UTC](https://forums.unrealengine.com/t/error-when-packing-a-file-on-the-windows-platform/2598396 "2025-07-09T13:09:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SimaFans](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SimaFans](https://forums.unrealengine.com/u/SimaFans)\
**Post date:** [July 9, 2025, 1:09pm UTC](https://forums.unrealengine.com/t/error-when-packing-a-file-on-the-windows-platform/2598396/1 "2025-07-09T13:09:49Z")

</div>

Hi, I can’t pack my work, and I don’t understand what’s wrong. Can someone help me? The event log entry is below.  
LogTurnkeySupport: Warning: Turnkey failed to run properly, full Turnkey output:  
Running AutomationTool…  
Using bundled DotNet SDK version: 6.0.302  
Starting AutomationTool…  
Parsing command line: -ScriptsForProject=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” Turnkey -utf8output -WaitForUATMutex -command=VerifySdk -ReportFilename=C:/Users/user/AppData/Local/inZOIModKit/Intermediate/TurnkeyReport\_3.log -log=C:/Users/user/AppData/Local/inZOIModKit/Intermediate/TurnkeyLog\_3.log -project=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” -Device=Win64@DESKTOP-H3PVNA1  
Initializing script modules…  
Total script module initialization time: 0.10 s.  
Using C:\Program Files\Epic Games\inZOIMODkit\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe  
Executing commands…  
Failed to find command Turnkey  
(see C:\Users\user\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+inZOIMODkit\Log.txt for full exception trace)  
AutomationTool executed for 0h 0m 0s  
AutomationTool exiting with ExitCode=1 (Error\_Unknown)  
BUILD FAILED  
LogSlate: Window ‘SDK не настроен’ being destroyed  
LogUObjectHash: Compacting FUObjectHashTables data took 0.51ms  
LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ““C:/Program Files/Epic Games/inZOIMODkit/Engine/Build/BatchFiles/RunUAT.bat” -ScriptsForProject=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=50152 -project=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” -unrealexe=“C:\Program Files\Epic Game  
s\inZOIMODkit\Engine\Binaries\Win64\UnrealEditor-Cmd.exe” -platform=Win64 -installed -stage -archive -package -build -clean -pak -iostore -compressed -prereqs -archivedirectory=“C:/Users/user/Documents/inZOI/Mods”” ]  
UATHelper: Упаковка (Windows): Running AutomationTool…  
UATHelper: Упаковка (Windows): Using bundled DotNet SDK version: 6.0.302  
UATHelper: Упаковка (Windows): Starting AutomationTool…  
UATHelper: Упаковка (Windows): Parsing command line: -ScriptsForProject=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=50152 -project=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=“C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/inZOIModKit.uproject” -unrealexe=“C:\Program Files\Epic Games\inZOIMODkit\Engine\Binaries\Win64\UnrealEditor-Cmd.exe” -platform=Win64 -installed -s  
tage -archive -package -build -clean -pak -iostore -compressed -prereqs -archivedirectory=C:/Users/user/Documents/inZOI/Mods  
UATHelper: Упаковка (Windows): Initializing script modules…  
UATHelper: Упаковка (Windows): Total script module initialization time: 0.11 s.  
UATHelper: Упаковка (Windows): Using C:\Program Files\Epic Games\inZOIMODkit\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe  
UATHelper: Упаковка (Windows): Executing commands…  
UATHelper: Упаковка (Windows): Failed to find command Turnkey  
UATHelper: Упаковка (Windows): (see C:\Users\user\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+inZOIMODkit\Log.txt for full exception trace)  
UATHelper: Упаковка (Windows): AutomationTool executed for 0h 0m 0s  
UATHelper: Упаковка (Windows): AutomationTool exiting with ExitCode=1 (Error\_Unknown)  
UATHelper: Упаковка (Windows): BUILD FAILED  
PackagingResults: Error: Unknown Error

---

<div class="post-metadata">

**Author:** ![brs-sebascova](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brs-sebascova/32/1052483_2.png) [@brs-sebascova](https://forums.unrealengine.com/u/brs-sebascova)\
**Post date:** [July 9, 2025, 10:04pm UTC](https://forums.unrealengine.com/t/error-when-packing-a-file-on-the-windows-platform/2598396/2 "2025-07-09T22:04:13Z")

</div>

Hello there @SimaFans!

From your provided log, it seems the main error is “Failed to find command Turnkey”, meaning that the whole packing process is failing due UE not being able to find or execute the Turnkey command. Your engine installation is mostly likely corrupt, or missing components.

So, the first step is to verify your install. In the Epic Games Launcher, navigate to your UE build, then click on the dropdown arrow next to it and select “Verify.” This will epair any missing or corrupted files. If the issue persists after the process, I would suggest a full reinstallation.

The next step to check on your local setup, is to make sure that all elements related to VS and the SDK have the correct version for your UE version. You can check that following the doc below:

> **[Setting Up Visual Studio Development Environment for C++ Projects in Unreal...](https://dev.epicgames.com/documentation/en-us/unreal-engine/setting-up-visual-studio-development-environment-for-cplusplus-projects-in-unreal-engine)**
>
> Tips, tricks, and techniques for setting up Visual Studio to work with Unreal Engine.

Finally, perform a clear cache of your project, via deleting `Intermediate`, `Saved`, and `.vs` folders from your main directory. After that, regenerate your project files from VS. Hope this helps!

---

<div class="post-metadata">

**Author:** ![SimaFans](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SimaFans](https://forums.unrealengine.com/u/SimaFans)\
**Post date:** [July 10, 2025, 5:09am UTC](https://forums.unrealengine.com/t/error-when-packing-a-file-on-the-windows-platform/2598396/3 "2025-07-10T05:09:19Z")

</div>

Thank you very much for your reply, I will try and write back.

---

<div class="post-metadata">

**Author:** ![SimaFans](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SimaFans](https://forums.unrealengine.com/u/SimaFans)\
**Post date:** [July 10, 2025, 9:24am UTC](https://forums.unrealengine.com/t/error-when-packing-a-file-on-the-windows-platform/2598396/4 "2025-07-10T09:24:23Z")

</div>

I tried to follow all the instructions. I installed VS2022, SDK, and .Net 8.0. I went back to my project and tried to package it. I’m working on Modkit for Inzoi. But I got rejected again. Please take a look. What’s wrong with me? Thank you in advance

UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (289 \>= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Content/Characters/Costumes/Child/Full/Swimsuit/Swim\_Female001/Textures/C\_Costume\_Full\_Swim\_Female001\_002\_D.uasset  
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (289 \>= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Content/Characters/Costumes/Child/Full/Swimsuit/Swim\_Female001/Textures/C\_Costume\_Full\_Swim\_Female001\_001\_N.uasset  
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (291 \>= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Content/Characters/Costumes/Child/Full/Swimsuit/Swim\_Female001/Textures/C\_Costume\_Full\_Swim\_Female001\_001\_ARM.uasset  
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (274 \>= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Content/UI/Icon/CharacterCustomize/Costume/Full/Child/Icon\_C\_Costume\_Full\_Swim\_Female001\_001.uasset  
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (264 \>= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Content/MetaHumans/Common/Materials/Textures/Clothing/Wrinkles/crease\_a\_tileable\_N.uasset  
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (289 \>= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Content/Characters/Costumes/Child/Full/Swimsuit/Swim\_Female001/Textures/C\_Costume\_Full\_Swim\_Female001\_002\_M.uasset  
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (291 \>= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Content/Characters/Costumes/Child/Full/Swimsuit/Swim\_Female001/Materials/MI\_C\_Costume\_Full\_Swim\_Female001\_001.uasset  
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: Couldn’t save package, filename is too long (283 \>= 260): C:/Program Files/Epic Games/inZOIMODkit/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Saved/Cooked/Windows/inZOIModKit/Mods/CAZ\_W\_C\_GiraffesDress\_SimaFans\_94114F8F/Content/Characters/Costumes/Child/Full/Swimsuit/Swim\_Female001/Mesh/SKM\_C\_Costume\_Full\_Swim\_Female001.uasset  
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Warning: Unable to find package for cooking /Game/ThirdPerson/Maps/ThirdPersonMap. Instigator: { GameDefaultObject: GameDefaultMap }.  
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Warning: Could not resolve package /Game/Mod/Sample\_Build/mod\_7A89C62769D6 from ../../../inZOIModKit/Releases/UGCExampleGame\_v1/Windows/Metadata/DevelopmentAssetRegistry.bin  
UATHelper: Packaging (Windows): LogInit: Display:  
UATHelper: Packaging (Windows): LogInit: Display: Failure - 8 error(s), 2 warning(s)  
UATHelper: Packaging (Windows): LogInit: Display:  
UATHelper: Packaging (Windows): Execution of commandlet took: 1.35 seconds  
UATHelper: Packaging (Windows): LogShaderCompilers: Display: Shaders left to compile 0  
UATHelper: Packaging (Windows): LogStudioTelemetry: Display: Shutdown StudioTelemetry Module  
UATHelper: Packaging (Windows): Took 37,01s to run UnrealEditor-Cmd.exe, ExitCode=1  
UATHelper: Packaging (Windows): Cook failed.  
UATHelper: Packaging (Windows): (see C:\Users\user\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+inZOIMODkit\Log.txt for full exception trace)  
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 42s  
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=25 (Error\_UnknownCookFailure)  
UATHelper: Packaging (Windows): BUILD FAILED

---

<div class="post-metadata">

**Author:** ![brs-sebascova](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brs-sebascova/32/1052483_2.png) [@brs-sebascova](https://forums.unrealengine.com/u/brs-sebascova)\
**Post date:** [July 10, 2025, 1:44pm UTC](https://forums.unrealengine.com/t/error-when-packing-a-file-on-the-windows-platform/2598396/5 "2025-07-10T13:44:25Z")

</div>

Hello again!

The good news is that you were able to resolve the Turnkey issue, as that entry is no longer present in your log. Now we are facing a different problem, filename lenghts:

> _**Couldn’t save package, filename is too long (291 \>= 260)**_

Windows has a default max path limit of 260 characters, and your Modkit is creating long file structures during packaging, thus triggering the build failure. There are two ways to solve this, we can either allow long paths in your system, or migrate the project to a short root folder.

In order to enable long paths, there are two methods, please check them in the guide below:

> **[Enable or Disable Win32 long paths in Windows 10 | NinjaOne](https://www.ninjaone.com/blog/how-to-enable-or-disable-win32-long-paths/)**
>
> Bypass the default character limit, prevent errors, and improve workflow by learning how to disable or enable Win32 long paths in Windows 10.

If the issue continues, it means the paths are still too long. Please move your project to the system root, for example, **C:\inZOIModKit**. After these changes, please try to pack again.

---

<div class="post-metadata">

**Author:** ![SimaFans](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SimaFans](https://forums.unrealengine.com/u/SimaFans)\
**Post date:** [July 10, 2025, 2:07pm UTC](https://forums.unrealengine.com/t/error-when-packing-a-file-on-the-windows-platform/2598396/6 "2025-07-10T14:07:22Z")

</div>

My God, thank you, kind person! Everything is packed! It hasn’t been a year :))) I should have written earlier. I am very grateful for your help
