# Cook Error : Filename too long

**URL:** <https://forums.unrealengine.com/t/cook-error-filename-too-long/384668>\
**Category:** Platform & Builds\
**Tags:** Cooking, unreal-engine, UE4, question\
**Created:** [February 11, 2017, 10:13pm UTC](https://forums.unrealengine.com/t/cook-error-filename-too-long/384668 "2017-02-11T22:13:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![primacy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@primacy](https://forums.unrealengine.com/u/primacy)\
**Post date:** [February 11, 2017, 10:13pm UTC](https://forums.unrealengine.com/t/cook-error-filename-too-long/384668/1 "2017-02-11T22:13:46Z")

</div>

Hey so I am trying to package my game and I am getting cooking errors because the filename is too long. However, this is not my file so there is no way for me to change the filename without messing up other internal things. Here it is below:

UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.02.11-22.06.56:710][0]CookResults:Error: Error Couldn’t save package, filename is too long: C:/Users/c.fields/Documents/DarkShotVR/Engine/Content/Functions/Engine\_MaterialFunctions02/ExampleContent/PivotP  
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.02.11-22.06.56:711][0]LogCook:Error: Couldn’t save package, filename is too long :C:/Users/c.fields/Documents/DarkShotVR/Engine/Content/Functions/Engine\_MaterialFunctions02/ExampleContent/PivotPainter2/SimplePivotPainterExample\_rgb\_XVector\_a\_XExtentDividedby2048reaches2048\_UV\_2

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [February 14, 2017, 9:39pm UTC](https://forums.unrealengine.com/t/cook-error-filename-too-long/384668/2 "2017-02-14T21:39:21Z")

</div>

Primacy,

From what I can see, your character count isn’t too long - it’s at the most 225 characters out of 256. Please delete your Intermediate and Saved folders from your project and try again. Please upload the full error output log when you try and package again.

Thank you!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9f67398f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9f67398f](https://forums.unrealengine.com/u/anonymous_user_9f67398f)\
**Post date:** [February 15, 2017, 12:27am UTC](https://forums.unrealengine.com/t/cook-error-filename-too-long/384668/3 "2017-02-15T00:27:38Z")

</div>

Filename too long is why I create projects in the C:\ .

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [February 17, 2017, 9:14pm UTC](https://forums.unrealengine.com/t/cook-error-filename-too-long/384668/4 "2017-02-17T21:14:45Z")

</div>

Do you have a log you could provide?

---

<div class="post-metadata">

**Author:** ![primacy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@primacy](https://forums.unrealengine.com/u/primacy)\
**Post date:** [February 17, 2017, 9:39pm UTC](https://forums.unrealengine.com/t/cook-error-filename-too-long/384668/5 "2017-02-17T21:39:13Z")

</div>

So I actually just deleted the folder to fix the error. If it’s marked as sample content thenthere’s no reason it should even be considered for cooking and packaging on my game.

---

<div class="post-metadata">

**Author:** ![jackson1231](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jackson1231](https://forums.unrealengine.com/u/jackson1231)\
**Post date:** [April 21, 2017, 9:35am UTC](https://forums.unrealengine.com/t/cook-error-filename-too-long/384668/6 "2017-04-21T09:35:47Z")

</div>

You should try out Long Path Tool. I had the same problem, but this solved them all! 😃

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_59f0923a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_59f0923a](https://forums.unrealengine.com/u/anonymous_user_59f0923a)\
**Post date:** [March 5, 2018, 7:26pm UTC](https://forums.unrealengine.com/t/cook-error-filename-too-long/384668/7 "2018-03-05T19:26:48Z")

</div>

How it can be solved using Long Path tool ? I have this error on many assets on my project renaming is a tedious task and leads to some naming convention issues in my project, please let me know how it can be done without renaming or deleting .Thanks

---

<div class="post-metadata">

**Author:** ![Anna\_lopezz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anna\_lopezz](https://forums.unrealengine.com/u/Anna_lopezz)\
**Post date:** [January 18, 2026, 2:30pm UTC](https://forums.unrealengine.com/t/cook-error-filename-too-long/384668/8 "2026-01-18T14:30:40Z")

</div>

If you get the ‘Filename too long’ error, you can try LongPathTool to handle long file paths.

---

<div class="post-metadata">

**Author:** ![annalopez11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@annalopez11](https://forums.unrealengine.com/u/annalopez11)\
**Post date:** [February 23, 2026, 3:46pm UTC](https://forums.unrealengine.com/t/cook-error-filename-too-long/384668/9 "2026-02-23T15:46:19Z")

</div>

I would suggest using Long Path Tool to solve this error.

---

<div class="post-metadata">

**Author:** ![annalopez11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@annalopez11](https://forums.unrealengine.com/u/annalopez11)\
**Post date:** [February 24, 2026, 5:54am UTC](https://forums.unrealengine.com/t/cook-error-filename-too-long/384668/10 "2026-02-24T05:54:19Z")

</div>

I recommend using the Long Path Tool to resolve this issue.
