# Map variable not updating

**URL:** <https://forums.unrealengine.com/t/map-variable-not-updating/431861>\
**Category:** Blueprint\
**Tags:** Map, update, unreal-engine, construction-script, bug-report, Blueprint, question\
**Created:** [August 17, 2018, 11:38pm UTC](https://forums.unrealengine.com/t/map-variable-not-updating/431861 "2018-08-17T23:38:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrNuzz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrNuzz](https://forums.unrealengine.com/u/MrNuzz)\
**Post date:** [August 17, 2018, 11:38pm UTC](https://forums.unrealengine.com/t/map-variable-not-updating/431861/1 "2018-08-17T23:38:47Z")

</div>

I have an array of map variables. In construction script, I print a string of the keys. Any new map added, always has a key of 0 until i reopen the blueprint.

Is this a bug, or do maps just not work like this?

 ![250814-conscr.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/9/e09d214ac66fb31641cb82cc3b21109ce5acc78f.png)

![250815-conscr1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/0/4e0653a2226559dfaf2a1bb0fa3a18815eb2f7da.png)

![250816-conscr2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/1/8e1ca213565358ca16dd533d2c9e4273c2a1ab13.png)

---

<div class="post-metadata">

**Author:** ![Jeff\_A](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jeff\_A](https://forums.unrealengine.com/u/Jeff_A)\
**Post date:** [August 20, 2018, 4:17pm UTC](https://forums.unrealengine.com/t/map-variable-not-updating/431861/2 "2018-08-20T16:17:49Z")

</div>

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

[https://epicsupport.force.com/unrealengine/s/](https://epicsupport.force.com/unrealengine/s/)

Thanks

---

<div class="post-metadata">

**Author:** ![XxNotAGamerxX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XxNotAGamerxX](https://forums.unrealengine.com/u/XxNotAGamerxX)\
**Post date:** [June 1, 2023, 3:48am UTC](https://forums.unrealengine.com/t/map-variable-not-updating/431861/3 "2023-06-01T03:48:31Z")

</div>

Did anyone find a solution? Was the bug fixed/replied to???

Still having a problem in 2023, with Cant update certain vars in Construction script.

> [@Why cant I Set/Update a MAP variable in Construction script?](https://forums.unrealengine.com/t/why-cant-i-set-update-a-map-variable-in-construction-script/1185231):
>
> UE4.27 Can Construct really not update certain variables like Arrays or MAPs? (It works on changing Meshes and Light colors.) How can I Set/Update a MAP variable in Construction script? - these nodes are not working: I have a complicated Function that is used in Event and Construct - in CharBP and pickup Actors. So I made an external Function asset (s…
