# Compiler error with TMap connections "exposed on spawn"

**URL:** <https://forums.unrealengine.com/t/compiler-error-with-tmap-connections-exposed-on-spawn/391893>\
**Category:** Blueprint\
**Tags:** compiler-error, tmap, unreal-engine, question, Blueprint\
**Created:** [April 25, 2017, 6:21pm UTC](https://forums.unrealengine.com/t/compiler-error-with-tmap-connections-exposed-on-spawn/391893 "2017-04-25T18:21:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctrlbrk76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ctrlbrk76](https://forums.unrealengine.com/u/ctrlbrk76)\
**Post date:** [April 25, 2017, 6:21pm UTC](https://forums.unrealengine.com/t/compiler-error-with-tmap-connections-exposed-on-spawn/391893/1 "2017-04-25T18:21:21Z")

</div>

I get a compiler error when I try to create a widget with any kind of TMap as parameter

a TMap of int,float gives me :  
Error COMPILER ERROR: failed building connection with ‘Integer is not compatible with Map of Integers to Floats.’ at Create Widget

 ![135500-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/9/3c9ff32cb9724ff63422171e41a547fc0828b349.png)

I can think of some workarounds by triggering events and handeling them in the parent widget, but passing the TMap would be way easier…  
Is this a known issue ? Or am I missing something ?

---

<div class="post-metadata">

**Author:** ![Mowgl33](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mowgl33](https://forums.unrealengine.com/u/Mowgl33)\
**Post date:** [July 3, 2017, 5:32pm UTC](https://forums.unrealengine.com/t/compiler-error-with-tmap-connections-exposed-on-spawn/391893/2 "2017-07-03T17:32:17Z")

</div>

I’m having the same issue, seems like a bug.

---

<div class="post-metadata">

**Author:** ![Nachtmahr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nachtmahr](https://forums.unrealengine.com/u/Nachtmahr)\
**Post date:** [July 3, 2017, 5:51pm UTC](https://forums.unrealengine.com/t/compiler-error-with-tmap-connections-exposed-on-spawn/391893/3 "2017-07-03T17:51:28Z")

</div>

Probably not implemented yet. Get rid of the expose on spawn and use a set node after you created the Widget for now.
