# \[BUG - 13165\]Tag Event Script initial Change behavior had changed from 7.9 to 8.0

**URL:** <https://forum.inductiveautomation.com/t/bug-13165-tag-event-script-initial-change-behavior-had-changed-from-7-9-to-8-0/23381>\
**Category:** Ignition Early Access\
**Created:** [March 15, 2019, 3:03pm UTC](https://forum.inductiveautomation.com/t/bug-13165-tag-event-script-initial-change-behavior-had-changed-from-7-9-to-8-0/23381 "2019-03-15T15:03:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![code\_skin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@code\_skin](https://forum.inductiveautomation.com/u/code_skin)\
**Post date:** [March 15, 2019, 3:03pm UTC](https://forum.inductiveautomation.com/t/bug-13165-tag-event-script-initial-change-behavior-had-changed-from-7-9-to-8-0/23381/1 "2019-03-15T15:03:35Z")

</div>

I noticed the initialChange flag doesn't behave the same way as it does in Ignition 7.  
It's only true when a tag is first created and remains false on additional script modifications.  
Is this expected behavior? The document string suggests it flags on the first execution(doesn't work) or initial subscription (works).

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

> system.util.getLogger('hello').info('tag: %s, initialChange: %s'%(tagPath, initialChange))

---

<div class="post-metadata">

**Author:** ![anjoroge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/anjoroge/32/6698_2.png) [@anjoroge](https://forum.inductiveautomation.com/u/anjoroge)\
**Post date:** [March 15, 2019, 5:29pm UTC](https://forum.inductiveautomation.com/t/bug-13165-tag-event-script-initial-change-behavior-had-changed-from-7-9-to-8-0/23381/2 "2019-03-15T17:29:09Z")

</div>

Hi Code\_skin

We didn’t intended for the behavior in 8.0 to change from 7.9 and will look into it. I will write an internal ticket to keep track of the issue. Thanks for the head up

Anthony

---

<div class="post-metadata">

**Author:** ![jhottell](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jhottell/32/6472_2.png) [@jhottell](https://forum.inductiveautomation.com/u/jhottell)\
**Post date:** [June 21, 2019, 3:34pm UTC](https://forum.inductiveautomation.com/t/bug-13165-tag-event-script-initial-change-behavior-had-changed-from-7-9-to-8-0/23381/3 "2019-06-21T15:34:59Z")

</div>

I put in my vote for needing this bug fix.

I have tag value change scripts that now execute every time the script is updated, it's critical for me to have

> if initialChange == False:

working again so it executes only when the value changes and not when the script is updated in the UDT. Having 1000 instances of the UDT execute the change script erroneously on save isn't ideal.

---

<div class="post-metadata">

**Author:** ![jlengyel](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@jlengyel](https://forum.inductiveautomation.com/u/jlengyel)\
**Post date:** [August 1, 2019, 10:12pm UTC](https://forum.inductiveautomation.com/t/bug-13165-tag-event-script-initial-change-behavior-had-changed-from-7-9-to-8-0/23381/4 "2019-08-01T22:12:03Z")

</div>

Is there an update on this?

---

<div class="post-metadata">

**Author:** ![jlengyel](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@jlengyel](https://forum.inductiveautomation.com/u/jlengyel)\
**Post date:** [August 8, 2019, 8:13pm UTC](https://forum.inductiveautomation.com/t/bug-13165-tag-event-script-initial-change-behavior-had-changed-from-7-9-to-8-0/23381/5 "2019-08-08T20:13:59Z")

</div>

This is still an issue in 8.0.3, and is causing problems on my system when I make UDT updates.

---

<div class="post-metadata">

**Author:** ![awalker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awalker/32/6874_2.png) [@awalker](https://forum.inductiveautomation.com/u/awalker)\
**Post date:** [August 26, 2019, 4:14pm UTC](https://forum.inductiveautomation.com/t/bug-13165-tag-event-script-initial-change-behavior-had-changed-from-7-9-to-8-0/23381/6 "2019-08-26T16:14:35Z")

</div>

This issue was fixed in the 8.0.4 Nightly build that was uploaded today (8/26).
