# Packaging error

**URL:** <https://forums.unrealengine.com/t/packaging-error/542046>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, UE5-0, packaging-projects, question\
**Created:** [April 28, 2022, 3:06pm UTC](https://forums.unrealengine.com/t/packaging-error/542046 "2022-04-28T15:06:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Me0071](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Me0071](https://forums.unrealengine.com/u/Me0071)\
**Post date:** [April 28, 2022, 3:06pm UTC](https://forums.unrealengine.com/t/packaging-error/542046/1 "2022-04-28T15:06:19Z")

</div>

Hello.  
I have been having this issue where i cant package my project.

my error massage:  
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: GlobalDefaultGameMode contains a redirected reference ‘/Game/Blueprints/GameModes/BP\_DefGameMode’. The intended asset will fail to load in a packaged build. Select the intended asset again in Project Settings to fix this issue.  
UATHelper: Packaging (Windows): LogInit: Display: LogCook: Error: GlobalDefaultServerGameMode contains a redirected reference ‘/Game/Blueprints/GameModes/BP\_DefMarsGameMode’. The intended asset will fail to load in a packaged build. Select the intended asset again in Project Settings to fix this issue.  
UATHelper: Packaging (Windows): LogInit: Display:  
UATHelper: Packaging (Windows): LogInit: Display: Failure - 2 error(s), 0 warning(s)  
UATHelper: Packaging (Windows): LogInit: Display:  
UATHelper: Packaging (Windows): Execution of commandlet took: 15.89 seconds  
UATHelper: Packaging (Windows): LogShaderCompilers: Display: ================================================  
UATHelper: Packaging (Windows): LogShaderCompilers: Display: === FShaderJobCache stats ===  
UATHelper: Packaging (Windows): LogShaderCompilers: Display: Total job queries 0, among them cache hits 0 (0.00%)  
UATHelper: Packaging (Windows): LogShaderCompilers: Display: Tracking 0 distinct input hashes that result in 0 distinct outputs (0.00%)  
UATHelper: Packaging (Windows): LogShaderCompilers: Display: RAM used: 0.00 MB (0.00 GB) of 819.20 MB (0.80 GB) budget. Usage: 0.00%  
UATHelper: Packaging (Windows): LogShaderCompilers: Display: === Shader Compilation stats ===  
UATHelper: Packaging (Windows): LogShaderCompilers: Display: Shaders Compiled: 0  
UATHelper: Packaging (Windows): LogShaderCompilers: Display: Jobs assigned 0, completed 0 (0.00%)  
UATHelper: Packaging (Windows): LogShaderCompilers: Display: Time at least one job was in flight (either pending or executed): 0.00 s  
UATHelper: Packaging (Windows): LogShaderCompilers: Display: ================================================  
UATHelper: Packaging (Windows): Took 24.663737400000002s to run UnrealEditor-Cmd.exe, ExitCode=1  
UATHelper: Packaging (Windows): ERROR: Cook failed.  
UATHelper: Packaging (Windows): (see C:\Users\pmate\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+UE\_5.0\Log.txt for full exception trace)  
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 25s  
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=25 (Error\_UnknownCookFailure)  
UATHelper: Packaging (Windows): BUILD FAILED  
PackagingResults: Error: Unknown Cook Failure

I use UE5

---

<div class="post-metadata">

**Author:** ![\_Vagabond](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_Vagabond](https://forums.unrealengine.com/u/_Vagabond)\
**Post date:** [June 14, 2022, 4:24pm UTC](https://forums.unrealengine.com/t/packaging-error/542046/2 "2022-06-14T16:24:47Z")

</div>

Having same issue in 5.0.2

---

<div class="post-metadata">

**Author:** ![metroid2k](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/metroid2k/32/550037_2.png) [@metroid2k](https://forums.unrealengine.com/u/metroid2k)\
**Post date:** [July 9, 2022, 9:03pm UTC](https://forums.unrealengine.com/t/packaging-error/542046/3 "2022-07-09T21:03:41Z")

</div>

Going to add to this because I just hit the same issue and it took me more googling than I expected to fix it.

**First up, the solution** :

1. Go into **Project Settings** \> **Maps & Modes** \> **Default Modes** and set the **Default GameMode** to **GameModeBase**.
2. Run a build - This part may be optional, but I ended up doing it just to make sure I could build with the default Game Mode.
3. Go back into **Project Settings** \> **Maps & Modes** \> **Default Modes** ans set **Default GameMode** back to whatever your Game Mode should be.
4. Run another build. The build should be successful this time.

**The Cause** :  
The reason I encountered this issue is because I re-arranged parts of my folder structure, and moved my Game Mode Blueprint from the base content directory into a subfolder. This appears to throw off UE because the system keeps a redirect reference in memory. Attemping to change from the same gamemode by just toggling the dropdown didnt work, I had to change it, build, then change it back and the system was happy then.

The best I can summarise is that by changing it and forcing the build, it forced the editor to remove its previous reference to the old location and then update it to the new one when I selected it once again.

---

<div class="post-metadata">

**Author:** ![misterdante](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@misterdante](https://forums.unrealengine.com/u/misterdante)\
**Post date:** [August 3, 2022, 9:57pm UTC](https://forums.unrealengine.com/t/packaging-error/542046/4 "2022-08-03T21:57:45Z")

</div>

You are a chief, exactly my problem, I changed my folder structure and now everything just works fine. Thank you very much for your help.

---

<div class="post-metadata">

**Author:** ![RawSugarRage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RawSugarRage](https://forums.unrealengine.com/u/RawSugarRage)\
**Post date:** [August 6, 2022, 1:56pm UTC](https://forums.unrealengine.com/t/packaging-error/542046/5 "2022-08-06T13:56:29Z")

</div>

This worked like a charm for me too, thanks!

---

<div class="post-metadata">

**Author:** ![Totespare](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Totespare](https://forums.unrealengine.com/u/Totespare)\
**Post date:** [August 25, 2022, 12:40am UTC](https://forums.unrealengine.com/t/packaging-error/542046/6 "2022-08-25T00:40:22Z")

</div>

Thanks my brother!! Redirection sucks man, can’t believe UE5 is still having this sh\*\*\* issues

---

<div class="post-metadata">

**Author:** ![AlienzFun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlienzFun](https://forums.unrealengine.com/u/AlienzFun)\
**Post date:** [August 27, 2022, 9:22pm UTC](https://forums.unrealengine.com/t/packaging-error/542046/7 "2022-08-27T21:22:44Z")

</div>

it didnt even work xD

---

<div class="post-metadata">

**Author:** ![WadeSisco](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wadesisco/32/594761_2.png) [@WadeSisco](https://forums.unrealengine.com/u/WadeSisco)\
**Post date:** [November 18, 2022, 4:21pm UTC](https://forums.unrealengine.com/t/packaging-error/542046/8 "2022-11-18T16:21:15Z")

</div>

Also try ticking the Full Rebuild option under Project - Packaging \> Project  
Then deselect after a successful build

---

<div class="post-metadata">

**Author:** ![Rivero7462](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rivero7462](https://forums.unrealengine.com/u/Rivero7462)\
**Post date:** [December 7, 2022, 4:55am UTC](https://forums.unrealengine.com/t/packaging-error/542046/9 "2022-12-07T04:55:28Z")

</div>

While, this didn’t work for me, I was able to fix it by right clicking the main content folder and hitting fix up redirectors which fixed it!

---

<div class="post-metadata">

**Author:** ![christuusgnosis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@christuusgnosis](https://forums.unrealengine.com/u/christuusgnosis)\
**Post date:** [December 7, 2022, 5:05pm UTC](https://forums.unrealengine.com/t/packaging-error/542046/10 "2022-12-07T17:05:09Z")

</div>

sometimes when you make some changes  
and they do funny things in a build  
it helps to delete the saved and intermediate folders  
that causes it to fully rebuild everything

---

<div class="post-metadata">

**Author:** ![LILWIZZI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LILWIZZI](https://forums.unrealengine.com/u/LILWIZZI)\
**Post date:** [January 16, 2023, 8:29pm UTC](https://forums.unrealengine.com/t/packaging-error/542046/11 "2023-01-16T20:29:14Z")

</div>

I found a solution by ,Fixing up redirectors, capture thumbnail and clear for struct asset, also re defining variable Don’t delete just select the struct again

---

<div class="post-metadata">

**Author:** ![Apa42](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Apa42](https://forums.unrealengine.com/u/Apa42)\
**Post date:** [February 5, 2023, 2:03pm UTC](https://forums.unrealengine.com/t/packaging-error/542046/12 "2023-02-05T14:03:22Z")

</div>

I own you a beer man. You’re a hero.

---

<div class="post-metadata">

**Author:** ![BlackShadow972](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlackShadow972](https://forums.unrealengine.com/u/BlackShadow972)\
**Post date:** [February 5, 2023, 9:50pm UTC](https://forums.unrealengine.com/t/packaging-error/542046/13 "2023-02-05T21:50:13Z")

</div>

It work well for me thank you very much

---

<div class="post-metadata">

**Author:** ![hpplus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hpplus/32/478755_2.png) [@hpplus](https://forums.unrealengine.com/u/hpplus)\
**Post date:** [May 29, 2023, 4:31am UTC](https://forums.unrealengine.com/t/packaging-error/542046/14 "2023-05-29T04:31:32Z")

</div>

Awesome fixed my issue thank u

---

<div class="post-metadata">

**Author:** ![alexspace1990](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alexspace1990](https://forums.unrealengine.com/u/alexspace1990)\
**Post date:** [July 1, 2023, 6:17am UTC](https://forums.unrealengine.com/t/packaging-error/542046/15 "2023-07-01T06:17:12Z")

</div>

Thanks bro! it works for me

---

<div class="post-metadata">

**Author:** ![Vallamost](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vallamost](https://forums.unrealengine.com/u/Vallamost)\
**Post date:** [September 18, 2023, 5:07pm UTC](https://forums.unrealengine.com/t/packaging-error/542046/16 "2023-09-18T17:07:02Z")

</div>

> [@Rivero7462](#):
>
> While, this didn’t work for me, I was able to fix it by right clicking the main content folder and hitting fix up redirectors which fixed it!

Thanks, this fixed it for me too. I wish Epic would suggest trying this in the build failure message.

---

<div class="post-metadata">

**Author:** ![chenzhuot1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chenzhuot1](https://forums.unrealengine.com/u/chenzhuot1)\
**Post date:** [November 21, 2023, 2:27pm UTC](https://forums.unrealengine.com/t/packaging-error/542046/17 "2023-11-21T14:27:40Z")

</div>

OMG u are the best one! It really works!

---

<div class="post-metadata">

**Author:** ![chenzhuot1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chenzhuot1](https://forums.unrealengine.com/u/chenzhuot1)\
**Post date:** [November 21, 2023, 2:27pm UTC](https://forums.unrealengine.com/t/packaging-error/542046/18 "2023-11-21T14:27:54Z")

</div>

OMG U are the best One! It really works!

---

<div class="post-metadata">

**Author:** ![RealDynia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RealDynia](https://forums.unrealengine.com/u/RealDynia)\
**Post date:** [January 19, 2024, 4:02pm UTC](https://forums.unrealengine.com/t/packaging-error/542046/19 "2024-01-19T16:02:01Z")

</div>

Kudos to you man!

---

<div class="post-metadata">

**Author:** ![ShaderGT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShaderGT](https://forums.unrealengine.com/u/ShaderGT)\
**Post date:** [November 28, 2024, 9:00am UTC](https://forums.unrealengine.com/t/packaging-error/542046/20 "2024-11-28T09:00:01Z")

</div>

Thank you very much!!

[Next page](https://forums.unrealengine.com/t/packaging-error/542046.md?page=2)
