# System.tag.read in client produces "object has no attribute 'tag'"

**URL:** <https://forum.inductiveautomation.com/t/system-tag-read-in-client-produces-object-has-no-attribute-tag/50539>\
**Category:** Ignition\
**Tags:** ignition79, vision, scripting\
**Created:** [September 1, 2021, 8:58pm UTC](https://forum.inductiveautomation.com/t/system-tag-read-in-client-produces-object-has-no-attribute-tag/50539 "2021-09-01T20:58:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtaylor](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@dtaylor](https://forum.inductiveautomation.com/u/dtaylor)\
**Post date:** [September 1, 2021, 8:58pm UTC](https://forum.inductiveautomation.com/t/system-tag-read-in-client-produces-object-has-no-attribute-tag/50539/1 "2021-09-01T20:58:53Z")

</div>

Ignition 7.9 vision

I’m trying to do a simple tag read in a custom method called “init” defined in the root container of a window. This “init” is called from the visionWindowOpened event of the same window.

visionWindowOpened:

```
root = system.gui.getParentWindow(event).getRootContainer()
root.init()

```

init:

```
root = self
path = 'Line ' + str(root.LineNumber) + '/Saddle Plating Data/' + str(root.SaddleIndex) + '/core_weight'
root.UnplatedWgt = system.tag.read(path).value

```

The error message that I am getting is:

```
File "<event:visionWindowOpened>", line 4, in <module>
File "<custom-function init>", line 11, in init
	AttributeError: 'com.inductiveautomation.ignition.common.script.Imm' object has no attribute 'tag'

```

I don’t understand why ‘tag’ would not be on ‘system’ especially when in a script on the client.

---

<div class="post-metadata">

**Author:** ![dtaylor](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@dtaylor](https://forum.inductiveautomation.com/u/dtaylor)\
**Post date:** [September 2, 2021, 12:36pm UTC](https://forum.inductiveautomation.com/t/system-tag-read-in-client-produces-object-has-no-attribute-tag/50539/2 "2021-09-02T12:36:02Z")

</div>

well, apparently there was NOTHING wrong with what I was doing. A simple restart of the Gateway fixed the problem.

This begs the question of how the Gateway could get into a state where it looses track of it’s own libraries.

---

<div class="post-metadata">

**Author:** ![jstaebell](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jstaebell](https://forum.inductiveautomation.com/u/jstaebell)\
**Post date:** [March 29, 2022, 9:02pm UTC](https://forum.inductiveautomation.com/t/system-tag-read-in-client-produces-object-has-no-attribute-tag/50539/3 "2022-03-29T21:02:30Z")

</div>

I am running into this too. Did this problem ever happen to you again? I restarted the gateway and it worked for a short time, then did not.

---

<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:** [March 29, 2022, 11:09pm UTC](https://forum.inductiveautomation.com/t/system-tag-read-in-client-produces-object-has-no-attribute-tag/50539/4 "2022-03-29T23:09:29Z")

</div>

I have only ever seen this happen when a script is written such that it’s inadvertently overwriting the `system` variable locally.

---

<div class="post-metadata">

**Author:** ![jstaebell](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jstaebell](https://forum.inductiveautomation.com/u/jstaebell)\
**Post date:** [May 2, 2022, 7:41pm UTC](https://forum.inductiveautomation.com/t/system-tag-read-in-client-produces-object-has-no-attribute-tag/50539/5 "2022-05-02T19:41:38Z")

</div>

This ended up being the issue for me.
