# Blueprint can not compile when local variable is a struct with a set container

**URL:** <https://forums.unrealengine.com/t/blueprint-can-not-compile-when-local-variable-is-a-struct-with-a-set-container/386759>\
**Category:** Blueprint\
**Tags:** set, Structure, unreal-engine, question\
**Created:** [March 2, 2017, 7:30pm UTC](https://forums.unrealengine.com/t/blueprint-can-not-compile-when-local-variable-is-a-struct-with-a-set-container/386759 "2017-03-02T19:30:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_67d533e8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67d533e8](https://forums.unrealengine.com/u/anonymous_user_67d533e8)\
**Post date:** [March 2, 2017, 7:30pm UTC](https://forums.unrealengine.com/t/blueprint-can-not-compile-when-local-variable-is-a-struct-with-a-set-container/386759/1 "2017-03-02T19:30:41Z")

</div>

(Windows 10, 64 bit, UE4.15) Steps to reproduce:

- Create empty blueprint project
- Create a new Structure
- Add a variable to structure, change it to byte, and make the variable a “set” container
- Create a new actor blueprint
- Create new function in blueprint
- Add new local variable and set it to be of the new struct type
- Compile blueprint

Compiler Results:

Error: It is not possible to express this type (Set Property) as a literal value for the property MySet on pin “None” ! If it is inside a struct, you can add a Make struct node to resolve this issue!

Attached example

Making it a normal variable and not local works without issue.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [March 7, 2017, 5:13pm UTC](https://forums.unrealengine.com/t/blueprint-can-not-compile-when-local-variable-is-a-struct-with-a-set-container/386759/2 "2017-03-07T17:13:15Z")

</div>

Hey ,

Thank you for the report. I was able to reproduce what you are seeing, so I’ve created [JIRA UE-42617](https://issues.unrealengine.com/issue/UE-42617). Our developers will be investigating further. Follow that link to monitor the status of the report.

Cheers,

TJ
