# Tag event valueChanged Script Lost

**URL:** <https://forum.inductiveautomation.com/t/tag-event-valuechanged-script-lost/62528>\
**Category:** Ignition\
**Created:** [August 1, 2022, 5:39am UTC](https://forum.inductiveautomation.com/t/tag-event-valuechanged-script-lost/62528 "2022-08-01T05:39:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerald.Zhang](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Jerald.Zhang](https://forum.inductiveautomation.com/u/Jerald.Zhang)\
**Post date:** [August 1, 2022, 5:39am UTC](https://forum.inductiveautomation.com/t/tag-event-valuechanged-script-lost/62528/1 "2022-08-01T05:39:42Z")

</div>

SECS/GEM module will create tags for equipment, in these tags, there is a tag called “ConnectionStatus”, I bind a initial script on valueChanged of this tag, but sometimes this script will disappear. Why this happened?  
I have known from a development ignition gateway that when Trial Mode timeout, after reactivate the server, “ConnectionStatus” tag’ scripts will disappeared. But our production ignition gateway don’t need being reactivated, why still lost the bound scripts

---

<div class="post-metadata">

**Author:** ![Jerald.Zhang](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Jerald.Zhang](https://forum.inductiveautomation.com/u/Jerald.Zhang)\
**Post date:** [August 2, 2022, 3:27am UTC](https://forum.inductiveautomation.com/t/tag-event-valuechanged-script-lost/62528/2 "2022-08-02T03:27:01Z")

</div>

And when disabled the equipment, tag “ConnectionStatus”'s script also disappear next time enable this equipment.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [August 2, 2022, 8:15pm UTC](https://forum.inductiveautomation.com/t/tag-event-valuechanged-script-lost/62528/3 "2022-08-02T20:15:34Z")

</div>

This would be something to contact support about. I don’t see any reason a script would disappear.

---

<div class="post-metadata">

**Author:** ![Jerald.Zhang](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Jerald.Zhang](https://forum.inductiveautomation.com/u/Jerald.Zhang)\
**Post date:** [August 3, 2022, 1:02am UTC](https://forum.inductiveautomation.com/t/tag-event-valuechanged-script-lost/62528/4 "2022-08-03T01:02:57Z")

</div>

When disabled the script would disappear.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [August 6, 2022, 8:24am UTC](https://forum.inductiveautomation.com/t/tag-event-valuechanged-script-lost/62528/5 "2022-08-06T08:24:03Z")

</div>

Disabling the script should not make it disappear , only stop working.

---

<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:** [August 6, 2022, 2:36pm UTC](https://forum.inductiveautomation.com/t/tag-event-valuechanged-script-lost/62528/6 "2022-08-06T14:36:43Z")

</div>

The module has its own tag provider. It just sounds like a bug.

As a work-around, use a Gateway Tag Change Event (in a project) instead.

---

<div class="post-metadata">

**Author:** ![Jerald.Zhang](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Jerald.Zhang](https://forum.inductiveautomation.com/u/Jerald.Zhang)\
**Post date:** [October 11, 2022, 1:55am UTC](https://forum.inductiveautomation.com/t/tag-event-valuechanged-script-lost/62528/7 "2022-10-11T01:55:14Z")

</div>

Thanks for everyone's replay, this is a bug of SECS/GEM Module because that disabling equipment will delete and recreate tag, you could use reference tag instead.
