# system.util.sendMessage in alarm notification pipeline

**URL:** <https://forum.inductiveautomation.com/t/system-util-sendmessage-in-alarm-notification-pipeline/63274>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [August 22, 2022, 3:05pm UTC](https://forum.inductiveautomation.com/t/system-util-sendmessage-in-alarm-notification-pipeline/63274 "2022-08-22T15:05:40Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [August 22, 2022, 3:05pm UTC](https://forum.inductiveautomation.com/t/system-util-sendmessage-in-alarm-notification-pipeline/63274/1 "2022-08-22T15:05:41Z")

</div>

Hello folks,

I’m trying to send a message from a script block in an alarm notification pipeline. The goal here is to send that message to a local gateway from a remote gateway, to process it in a special way.  
I need to keep the pipeline on the remote gateway, because that’s where the mail server is configured.

It works just fine from the script console, but not from the pipeline.

I tried logging before and after the call to `system.util.sendMessage`, I get the first log entry, but not the second. No error is logged, whether I try to catch and log it myself or not.

The call itself is basic:

```python
system.util.sendMessage(
	project="field_project",
	messageHandler="alarm_handler",
	payload={'message': message},
	scope="CGS", # 'G' should be enough, but just to make sure...
	remoteServers=["field_gateway"]
)

```

What am I missing ?

---

<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:** [August 22, 2022, 3:28pm UTC](https://forum.inductiveautomation.com/t/system-util-sendmessage-in-alarm-notification-pipeline/63274/2 "2022-08-22T15:28:18Z")

</div>

Alright, nevermind, I’m an idiot.  
The call was behind a messed up condition that could never be true.

---

<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 22, 2022, 3:55pm UTC](https://forum.inductiveautomation.com/t/system-util-sendmessage-in-alarm-notification-pipeline/63274/3 "2022-08-22T15:55:17Z")

</div>

I _hate_ when that happens!
