# Root Container Property in tag write code

**URL:** <https://forum.inductiveautomation.com/t/root-container-property-in-tag-write-code/2967>\
**Category:** Ignition\
**Created:** [May 25, 2011, 9:13pm UTC](https://forum.inductiveautomation.com/t/root-container-property-in-tag-write-code/2967 "2011-05-25T21:13:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Temple](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@Matthew\_Temple](https://forum.inductiveautomation.com/u/Matthew_Temple)\
**Post date:** [May 25, 2011, 9:13pm UTC](https://forum.inductiveautomation.com/t/root-container-property-in-tag-write-code/2967/1 "2011-05-25T21:13:14Z")

</div>

I have a dynamic window that covers many of my sites. Each site has a communication check button that the operator can click to check communication and force update the most recent data. I am running into a problem.

When I try to execute this code…

[color=#0040FF]system.tag.writeToTag(“RTUevent.source.parent.RTUID/CommunicationInfo/Interrogate”, value)[/color]

I get this error…

[color=#FF4000]Traceback (innermost last):

File “event:mouseClicked”, line 8, in ?

IOError: Token PROPERTY\_SEPARATOR found after property name.

Ignition v7.2.6-beta11 (b112)  
[/color]

---

<div class="post-metadata">

**Author:** ![dave.fogle](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@dave.fogle](https://forum.inductiveautomation.com/u/dave.fogle)\
**Post date:** [May 25, 2011, 10:06pm UTC](https://forum.inductiveautomation.com/t/root-container-property-in-tag-write-code/2967/2 "2011-05-25T22:06:55Z")

</div>

If you're trying to dynamically build the tag path based on a root container property value then you are going to have to concatenate everything together. Something like this:

```python
system.tag.writeToTag("RTU"+str(event.source.parent.RTUID)+"/CommunicationInfo/Interrogate", value)
```

---

<div class="post-metadata">

**Author:** ![Matthew\_Temple](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@Matthew\_Temple](https://forum.inductiveautomation.com/u/Matthew_Temple)\
**Post date:** [May 25, 2011, 10:10pm UTC](https://forum.inductiveautomation.com/t/root-container-property-in-tag-write-code/2967/3 "2011-05-25T22:10:34Z")

</div>

Dave,

Once again, you guys are freaking awesome. Worked like a charm.

Thanks!
