Couldn't save package, filename is too long in Unreal Engine

The cooker builds output paths by combining your project folder, Saved/Cooked, the platform name and the asset path. One of them went over the 260-character Windows path limit.

  • Blocking: the package fails
  • Cook stage: ExitCode=25
  • From user reports, not yet reproduced in our lab

Paste your log: find the cause in seconds Runs in your browser, nothing is uploaded.

Common causes

  • The project lives in a deep folder (Desktop, OneDrive, nested folders).
  • Long asset names or deep folder structures in Content.
  • Long path support (LongPathsEnabled) is not enabled on the build machine.

How to fix it

  1. Enable long paths in Windows: set HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled to 1 (or the matching group policy), then reboot.
  2. Move the project closer to the drive root, for example D:\Projects\MyProject.
  3. Shorten very long folder or asset names if the path is still near the limit.
  4. Cook again.

Questions

Can it be caught before cooking?

Yes, it can be checked before you start a cook: Compute the longest cooked output path and read the LongPathsEnabled registry value.

Reports and sources

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.