# MQTT Engine seems to publish multiple messages using system.cirruslink.engine.publish

**URL:** <https://forum.inductiveautomation.com/t/mqtt-engine-seems-to-publish-multiple-messages-using-system-cirruslink-engine-publish/92347>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [June 25, 2024, 5:13pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-seems-to-publish-multiple-messages-using-system-cirruslink-engine-publish/92347 "2024-06-25T17:13:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sherman](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@sherman](https://forum.inductiveautomation.com/u/sherman)\
**Post date:** [June 25, 2024, 5:13pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-seems-to-publish-multiple-messages-using-system-cirruslink-engine-publish/92347/1 "2024-06-25T17:13:48Z")

</div>

I am using MQTT Engine on 8.1.41 to send and recieve messages on my own MQTT network (none of the built in sparkplug stuff). I wrote a gateway tag change event script as per the [documentation](https://docs.chariot.io/display/CLD80/MQTT+Publishing+via+MQTT+Engine), but when it sends it seems to send multiple times, as a function of how many projects I have enabled. I can't find any settings that make this obvious to fix, does someone know how to improve this?

---

<div class="post-metadata">

**Author:** ![DSI600](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@DSI600](https://forum.inductiveautomation.com/u/DSI600)\
**Post date:** [June 25, 2024, 5:19pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-seems-to-publish-multiple-messages-using-system-cirruslink-engine-publish/92347/2 "2024-06-25T17:19:24Z")

</div>

Please share the script and the location of where you have it, so we can assist.

---

<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:** [June 25, 2024, 5:20pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-seems-to-publish-multiple-messages-using-system-cirruslink-engine-publish/92347/3 "2024-06-25T17:20:19Z")

</div>

Don't put gateway events in inheritable projects. Only leaf projects run events, and all that inherit an event will run it.

---

<div class="post-metadata">

**Author:** ![sherman](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@sherman](https://forum.inductiveautomation.com/u/sherman)\
**Post date:** [June 25, 2024, 5:34pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-seems-to-publish-multiple-messages-using-system-cirruslink-engine-publish/92347/4 "2024-06-25T17:34:42Z")

</div>

Yeah, that was it. That's so annoying, especially because I have to leave the leaf project in permanent override mode. Gateway scripts don't even support export to project! Guess they never updated that section with that feature.
