# Edit UDT property with script

**URL:** <https://forum.inductiveautomation.com/t/edit-udt-property-with-script/52183>\
**Category:** Ignition\
**Created:** [October 20, 2021, 8:10pm UTC](https://forum.inductiveautomation.com/t/edit-udt-property-with-script/52183 "2021-10-20T20:10:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric.stricklin](https://avatars.discourse-cdn.com/v4/letter/e/ad7895/32.png) [@eric.stricklin](https://forum.inductiveautomation.com/u/eric.stricklin)\
**Post date:** [October 20, 2021, 8:10pm UTC](https://forum.inductiveautomation.com/t/edit-udt-property-with-script/52183/1 "2021-10-20T20:10:00Z")

</div>

I’m trying to edit a nested UDT property from a script, in 8.1.9. I’m simply trying to enable this nested udt instance. Here is an example of what I’m trying to do.

```auto
path = '[myprovider]myfirstudt/mysecondudt'
parent_path = '[myprovider]myfirstudt'
config = system.tag.getConfiguration(path, False)
config[0]['enabled'] = True
system.tag.config(parent_path, config)

```

After I run my script, the nested UDT remains disabled, but the strange thing is when I run a script to retrieve it’s configuration, enabled is still set to True.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![swolnisty](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@swolnisty](https://forum.inductiveautomation.com/u/swolnisty)\
**Post date:** [October 20, 2021, 9:43pm UTC](https://forum.inductiveautomation.com/t/edit-udt-property-with-script/52183/2 "2021-10-20T21:43:11Z")

</div>

Are you actually calling system.tag.config() as a function on line 5, or is that just a typo? I don’t believe config() is a valid tag function. I’m assuming that system.tag.configure() was intended instead, which functioned as expected for me in 8.1.4.

---

<div class="post-metadata">

**Author:** ![eric.stricklin](https://avatars.discourse-cdn.com/v4/letter/e/ad7895/32.png) [@eric.stricklin](https://forum.inductiveautomation.com/u/eric.stricklin)\
**Post date:** [October 21, 2021, 5:48pm UTC](https://forum.inductiveautomation.com/t/edit-udt-property-with-script/52183/3 "2021-10-21T17:48:24Z")

</div>

Thanks for the reply, it was a typo. I found the problem, I had a horrible bug in my actual code, I feel pretty embarrassed now.
