# Blueprint struct fails nativization

**URL:** <https://forums.unrealengine.com/t/blueprint-struct-fails-nativization/391996>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [April 26, 2017, 5:26pm UTC](https://forums.unrealengine.com/t/blueprint-struct-fails-nativization/391996 "2017-04-26T17:26:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kgamble](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kgamble](https://forums.unrealengine.com/u/kgamble)\
**Post date:** [April 26, 2017, 5:26pm UTC](https://forums.unrealengine.com/t/blueprint-struct-fails-nativization/391996/1 "2017-04-26T17:26:46Z")

</div>

If you have a blueprint struct that is referenced in a nativized blueprint class then packaging for Win32 fails with

`NewUserDefinedStruct__pf2222656877.h(15): error C2065: 'FStructOnScope': undeclared identifier NewUserDefinedStruct__pf2222656877.h(15): error C2146: syntax error: missing ';' before identifier 'StructOnScope' NewUserDefinedStruct__pf2222656877.h(15): error C3861: 'StructOnScope': identifier not found NewUserDefinedStruct__pf2222656877.h(16): error C2065: 'StructOnScope': undeclared identifier NewUserDefinedStruct__pf2222656877.h(16): error C2228: left of '.GetStructMemory' must have class/struct/union NewUserDefinedStruct__pf2222656877.h(16): note: type is 'unknown-type' NewUserDefinedStruct__pf2222656877.h(16): error C2530: 'DefaultData__': references must be initialized NewUserDefinedStruct__pf2222656877.h(23): error C2653: 'UUserDefinedStruct': is not a class or namespace name NewUserDefinedStruct__pf2222656877.h(23): error C3861: 'GetUserDefinedStructTypeHash': identifier not found`

Repro steps for this:

1. Create a new project (I chose the 3rd person template for this)
2. In the Blueprints folder create a new Structure UAsset
3. In the ThirdPersonCharacter BP add a variable that is the type created in step 2
4. Go to packaging settings and change “Blueprint Nativization Method” to “Inclusive”
5. Package for “Windows (32-bit)”

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [April 26, 2017, 8:56pm UTC](https://forums.unrealengine.com/t/blueprint-struct-fails-nativization/391996/2 "2017-04-26T20:56:18Z")

</div>

Hello kgamble,

I was able to reproduce this issue on our end. I have written up a report and I have submitted it to the developers for further consideration. I have provided a link to the public tracker. Please feel free to use the link provided for future updates

Link: [Unreal Engine Issues and Bug Tracker (UE-44421)](https://issues.unrealengine.com/issue/UE-44421)

Make it a great day
