# Package Error?

**URL:** <https://forums.unrealengine.com/t/package-error/764346>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, question\
**Created:** [February 5, 2023, 11:08pm UTC](https://forums.unrealengine.com/t/package-error/764346 "2023-02-05T23:08:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![theverybigfish](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/theverybigfish/32/1080674_2.png) [@theverybigfish](https://forums.unrealengine.com/u/theverybigfish)\
**Post date:** [February 5, 2023, 11:08pm UTC](https://forums.unrealengine.com/t/package-error/764346/1 "2023-02-05T23:08:23Z")

</div>

So i keep getting this error message when packaging a build of my game…

“PackagingResults: Error: [AssetLog] G:\City Of The Undead\Dev Folder\ZombieSurvival2\Content\Gas\_StationV2\Materials\Instances\MI\_DoorFrame\_1.uasset: Serialization error - FName are serialized as an index recorded in the package header, the current deserialized index has value -1, outside of the valid range [0, 70).”

Any one have any ideas how i fix this? I get the same message twice before “PackagingResults: Error: Unknown Cook Failure” then it appears twice more.

---

<div class="post-metadata">

**Author:** ![bbaarrkkk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bbaarrkkk](https://forums.unrealengine.com/u/bbaarrkkk)\
**Post date:** [December 16, 2024, 3:38pm UTC](https://forums.unrealengine.com/t/package-error/764346/2 "2024-12-16T15:38:08Z")

</div>

Did you find a solution or at least the cause of the error? The project has the same problem, but with an entire level.

---

<div class="post-metadata">

**Author:** ![wha092686](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wha092686/32/1092108_2.png) [@wha092686](https://forums.unrealengine.com/u/wha092686)\
**Post date:** [March 2, 2025, 4:15am UTC](https://forums.unrealengine.com/t/package-error/764346/3 "2025-03-02T04:15:56Z")

</div>

For me, this was happening when I was calling `GetName()` in my C++ code, where the object had a declared variable that was named `Name`, which was prevalent in a lot of my PrimaryDataAssets.

The solution for me was to **no longer use** `Name` as a variable name, opting to instead use something more specific and less generic, like `ItemName` or `WeaponName`.

My theory is that the engine’s code auto-generation may take variables like `Name` and create a `GetName()` counterpart, perhaps causing ambiguity between this auto-generated function and the existing C++ one that returns the object name. I dunno.

---

<div class="post-metadata">

**Author:** ![jacksonnexhip](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacksonnexhip/32/494650_2.png) [@jacksonnexhip](https://forums.unrealengine.com/u/jacksonnexhip)\
**Post date:** [January 27, 2026, 6:53am UTC](https://forums.unrealengine.com/t/package-error/764346/4 "2026-01-27T06:53:52Z")

</div>

having the same problem. The asset in question for me is a save game with an enormous blueprint structure:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/a/fea30b7ef52eaa31405c5701b14757590f1ab40a.png)

My colleague has suggested maybe the structure is too big, gonna try break it apart and repackage
