# Struct Compile Error

**URL:** <https://forums.unrealengine.com/t/struct-compile-error/368010>\
**Category:** Blueprint\
**Tags:** Struct, unreal-engine, compile-error, Blueprint, question\
**Created:** [August 23, 2016, 2:13pm UTC](https://forums.unrealengine.com/t/struct-compile-error/368010 "2016-08-23T14:13:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dealman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dealman](https://forums.unrealengine.com/u/Dealman)\
**Post date:** [August 23, 2016, 2:13pm UTC](https://forums.unrealengine.com/t/struct-compile-error/368010/1 "2016-08-23T14:13:10Z")

</div>

I’ve been working on a mod for Squad for a little while and I was experiencing a ton of issues when working with Structures. Stuff would spontaneously reset, editing entries were a pain as the dropdown menus would close after every edit.

However that information should be redundant and is probably related to their SDK. The issue I’m having is that the editor’s crashed on me a 2nd time when using one of my structs in a BP - causing the struct to become corrupt and failing to compile.

I’ve tried removing all references to that BP but I can’t seem to fix this error.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/d/dd101564cb33353dcd6e9a8735b5aaab336e4d43.png) ](https://i.imgur.com/ApF5c0w.png)

Is there a way I can manually compile it somehow to get rid of this error? I’m not sure if this is a common error in UE4 or if it’s due to the SDK itself but the struct I made is a bit “complex”.

The struct has an array of another struct that contains some data about weapons.

It’s the 2nd time it’s done this and they both happened when working with my widget which makes use of this struct. Both times they’ve gotten corrupted.

Any help would be appreciated. ☹

---

<div class="post-metadata">

**Author:** ![Bob3DGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bob3DGames](https://forums.unrealengine.com/u/Bob3DGames)\
**Post date:** [May 28, 2017, 1:45pm UTC](https://forums.unrealengine.com/t/struct-compile-error/368010/2 "2017-05-28T13:45:04Z")

</div>

This happens to be pretty much every time I make a change to a struct. The only way I know to fix it is to close everything and re-open it.

---

<div class="post-metadata">

**Author:** ![DuneGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dunegames/32/538495_2.png) [@DuneGames](https://forums.unrealengine.com/u/DuneGames)\
**Post date:** [November 16, 2022, 5:05am UTC](https://forums.unrealengine.com/t/struct-compile-error/368010/3 "2022-11-16T05:05:56Z")

</div>

Add another variable to the struct that is crying, that fixed it for me.

---

<div class="post-metadata">

**Author:** ![RobertoCosta\_Dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RobertoCosta\_Dev](https://forums.unrealengine.com/u/RobertoCosta_Dev)\
**Post date:** [January 6, 2023, 10:14pm UTC](https://forums.unrealengine.com/t/struct-compile-error/368010/4 "2023-01-06T22:14:52Z")

</div>

@DuneGames Thank you so much

---

<div class="post-metadata">

**Author:** ![BrentWorks](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BrentWorks](https://forums.unrealengine.com/u/BrentWorks)\
**Post date:** [July 11, 2023, 12:50am UTC](https://forums.unrealengine.com/t/struct-compile-error/368010/5 "2023-07-11T00:50:27Z")

</div>

Unironic Lifesaver.

---

<div class="post-metadata">

**Author:** ![RAVE\_FACTORY\_CZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RAVE\_FACTORY\_CZ](https://forums.unrealengine.com/u/RAVE_FACTORY_CZ)\
**Post date:** [December 13, 2023, 3:09pm UTC](https://forums.unrealengine.com/t/struct-compile-error/368010/6 "2023-12-13T15:09:08Z")

</div>

@DuneGames Thx. Saved the day \<3
