# After Gateway restart Alert message goes back to default

**URL:** <https://forum.inductiveautomation.com/t/after-gateway-restart-alert-message-goes-back-to-default/3752>\
**Category:** Ignition\
**Created:** [December 15, 2011, 12:15am UTC](https://forum.inductiveautomation.com/t/after-gateway-restart-alert-message-goes-back-to-default/3752 "2011-12-15T00:15:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [December 15, 2011, 12:15am UTC](https://forum.inductiveautomation.com/t/after-gateway-restart-alert-message-goes-back-to-default/3752/1 "2011-12-15T00:15:55Z")

</div>

I have an alert that goes off every 4 hours with this expression:

```auto
if(ExtractHour(now())%4=0&&ExtractMinute(now())=0,1,0)
```

I have the notification settings to use a custom alert message with a subject of

```auto
CO2 Tank Level is {CO2/TankLevel}
```

and an alert message of

```auto
CO2 Tank Level is {CO2/TankLevel}
```

whenever the gateway restarts the message sent in the email is

> [@](#):
>
> Alert active 4:00 PM - CO2/CO2LevelAlert.CO2TankLevelEmail CO2 Level Email 1.0

I have found if I go into the alert settings and change the alert send to yes click ok and then change it back to no the next time the alert is sent off it will send with the custom message. How do I stop the default message from coming back?

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [December 15, 2011, 6:34pm UTC](https://forum.inductiveautomation.com/t/after-gateway-restart-alert-message-goes-back-to-default/3752/2 "2011-12-15T18:34:12Z")

</div>

It sounds like the initial state message that gets sent when the tag is initialized doesn’t have the right message on it. Most people don’t want to send these messages anyhow (because everyone gets emails when the system is restarted), so there’s an option to turn them off under the notification profile. Just uncheck the “Send Initial” option.

We’ll look into the message problem, though, in case you do want to send these messages.

Let me know if the “Send Initial” is already unselected on your system, though.

Regards,

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [December 15, 2011, 6:42pm UTC](https://forum.inductiveautomation.com/t/after-gateway-restart-alert-message-goes-back-to-default/3752/3 "2011-12-15T18:42:29Z")

</div>

the send initial is already turned off. It has been turned off since this post [viewtopic.php?f=70&t=6966](http://www.inductiveautomation.com/forum/viewtopic.php?f=70&t=6966)

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [December 15, 2011, 11:42pm UTC](https://forum.inductiveautomation.com/t/after-gateway-restart-alert-message-goes-back-to-default/3752/4 "2011-12-15T23:42:53Z")

</div>

Ah, ok. I suspect that it may not be finding the referenced path on startup, and is reverting to the default because of that. I’ll see if that’s possible or not.

Regards,

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [December 23, 2011, 6:52pm UTC](https://forum.inductiveautomation.com/t/after-gateway-restart-alert-message-goes-back-to-default/3752/5 "2011-12-23T18:52:51Z")

</div>

I just wanted to let you know that I haven’t forgot about this, but haven’t been able to look into it yet. I did confirm that it will simply fall back to the default message if an error occurs parsing the custom message, but it should log an error.

Anyhow, I intend to tackle this next week, and hopefully I can find something in time for the 7.3.3 update.

Regards,

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [December 23, 2011, 6:57pm UTC](https://forum.inductiveautomation.com/t/after-gateway-restart-alert-message-goes-back-to-default/3752/6 "2011-12-23T18:57:27Z")

</div>

Okay, thanks for the update.

Jonathan
