# \[bug-3893\]Message Handler null in ScriptConfig during project save

**URL:** <https://forum.inductiveautomation.com/t/bug-3893-message-handler-null-in-scriptconfig-during-project-save/49995>\
**Category:** Ignition\
**Created:** [August 17, 2021, 10:14am UTC](https://forum.inductiveautomation.com/t/bug-3893-message-handler-null-in-scriptconfig-during-project-save/49995 "2021-08-17T10:14:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bronzebeard62](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@Bronzebeard62](https://forum.inductiveautomation.com/u/Bronzebeard62)\
**Post date:** [August 17, 2021, 10:14am UTC](https://forum.inductiveautomation.com/t/bug-3893-message-handler-null-in-scriptconfig-during-project-save/49995/1 "2021-08-17T10:14:02Z")

</div>

```auto
Gateway script MessageHandlerException, project 'Project6', message handler 'threadHandler': com.inductiveautomation.ignition.common.script.message.MessageHandlerException: MessageHandlerManager is null in ScriptConfig!

```

This error occurs when a message is sent at the same that the project containing the destination message handler is saved. I assume because the save process is to recreate the message handler, AKA, delete and create. For message handlers that are processing many requests per second, this causes the problem that events are missed. Is there any way to queue these messages and send them once the message handler is successfully recreated?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 17, 2021, 3:03pm UTC](https://forum.inductiveautomation.com/t/bug-3893-message-handler-null-in-scriptconfig-during-project-save/49995/2 "2021-08-17T15:03:30Z")

</div>

Thanks for the report. I can see how this happens in the code, and while it’ll be tricky, I filed a ticket to see if there’s something we can do to avoid this or handle it better.

---

<div class="post-metadata">

**Author:** ![richardNZ15](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/richardnz15/32/33373_2.png) [@richardNZ15](https://forum.inductiveautomation.com/u/richardNZ15)\
**Post date:** [July 18, 2022, 9:13am UTC](https://forum.inductiveautomation.com/t/bug-3893-message-handler-null-in-scriptconfig-during-project-save/49995/3 "2022-07-18T09:13:55Z")

</div>

What is actually causing this error? I am getting it when trying to execute a call to a message handler, but i am calling it from a project different to that where the message handler is defined.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [June 10, 2025, 6:08pm UTC](https://forum.inductiveautomation.com/t/bug-3893-message-handler-null-in-scriptconfig-during-project-save/49995/4 "2025-06-10T18:08:00Z")

</div>

I have this message too with 8.1.48 in some case when I save a change in a project. Is there a workaround to avoid it, I'm not sure but it could break the handler message, and the gateway message handler became KO until a gateway restart...

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 10, 2025, 6:30pm UTC](https://forum.inductiveautomation.com/t/bug-3893-message-handler-null-in-scriptconfig-during-project-save/49995/5 "2025-06-10T18:30:09Z")

</div>

We haven't picked up the underlying ticket to see about a fix. At this point it won't happen until 8.3.x _at the earliest_.
