# Failed to call msg.post, Could not send message from ... to

**URL:** <https://forum.defold.com/t/failed-to-call-msg-post-could-not-send-message-from-to/69420>\
**Category:** Questions\
**Created:** [October 7, 2021, 12:27pm UTC](https://forum.defold.com/t/failed-to-call-msg-post-could-not-send-message-from-to/69420 "2021-10-07T12:27:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamika](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/tamika/32/25530_2.png) [@Tamika](https://forum.defold.com/u/Tamika)\
**Post date:** [October 7, 2021, 12:27pm UTC](https://forum.defold.com/t/failed-to-call-msg-post-could-not-send-message-from-to/69420/1 "2021-10-07T12:27:23Z")

</div>

Hi!

I have a window collection (hierarchy)

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/6/3/6333bd357c4e36b7cc73b803ad60bc5cd2b3e35b.png)

And main map collection. Windows creates by factory in loader.collection. And now I’m trying to show my window and send message  
luax.msg.safe\_post(“map:/GUI”, “hide\_interface”, params)

And have an error  
Failed to call msg.post, Could not send message ‘show\_interface’ from ‘loader:/collection2/window#window\_notification\_test’ to ‘map:/GUI’.

Why this error appears?  
Thanks!

---

<div class="post-metadata">

**Author:** ![MasterMind](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mastermind/32/31839_2.png) [@MasterMind](https://forum.defold.com/u/MasterMind)\
**Post date:** [October 7, 2021, 12:52pm UTC](https://forum.defold.com/t/failed-to-call-msg-post-could-not-send-message-from-to/69420/2 "2021-10-07T12:52:05Z")

</div>

> [@Tamika](#):
>
> “map:/GUI”

Is it because you are not sending to target script with #script in url e.g. “map:/GUI#ScriptName” ?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [October 7, 2021, 1:46pm UTC](https://forum.defold.com/t/failed-to-call-msg-post-could-not-send-message-from-to/69420/3 "2021-10-07T13:46:49Z")

</div>

> [@Tamika](#):
>
> Failed to call msg.post, Could not send message ‘show\_interface’ from ‘loader:/collection2/window#window\_notification\_test’ to ‘map:/GUI’.

Are you absolutely sure that there is a loaded collection with name `map` that in its root has a game object with id `GUI`?

The screenshot you shared does not matter much. You can post messages from anywhere in your game to any other place. What matters in this case is that there doesn’t seem to be a destination `map:/GUI` at the moment when the message is sent.

Check the docs on addressing if you are unsure of how the URLs are composed and how absolute vs relative URLs work ([Addressing in Defold](https://defold.com/manuals/addressing/))

---

<div class="post-metadata">

**Author:** ![Tamika](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/tamika/32/25530_2.png) [@Tamika](https://forum.defold.com/u/Tamika)\
**Post date:** [October 7, 2021, 2:21pm UTC](https://forum.defold.com/t/failed-to-call-msg-post-could-not-send-message-from-to/69420/4 "2021-10-07T14:21:06Z")

</div>

Thank you for your reply!  
About “map:/GUI” - it cannot be problem, cause function which sending this message exists for many years and work with all windows… If problem was here the game would have been broken ☹ So it should be somewhere in window\_notification\_test…

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [October 7, 2021, 6:47pm UTC](https://forum.defold.com/t/failed-to-call-msg-post-could-not-send-message-from-to/69420/5 "2021-10-07T18:47:43Z")

</div>

> [@Tamika](#):
>
> So it should be somewhere in window\_notification\_test

Hmm, I don’t think so, but maybe. I can take a closer look since I believe I have access to the project you are working on. Could you please send an email to bjorn@defold.se and we’ll continue there?
