# Map function problems, potentially serious

**URL:** <https://community.make.com/t/map-function-problems-potentially-serious/82546>\
**Category:** Questions\
**Tags:** arrays, functions\
**Created:** [May 15, 2025, 4:18pm UTC](https://community.make.com/t/map-function-problems-potentially-serious/82546 "2025-05-15T16:18:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkfinger](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@darkfinger](https://community.make.com/u/darkfinger)\
**Post date:** [May 15, 2025, 4:18pm UTC](https://community.make.com/t/map-function-problems-potentially-serious/82546/1 "2025-05-15T16:18:10Z")

</div>

After a couple of years experience with make I have encountered a problem with the map function. Quite simply, map substitutes “empty” instead of the correct value in the returned array, whenever the value is false (if a boolean) or 0 (if a number). It appears to happen when the array passed to map in the first argument has a nested structure, and in particular the array you get from an array aggregator following data store search. I use map all the time after that and mostly the values I map are more complex things, but I was going crazy wondering why I couldn’t produce a list of booleans or numbers, or find them with map.

The attached blueprint shows the problem in 2 modules only.

Curious if I am somehow doing things wrong!

Thanks for any help.

[blueprint (1).json](https://community.make.com/uploads/short-url/bGI0s19a5RHXHzb0IEPvzxljrtQ.json) (7.2 KB)

---

<div class="post-metadata">

**Author:** ![R-SimplifiedWebhooks](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/r-simplifiedwebhooks/32/3914_2.png) [@R-SimplifiedWebhooks](https://community.make.com/u/R-SimplifiedWebhooks)\
**Post date:** [May 17, 2025, 12:10pm UTC](https://community.make.com/t/map-function-problems-potentially-serious/82546/3 "2025-05-17T12:10:45Z")

</div>

Hi @darkfinger,

that is indeed interesting! 😃  
I looked at your blueprint and I also don’t know why that’s happening.

However, if you do a double map, then it’s being executed correctly.  
e.g.

map(map(myarray;data);active)-\> true, false

just fyi - maybe it helps! 😃

---

<div class="post-metadata">

**Author:** ![darkfinger](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@darkfinger](https://community.make.com/u/darkfinger)\
**Post date:** [May 25, 2025, 3:43am UTC](https://community.make.com/t/map-function-problems-potentially-serious/82546/4 "2025-05-25T03:43:13Z")

</div>

Thanks. Still an issue though.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [August 23, 2025, 3:47am UTC](https://community.make.com/t/map-function-problems-potentially-serious/82546/5 "2025-08-23T03:47:31Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


