# Gateway tag change script - event.getTag issue

**URL:** <https://forum.inductiveautomation.com/t/gateway-tag-change-script-event-gettag-issue/27054>\
**Category:** Ignition Early Access\
**Created:** [July 31, 2019, 7:18pm UTC](https://forum.inductiveautomation.com/t/gateway-tag-change-script-event-gettag-issue/27054 "2019-07-31T19:18:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CraigP](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@CraigP](https://forum.inductiveautomation.com/u/CraigP)\
**Post date:** [July 31, 2019, 7:18pm UTC](https://forum.inductiveautomation.com/t/gateway-tag-change-script-event-gettag-issue/27054/1 "2019-07-31T19:18:19Z")

</div>

I’m having trouble getting the name of the tag in a gateway tag change script. When using  
name = event.getTag().getName().toStringFull()  
I get this error: com.inductiveautomation.ignition.common.script.JythonExecException: Traceback (most recent call last): File “”, line 10, in AttributeError: ‘com.inductiveautomation.ignition.common.util.Filte’ object has no attribute ‘getTag’

I can get the path without error by using:  
path = event.getTagPath().toStringFull()

Version: **8.0.2**

---

<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:** [July 31, 2019, 7:37pm UTC](https://forum.inductiveautomation.com/t/gateway-tag-change-script-event-gettag-issue/27054/2 "2019-07-31T19:37:11Z")

</div>

The event doesn’t have a `getTag()` method.

Try `event.getTagPath().getItemName()` instead?

---

<div class="post-metadata">

**Author:** ![CraigP](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@CraigP](https://forum.inductiveautomation.com/u/CraigP)\
**Post date:** [July 31, 2019, 7:49pm UTC](https://forum.inductiveautomation.com/t/gateway-tag-change-script-event-gettag-issue/27054/3 "2019-07-31T19:49:27Z")

</div>

That worked. Thanks.

I found getTag() mentioned here:  
[https://docs.inductiveautomation.com/display/DOC80/Gateway+Event+Scripts#GatewayEventScripts-TagChangeScripts](https://docs.inductiveautomation.com/display/DOC80/Gateway+Event+Scripts#GatewayEventScripts-TagChangeScripts)

---

<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:** [July 31, 2019, 8:00pm UTC](https://forum.inductiveautomation.com/t/gateway-tag-change-script-event-gettag-issue/27054/4 "2019-07-31T20:00:22Z")

</div>

Thanks, looks like this page needs to be updated.

---

<div class="post-metadata">

**Author:** ![Paul.Scott](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul.scott/32/4578_2.png) [@Paul.Scott](https://forum.inductiveautomation.com/u/Paul.Scott)\
**Post date:** [August 1, 2019, 1:38am UTC](https://forum.inductiveautomation.com/t/gateway-tag-change-script-event-gettag-issue/27054/5 "2019-08-01T01:38:35Z")

</div>

Apologies for the outdated docs. I went and updated the Tag Change methods on that page. It may be better to list those methods on a separate reference page, but I’ll leave them there for now.
