# 8.0.15 UDT Parameters Reference Parameters in same UDT

**URL:** <https://forum.inductiveautomation.com/t/8-0-15-udt-parameters-reference-parameters-in-same-udt/37341>\
**Category:** Ignition\
**Created:** [August 3, 2020, 10:54pm UTC](https://forum.inductiveautomation.com/t/8-0-15-udt-parameters-reference-parameters-in-same-udt/37341 "2020-08-03T22:54:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael2](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@michael2](https://forum.inductiveautomation.com/u/michael2)\
**Post date:** [August 3, 2020, 10:54pm UTC](https://forum.inductiveautomation.com/t/8-0-15-udt-parameters-reference-parameters-in-same-udt/37341/1 "2020-08-03T22:54:06Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/c/7c56724404aad5d98247adfee2a66cfee91bfe3a.png)

I’ve recently upgraded to 8.0.15 and my UDT parameters don’t seem to be working as they did before. I have a UDT which is nested within another UDT, which references parameters in the parent UDT. After upgrading to 8.0.15 it references the parameters in the child UDT rather than the parent. The first {Device} reference will work correctly however the second will reference the first {Device} parameter. I was on 8.0.12 prior. Is this intended behaviour?

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [August 3, 2020, 11:43pm UTC](https://forum.inductiveautomation.com/t/8-0-15-udt-parameters-reference-parameters-in-same-udt/37341/2 "2020-08-03T23:43:46Z")

</div>

To be clear - you’re saying the `RunHours` param is incorrectly referencing the `Device` param in the child UDT?

---

<div class="post-metadata">

**Author:** ![michael2](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@michael2](https://forum.inductiveautomation.com/u/michael2)\
**Post date:** [August 3, 2020, 11:55pm UTC](https://forum.inductiveautomation.com/t/8-0-15-udt-parameters-reference-parameters-in-same-udt/37341/3 "2020-08-03T23:55:22Z")

</div>

Yes, that is correct. For example each of those parameters will evaluate to the following:

Device - LSA\_P1  
Name - Pump 1  
PLC - RH\_EngineRoom01  
ParentName - **Pump 1** - (Should be ‘Low Side Accumulator’)  
RunHours - **LSA\_P1\_P1\_HR.Hrs\_Run** - (Should be ‘LSA\_P1\_HR.Hrs\_Run’)

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [August 5, 2020, 3:15am UTC](https://forum.inductiveautomation.com/t/8-0-15-udt-parameters-reference-parameters-in-same-udt/37341/4 "2020-08-05T03:15:00Z")

</div>

Do you mind sending a tag export so I can take a look?

---

<div class="post-metadata">

**Author:** ![michael2](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@michael2](https://forum.inductiveautomation.com/u/michael2)\
**Post date:** [August 20, 2020, 10:37pm UTC](https://forum.inductiveautomation.com/t/8-0-15-udt-parameters-reference-parameters-in-same-udt/37341/5 "2020-08-20T22:37:57Z")

</div>

Has there been any action on this? This is causing a big problem for my project. (For anyone wondering, I did send a tag export in a PM)

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [August 21, 2020, 12:03am UTC](https://forum.inductiveautomation.com/t/8-0-15-udt-parameters-reference-parameters-in-same-udt/37341/6 "2020-08-21T00:03:25Z")

</div>

Sorry for the delay, I’ve now cleared up the behavior questions I had with our tag guru.

What you were seeing in 8.0.12 was actually a result of a bug we fixed sometime between 8.0.12 and 8.0.15, where parameters in nested UDTs weren’t able to properly resolve parameter references within the same UDT, and instead referenced the parent. The current behavior is intended - if a nested UDT parameter value is using a parameter reference, and that reference is to a parameter that exists in both the parent UDT and nested UDT, it will use the nested UDT parameter.

If you need to use a parent UDT parameter, you should give it a different name to avoid ambiguity (from both a programming standpoint and a user standpoint). In your case specifically, changing `Device` in the parent UDT to be `Parent_Device` or something similar.

---

<div class="post-metadata">

**Author:** ![michael2](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@michael2](https://forum.inductiveautomation.com/u/michael2)\
**Post date:** [August 21, 2020, 12:21am UTC](https://forum.inductiveautomation.com/t/8-0-15-udt-parameters-reference-parameters-in-same-udt/37341/7 "2020-08-21T00:21:39Z")

</div>

Alright, I don’t much see the purpose in a parameter referencing a parameter in the same UDT, but it looks like I’ll need to find a solution. How can I quickly modify hundreds of instances of a UDT? If I change the name it will just add a new parameter and I still need to go through and change every instance.

---

<div class="post-metadata">

**Author:** ![michael2](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@michael2](https://forum.inductiveautomation.com/u/michael2)\
**Post date:** [August 21, 2020, 12:48am UTC](https://forum.inductiveautomation.com/t/8-0-15-udt-parameters-reference-parameters-in-same-udt/37341/8 "2020-08-21T00:48:11Z")

</div>

Looks like I can use this against itself to create a new parameter that references the old one. `Name1` is added to the parent and references `Name`. Then I only need to change the reference in the UDT and not the instances.
