# Gateway Tag Change getParentPath

**URL:** <https://forum.inductiveautomation.com/t/gateway-tag-change-getparentpath/80981>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [October 25, 2023, 6:24pm UTC](https://forum.inductiveautomation.com/t/gateway-tag-change-getparentpath/80981 "2023-10-25T18:24:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominicfabiilli](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@dominicfabiilli](https://forum.inductiveautomation.com/u/dominicfabiilli)\
**Post date:** [October 25, 2023, 6:24pm UTC](https://forum.inductiveautomation.com/t/gateway-tag-change-getparentpath/80981/1 "2023-10-25T18:24:44Z")

</div>

This is mostly a documentation request.

I was setting up a Gateway Tag Change Script and defined this variable:  
"sPath = event.tagPath.getParentPath()"

I assumed this function output a string after reading this section in the manual (from the link below):

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/3/537a5797df842e1b570e75f0f1f74762a3d5318c.png)

This was causing errors because I found that this actually outputs a "BasicTagPath".  
Would it be possible to make this more clear in the link below?

[https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts#GatewayEventScripts-TagChangeObjects](https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts#GatewayEventScripts-TagChangeObjects)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 25, 2023, 10:30pm UTC](https://forum.inductiveautomation.com/t/gateway-tag-change-getparentpath/80981/2 "2023-10-25T22:30:27Z")

</div>

Thanks for reporting; I brought this up with the documentation team and they'll get it updated soon.

---

<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 25, 2023, 11:06pm UTC](https://forum.inductiveautomation.com/t/gateway-tag-change-getparentpath/80981/3 "2023-10-25T23:06:28Z")

</div>

Probably worth removing the duplication between `.getTagPath()` and `.tagPath` and similar throughout that page. They are the same thing, just the latter is a jython optimization.
