# Tag Path Questions

**URL:** <https://forum.inductiveautomation.com/t/tag-path-questions/28821>\
**Category:** Ignition\
**Created:** [October 4, 2019, 11:21am UTC](https://forum.inductiveautomation.com/t/tag-path-questions/28821 "2019-10-04T11:21:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![keith.hyder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/keith.hyder/32/4909_2.png) [@keith.hyder](https://forum.inductiveautomation.com/u/keith.hyder)\
**Post date:** [October 4, 2019, 11:21am UTC](https://forum.inductiveautomation.com/t/tag-path-questions/28821/1 "2019-10-04T11:21:33Z")

</div>

I am trying to use a tag event script to write to a client tag when the value changes. I believe my problem is in the tag path. I don’t get any errors for the script but it is not working. Any help would be appreciated.

````auto
	"""
	Fired whenever the current value changes in value or quality.

	Arguments:
		tag: The source tag object. A read-only wrapper for obtaining tag
		     properties.
		tagPath: The full path to the tag (String)
		previousValue: The previous value. This is a "qualified value", so it
		               has value, quality, and timestamp properties.
		currentValue: The current value. This is a "qualified value", so it has
		              value, quality, and timestamp properties.
		initialChange: A boolean flag indicating whether this event is due to
		               the first execution or initial subscription.
		missedEvents: A flag indicating that some events have been skipped due
		              to event overflow.
	"""
				
	prev = previousValue.value
	cur = currentValue.value
			
	if prev <> cur:
 		system.tag.write("[client]Test", cur) ```
````

---

<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:** [October 4, 2019, 11:34am UTC](https://forum.inductiveautomation.com/t/tag-path-questions/28821/2 "2019-10-04T11:34:14Z")

</div>

Is the tag the script is defined on also a client tag?

---

<div class="post-metadata">

**Author:** ![keith.hyder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/keith.hyder/32/4909_2.png) [@keith.hyder](https://forum.inductiveautomation.com/u/keith.hyder)\
**Post date:** [October 4, 2019, 11:47am UTC](https://forum.inductiveautomation.com/t/tag-path-questions/28821/3 "2019-10-04T11:47:06Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/143a4f4d06a4e91c86405becb88ab340267fb4b4.png) Top level tag or gateway tag.

To Client

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

---

<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:** [October 4, 2019, 11:49am UTC](https://forum.inductiveautomation.com/t/tag-path-questions/28821/4 "2019-10-04T11:49:19Z")

</div>

Well… you can’t do that. Regular tags exist in the gateway, not part of any project. Vision Client Tags only exist in the client as part of the project they are defined in.

---

<div class="post-metadata">

**Author:** ![keith.hyder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/keith.hyder/32/4909_2.png) [@keith.hyder](https://forum.inductiveautomation.com/u/keith.hyder)\
**Post date:** [October 4, 2019, 12:49pm UTC](https://forum.inductiveautomation.com/t/tag-path-questions/28821/5 "2019-10-04T12:49:38Z")

</div>

I’ll see if I can find another way to do what I need. Thank you for the quick replies.

---

<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:** [October 4, 2019, 1:21pm UTC](https://forum.inductiveautomation.com/t/tag-path-questions/28821/6 "2019-10-04T13:21:16Z")

</div>

Consider using a client tag change event. It runs in the client and can write to client tags.
