# Overriding a parameter of a nested child UDT

**URL:** <https://forum.inductiveautomation.com/t/overriding-a-parameter-of-a-nested-child-udt/15716>\
**Category:** Ignition\
**Created:** [October 19, 2017, 2:22pm UTC](https://forum.inductiveautomation.com/t/overriding-a-parameter-of-a-nested-child-udt/15716 "2017-10-19T14:22:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amarth](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarth/32/3313_2.png) [@Amarth](https://forum.inductiveautomation.com/u/Amarth)\
**Post date:** [October 19, 2017, 2:22pm UTC](https://forum.inductiveautomation.com/t/overriding-a-parameter-of-a-nested-child-udt/15716/1 "2017-10-19T14:22:22Z")

</div>

Hello all,

Is it possible to override the parameters of a child UDT by script.

Here is my simplified structure :  
1 Parent UDT  
1 Child UDT  
The parent contains a child. The child is the “bearer” of the parameter to modify.

PARENT\_UDT  
|  
------ CHILD\_UDT (Parameter)

With system.tag.editTag, i can change parameters of the parent and override the properties of the child, but what I would like to do is overriding the parameters of the child.  
This is doable in the Designer but I can figure how to do this by script.

Also, I do not wish to link my child parameters to a parent parameter.

Tried:

- system.tag.editTag(tagPath = “Parent/Child”, parameters = {“ChildParameter”:“Test”})
- system.tag.editTag(tagPath = “Parent”, overrides = {“Child”:{“ChildParameter”:“Test”}})

Regards.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [October 19, 2017, 10:11pm UTC](https://forum.inductiveautomation.com/t/overriding-a-parameter-of-a-nested-child-udt/15716/2 "2017-10-19T22:11:18Z")

</div>

system.tag.browseConfiguration and system.tag.configure.

Part of that is in 7.9.4, I believe it will be fully functional in 7.9.5.

---

<div class="post-metadata">

**Author:** ![Amarth](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarth/32/3313_2.png) [@Amarth](https://forum.inductiveautomation.com/u/Amarth)\
**Post date:** [December 18, 2017, 9:47am UTC](https://forum.inductiveautomation.com/t/overriding-a-parameter-of-a-nested-child-udt/15716/3 "2017-12-18T09:47:17Z")

</div>

Hello Kyle,

Have you more information about this system.tag.configure method you’re mentionning ? Can’t find it anywhere.

---

<div class="post-metadata">

**Author:** ![Juank\_Chavarria](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@Juank\_Chavarria](https://forum.inductiveautomation.com/u/Juank_Chavarria)\
**Post date:** [October 8, 2018, 4:30pm UTC](https://forum.inductiveautomation.com/t/overriding-a-parameter-of-a-nested-child-udt/15716/4 "2018-10-08T16:30:32Z")

</div>

Hello friends, have you been able to solve this? I’m trying to solve this but it gives me a lot of errors … If I use the TagPath of the UDT to change a parameter of a UDT-type child, it adds a new parameter to the parent, and if I overwrite it as if the UDT child outside a tag tells me what type of data does not have that property.

---

<div class="post-metadata">

**Author:** ![chasondeshotel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chasondeshotel/32/20032_2.png) [@chasondeshotel](https://forum.inductiveautomation.com/u/chasondeshotel)\
**Post date:** [October 10, 2018, 6:17pm UTC](https://forum.inductiveautomation.com/t/overriding-a-parameter-of-a-nested-child-udt/15716/6 "2018-10-10T18:17:48Z")

</div>

I’m not sure if this helps, and I’m not even sure where child UDT _parameters_ are, but for overriding values/properties on a child UDT, I’ve found a bug with the Ignition code, so maybe this will help someone (I’m on 7.9.4)

To override a property on a child UDT you’re supposed to do this according to the docs

```auto
system.tag.editTag(
    tagPath="[default]path\to\parent"
    , overrides={'child': {'Enabled':False}} )

```

but that doesn’t work for me. I have to include the child UDT in the tagPath and then where the child tag path is supposed to go I can literally put anything

```auto
system.tag.editTag(
    tagPath="[default]path\to\parent\child
    , overrides={'ANYTHINGHERE': {'Enabled':False}}
)

```

So that’s some sort of bug, but if I do it the second way, at least it works. I’ve commented the weirdness so if it gets fixed and this stops working one day hopefully it’ll be easier to find

---

<div class="post-metadata">

**Author:** ![Juank\_Chavarria](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@Juank\_Chavarria](https://forum.inductiveautomation.com/u/Juank_Chavarria)\
**Post date:** [October 10, 2018, 7:18pm UTC](https://forum.inductiveautomation.com/t/overriding-a-parameter-of-a-nested-child-udt/15716/7 "2018-10-10T19:18:02Z")

</div>

Hello  
Chasondeshotel, this did not work for me, since my property is a custom property of the child data type. I receive the following error:

com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: Tag property ‘Estado’ is invalid or value is an incorrect data type

---

<div class="post-metadata">

**Author:** ![chasondeshotel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chasondeshotel/32/20032_2.png) [@chasondeshotel](https://forum.inductiveautomation.com/u/chasondeshotel)\
**Post date:** [October 10, 2018, 7:56pm UTC](https://forum.inductiveautomation.com/t/overriding-a-parameter-of-a-nested-child-udt/15716/8 "2018-10-10T19:56:42Z")

</div>

Can you post a screenshot of where these parameters are?

I’m not sure I’m qualified to help, but I’ll try. I’m more curious where these child parameters are, I can’t seem to find what you’re talking about

edit: I guess I don’t understand nested UDTs. I use UDTs extensively, and all of those UDTs have nested _tags_ but not nested _UDTs_
