# Troubleshooting finding what's affecting tag

**URL:** <https://forum.inductiveautomation.com/t/troubleshooting-finding-whats-affecting-tag/93933>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [July 30, 2024, 6:00pm UTC](https://forum.inductiveautomation.com/t/troubleshooting-finding-whats-affecting-tag/93933 "2024-07-30T18:00:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Craig](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@Ryan\_Craig](https://forum.inductiveautomation.com/u/Ryan_Craig)\
**Post date:** [July 30, 2024, 6:00pm UTC](https://forum.inductiveautomation.com/t/troubleshooting-finding-whats-affecting-tag/93933/1 "2024-07-30T18:00:11Z")

</div>

I recently took over a project for a coworker and noticed that we are getting an error from one of there loggers. This error is to warn that the Boolean tag was not turned off correctly. After the logger happens, it then flips the boolean tag itself. (Here is the script, but I don't think this is the problem:)

```python
"""
	DESCRIPTION: Tag Event changes for matrox.status
"""

from time import sleep

logger = system.util.getLogger("SmartInterface_Rev2")

def dataReady(tagPath, currentValue):
	""""
		DESCRIPTION: Data Ready tag path change 
		PARAMETERS: tagPath (REQ, str): tagPath from change event
		RETURNS: None
	"""	
	logger.debug("tagPath: %s" %tagPath)
	RETRY_ATTEMPTS = 10
	
	if currentValue.value:	
		for attempt in range(RETRY_ATTEMPTS):	
			sleep(1)
			
			# recheck that the data ready has gone False
			dataReady = system.tag.readBlocking([tagPath])[0].value
			
			if not dataReady:
				break
				
			elif dataReady and attempt == RETRY_ATTEMPTS - 1:
				logger.warn("%s timed out, reset" %tagPath)	
				system.tag.writeBlocking(["%s" %tagPath], [0])

```

I started checking the PLC and found the tag is being latched within the code, but not being unlatched. I am having trouble finding where/what it is supposed to be unlatching this tag. I have even done some extensive searches within the find/replace tool.

We have 2 machines running off this program, one is working fine the other is throwing this error.

Is there a way that I can trend a tag so that I can find exactly what is unlatching the tag for the working machine and what is supposed to be unlatching the tag for the broken machine?

---

<div class="post-metadata">

**Author:** ![elijah.roberts](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@elijah.roberts](https://forum.inductiveautomation.com/u/elijah.roberts)\
**Post date:** [July 30, 2024, 6:26pm UTC](https://forum.inductiveautomation.com/t/troubleshooting-finding-whats-affecting-tag/93933/2 "2024-07-30T18:26:10Z")

</div>

Depending on what version of Ignition you are using you could use the tag reference tracker to see where that tag is being referenced at and it's usage (write or subscription). Then utilize the last referenced and updates columns to see if you can tell what is unlatching the tag and then you will have a good place to start looking for what is supposed to be unlatching it.

Although I don't think it will show what is unlatching it if it is being unlatched by a script. So that may not do what you are needing.

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [July 30, 2024, 7:02pm UTC](https://forum.inductiveautomation.com/t/troubleshooting-finding-whats-affecting-tag/93933/3 "2024-07-30T19:02:14Z")

</div>

You could setup an audit profile to identify who is writing to the tag.

> **[Creating an Audit Profile Video at Inductive University](https://www.inductiveuniversity.com/videos/creating-an-audit-profile/8.1)**
>
> An Ignition Gateway can automatically record information about events that occur in the system, but doing so requires the creation of an Audit Profile. Learn how to create one in this lesson.

---

<div class="post-metadata">

**Author:** ![Ryan\_Craig](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@Ryan\_Craig](https://forum.inductiveautomation.com/u/Ryan_Craig)\
**Post date:** [July 31, 2024, 3:08pm UTC](https://forum.inductiveautomation.com/t/troubleshooting-finding-whats-affecting-tag/93933/4 "2024-07-31T15:08:35Z")

</div>

I ended up using the tag diagnostics and found out that one of the transaction groups that used this tag, did not have the "Reset trigger after execution" checked... Thanks for the help!
