# Tag.EditTag Sub UDT Parameter

**URL:** <https://forum.inductiveautomation.com/t/tag-edittag-sub-udt-parameter/18768>\
**Category:** Ignition\
**Created:** [July 9, 2018, 11:52am UTC](https://forum.inductiveautomation.com/t/tag-edittag-sub-udt-parameter/18768 "2018-07-09T11:52:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![oisin.gribben](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@oisin.gribben](https://forum.inductiveautomation.com/u/oisin.gribben)\
**Post date:** [July 9, 2018, 11:52am UTC](https://forum.inductiveautomation.com/t/tag-edittag-sub-udt-parameter/18768/1 "2018-07-09T11:52:52Z")

</div>

I am trying to edit a parameter in a child UDT.  
In the image below I am trying to edit the ‘SlaveID’ parameter in ‘TOB01’.  
Instead of the parameter being edited, a parameter called ‘SlaveID’ is being created in the parent UDT ‘BWA01’  
The tagPath being passed in the function is correct.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/8d4827bbf0b7e83870eb0ccea617abfe58ff1c64.png)

Here is the script being called.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/394c6f6745bec970e642a90719aff9043c8d3d8c.png)

---

<div class="post-metadata">

**Author:** ![phillip.bow](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@phillip.bow](https://forum.inductiveautomation.com/u/phillip.bow)\
**Post date:** [July 9, 2018, 4:01pm UTC](https://forum.inductiveautomation.com/t/tag-edittag-sub-udt-parameter/18768/2 "2018-07-09T16:01:40Z")

</div>

I played with this and found that with a similar structure this will set the parameters on the child correctly:

```auto
path = "ParentUDT"
params = {"ChildUDT/Param1": "Test P1"}
system.tag.editTag(tagPath=path, parameters=params)

```

While this will create a new parameter on the parent object as you’re seeing:

```auto
path = "ParentUDT/ChildUDT"
params = {"Param1": "Test P1"}
system.tag.editTag(tagPath=path, parameters=params)

```

Seems like a bug but the workaround would be to specify the child-UDT path in your parameters map.

---

<div class="post-metadata">

**Author:** ![oisin.gribben](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@oisin.gribben](https://forum.inductiveautomation.com/u/oisin.gribben)\
**Post date:** [July 10, 2018, 8:50am UTC](https://forum.inductiveautomation.com/t/tag-edittag-sub-udt-parameter/18768/3 "2018-07-10T08:50:51Z")

</div>

Thanks for answering so quick.  
I’ve tried out this method and I got the same outcome again.  
It adds the parameter to the parent instead of the child.

---

<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:** [July 10, 2018, 2:29pm UTC](https://forum.inductiveautomation.com/t/tag-edittag-sub-udt-parameter/18768/4 "2018-07-10T14:29:01Z")

</div>

What version of Ignition are you using? To ensure correct behavior with UDT editing through scripting, you’ll need to be on Ignition 7.9.8.

---

<div class="post-metadata">

**Author:** ![oisin.gribben](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@oisin.gribben](https://forum.inductiveautomation.com/u/oisin.gribben)\
**Post date:** [July 10, 2018, 2:38pm UTC](https://forum.inductiveautomation.com/t/tag-edittag-sub-udt-parameter/18768/5 "2018-07-10T14:38:02Z")

</div>

I am currently using version 7.9.8.

---

<div class="post-metadata">

**Author:** ![Andrew\_P](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Andrew\_P](https://forum.inductiveautomation.com/u/Andrew_P)\
**Post date:** [October 3, 2018, 5:32am UTC](https://forum.inductiveautomation.com/t/tag-edittag-sub-udt-parameter/18768/6 "2018-10-03T05:32:38Z")

</div>

I have the same problem, with version 7.9.8, anyone resolved this yet?
