# Message Handler Not found

**URL:** <https://forum.inductiveautomation.com/t/message-handler-not-found/83091>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [December 13, 2023, 3:24pm UTC](https://forum.inductiveautomation.com/t/message-handler-not-found/83091 "2023-12-13T15:24:59Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Craig](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@Ryan\_Craig](https://forum.inductiveautomation.com/u/Ryan_Craig)\
**Post date:** [December 13, 2023, 3:24pm UTC](https://forum.inductiveautomation.com/t/message-handler-not-found/83091/1 "2023-12-13T15:24:59Z")

</div>

I am currently taking over a Project for someone who has recently left our company. The project itself seems to be working fine but we keep having this error appear in our Logs:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/c/8c250304b83dc42e782547cf8a2e3234a18c2ea6.png)

The project is fairly large, and I don't know where to being searching for what is calling this message handler. Is there any easy way to search for this throughout the project?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [December 13, 2023, 3:44pm UTC](https://forum.inductiveautomation.com/t/message-handler-not-found/83091/2 "2023-12-13T15:44:05Z")

</div>

You can use the Find/Replace tool, but you need to be clear with where you're searching. By default, the tool only searches open resources - you'd want to be sure you're searching _all_ resources. Also, the Find/Replace tool only works for resources of the current project. Does that logging entry give you any more information, or perhaps a magnifying glass or `+` which can be used to expand the entry for more info?

---

<div class="post-metadata">

**Author:** ![Ryan\_Craig](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@Ryan\_Craig](https://forum.inductiveautomation.com/u/Ryan_Craig)\
**Post date:** [December 13, 2023, 3:48pm UTC](https://forum.inductiveautomation.com/t/message-handler-not-found/83091/3 "2023-12-13T15:48:00Z")

</div>

Unfortunately it does not give me anymore information. Just has a Logger as: DispatchManager, The Date Time, and the Message that I posted in the original post.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [December 13, 2023, 3:52pm UTC](https://forum.inductiveautomation.com/t/message-handler-not-found/83091/4 "2023-12-13T15:52:59Z")

</div>

Maybe you could try creating a handler for it and examining the payload ? Might give you a clue as to where to look next.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 13, 2023, 3:53pm UTC](https://forum.inductiveautomation.com/t/message-handler-not-found/83091/5 "2023-12-13T15:53:57Z")

</div>

Consider using a recursive `grep` in your gateway filesystem outside of Ignition. (Perspective project files are text-based.)

---

<div class="post-metadata">

**Author:** ![Ryan\_Craig](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@Ryan\_Craig](https://forum.inductiveautomation.com/u/Ryan_Craig)\
**Post date:** [December 13, 2023, 4:06pm UTC](https://forum.inductiveautomation.com/t/message-handler-not-found/83091/6 "2023-12-13T16:06:13Z")

</div>

After using the Find/Replace I found the script. It looks as if the script was to time out a pop up after a certain amount of time. I am not sure which pop up the person who made the project had planned for this timer but the project seems to be running fine without it. After disabling the line that was causing the error, I got this error message.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/3/63629028edf6521d029f622fd0a4622f053d8e41.png)

Would this cause any issues in the long run? And is there somewhere I can go to see 'debug' messages?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [December 13, 2023, 4:09pm UTC](https://forum.inductiveautomation.com/t/message-handler-not-found/83091/7 "2023-12-13T16:09:24Z")

</div>

What do you mean by "disabling the line" ? Did you comment out a line in a script ?

> [@Ryan\_Craig](#):
>
> is there somewhere I can go to see 'debug' messages?

They should be in the logs. Click the `+` sign in the bottom right of the log entry to see the stack trace.

---

<div class="post-metadata">

**Author:** ![Ryan\_Craig](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@Ryan\_Craig](https://forum.inductiveautomation.com/u/Ryan_Craig)\
**Post date:** [December 13, 2023, 4:10pm UTC](https://forum.inductiveautomation.com/t/message-handler-not-found/83091/8 "2023-12-13T16:10:53Z")

</div>

Yeah, I commented it out to see what would break, but it seems to be running the same.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/3/439cabe58f1c2643b31c18f2b5e712fcc58c0c83.png)

Here is a picture of the whole script.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [December 13, 2023, 4:13pm UTC](https://forum.inductiveautomation.com/t/message-handler-not-found/83091/9 "2023-12-13T16:13:15Z")

</div>

Considering all that script does is sending a message, you might as well disable it entirely instead of commenting out a line.

Commenting it just makes the call to `sendMessage` fail because the variable `messageHandler` doesn't exist anymore. This is why you get a new error in your logs, saying that the script failed to execute.  
if you wanted to stop the message from being sent, without disabling the script completely, you should be commenting out the call to `sendMessage`, not just the declaration of the handler's name.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [December 13, 2023, 4:17pm UTC](https://forum.inductiveautomation.com/t/message-handler-not-found/83091/10 "2023-12-13T16:17:38Z")

</div>

That being said, the comment saying "It's important that the message handler has been created" might indicate that whoever created this script expected someone reading this to actually create the appropriate handler.  
Isn't there anyone that could help you figure this out ? Some doc that would point you in the right direction ?

---

<div class="post-metadata">

**Author:** ![Ryan\_Craig](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@Ryan\_Craig](https://forum.inductiveautomation.com/u/Ryan_Craig)\
**Post date:** [December 13, 2023, 4:20pm UTC](https://forum.inductiveautomation.com/t/message-handler-not-found/83091/11 "2023-12-13T16:20:06Z")

</div>

Unfortunately not. Our previous Ignition designers did not leave any documentation for trouble shooting or anything along those lines.

We are going to just disable the message handler until we found out what the original intensions were for it.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [December 13, 2023, 4:32pm UTC](https://forum.inductiveautomation.com/t/message-handler-not-found/83091/12 "2023-12-13T16:32:45Z")

</div>

No documentation? For shame...

---

<div class="post-metadata">

**Author:** ![YF129701](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/yf129701/32/60498_2.png) [@YF129701](https://forum.inductiveautomation.com/u/YF129701)\
**Post date:** [December 13, 2023, 9:28pm UTC](https://forum.inductiveautomation.com/t/message-handler-not-found/83091/13 "2023-12-13T21:28:57Z")

</div>

One tool I've been loving to use is the Configuration Explorer - as long as you know the view, you can search for message handlers among many other things. I don't know if this applies to your situation (I didn't read this thread very carefully ☹ )
