# Multiple tag change events report initialChange

**URL:** <https://forum.inductiveautomation.com/t/multiple-tag-change-events-report-initialchange/41302>\
**Category:** Ignition\
**Created:** [December 8, 2020, 4:48pm UTC](https://forum.inductiveautomation.com/t/multiple-tag-change-events-report-initialchange/41302 "2020-12-08T16:48:57Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 8, 2020, 4:48pm UTC](https://forum.inductiveautomation.com/t/multiple-tag-change-events-report-initialchange/41302/1 "2020-12-08T16:48:57Z")

</div>

In a `Value Changed` tag event script I have the following:

```auto
def valueChanged(tag, tagPath, previousValue, currentValue, initialChange, missedEvents):
	qual = currentValue.quality
	print '_' * 50
	print 'tag value changed: %s' % tagPath
	print 'tag quality:', qual
	if initialChange:
		print 'Initial change'

```

The output in `wrapper.log` is:

```auto
INFO | jvm 1 | 2020/12/08 09:39:35 | __________________________________________________
INFO | jvm 1 | 2020/12/08 09:39:35 | tag value changed: [Dev2]Health
INFO | jvm 1 | 2020/12/08 09:39:35 | tag quality: Uncertain_InitialValue
INFO | jvm 1 | 2020/12/08 09:39:35 | Initial change
INFO | jvm 1 | 2020/12/08 09:39:35 | __________________________________________________
INFO | jvm 1 | 2020/12/08 09:39:35 | tag value changed: [Dev2]Health
INFO | jvm 1 | 2020/12/08 09:39:35 | tag quality: Error_Configuration
INFO | jvm 1 | 2020/12/08 09:39:35 | Initial change

```

Why do both events report they are `InitialChange`? Shouldn’t only the first one be?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 8, 2020, 5:43pm UTC](https://forum.inductiveautomation.com/t/multiple-tag-change-events-report-initialchange/41302/2 "2020-12-08T17:43:37Z")

</div>

What version of Ignition are you using? How are you triggering this?

---

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 8, 2020, 5:47pm UTC](https://forum.inductiveautomation.com/t/multiple-tag-change-events-report-initialchange/41302/3 "2020-12-08T17:47:09Z")

</div>

Ignition 8.1  
By restarting the gateway in Windows services

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 8, 2020, 5:50pm UTC](https://forum.inductiveautomation.com/t/multiple-tag-change-events-report-initialchange/41302/4 "2020-12-08T17:50:06Z")

</div>

Okay, and is that a memory tag? Expression tag? I’m just trying to get a quick reproduction set up so I can create a ticket.

---

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 8, 2020, 5:50pm UTC](https://forum.inductiveautomation.com/t/multiple-tag-change-events-report-initialchange/41302/5 "2020-12-08T17:50:27Z")

</div>

OPC tag

---

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 8, 2020, 5:55pm UTC](https://forum.inductiveautomation.com/t/multiple-tag-change-events-report-initialchange/41302/6 "2020-12-08T17:55:43Z")

</div>

Also I have the following in the quality changed event on the same tag:

```auto
	print '-' * 50
	print 'My quality changed: %s' % (tagPath)
	if initialChange:
		print 'Initial change'
	pv = previousValue.value
	pq = previousValue.quality
	print 'previous val:', pv
	print 'previous qual:', pq
	cv = currentValue.value
	cq = currentValue.quality
	print 'current val:', cv
	print 'current qual:', cq

```

and the output in this case is:

```auto
INFO | jvm 1 | 2020/12/08 10:51:47 | --------------------------------------------------
INFO | jvm 1 | 2020/12/08 10:51:47 | My quality changed: [Dev2]Health
INFO | jvm 1 | 2020/12/08 10:51:47 | previous val: None
INFO | jvm 1 | 2020/12/08 10:51:47 | previous qual: Uncertain_InitialValue
INFO | jvm 1 | 2020/12/08 10:51:47 | current val: None
INFO | jvm 1 | 2020/12/08 10:51:47 | current qual: Error_Configuration

```

Here it’s not indicating initial change but should be. Shouldn’t it?

Also on 8.1 and restarting gateway.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 8, 2020, 6:01pm UTC](https://forum.inductiveautomation.com/t/multiple-tag-change-events-report-initialchange/41302/7 "2020-12-08T18:01:27Z")

</div>

Yes, something seems broken to me. I’m writing this up.

---

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 8, 2020, 6:36pm UTC](https://forum.inductiveautomation.com/t/multiple-tag-change-events-report-initialchange/41302/8 "2020-12-08T18:36:17Z")

</div>

Can I subscribe to be notified on updates to this somehow?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 8, 2020, 6:37pm UTC](https://forum.inductiveautomation.com/t/multiple-tag-change-events-report-initialchange/41302/9 "2020-12-08T18:37:05Z")

</div>

This thread is linked to in our ticket, I’ll leave a note to come back and update once something is found/fixed.

---

<div class="post-metadata">

**Author:** ![apadilla](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@apadilla](https://forum.inductiveautomation.com/u/apadilla)\
**Post date:** [January 25, 2021, 4:53pm UTC](https://forum.inductiveautomation.com/t/multiple-tag-change-events-report-initialchange/41302/10 "2021-01-25T16:53:59Z")

</div>

Hello iamthebull, quality changed events have been updated to properly show the initial change flag after gateway restart. This fix will be in 8.1.3.

The value changed tag event issue is still being looked at. We’ll reply again when it is addressed.

---

<div class="post-metadata">

**Author:** ![Eric.Nielsen](https://avatars.discourse-cdn.com/v4/letter/e/e19b73/32.png) [@Eric.Nielsen](https://forum.inductiveautomation.com/u/Eric.Nielsen)\
**Post date:** [March 21, 2022, 7:50pm UTC](https://forum.inductiveautomation.com/t/multiple-tag-change-events-report-initialchange/41302/11 "2022-03-21T19:50:58Z")

</div>

Any update on the change tag event issue? How can the functionality be expected to operate in the current stable version?
