# UDT Instance value changed not working

**URL:** <https://forum.inductiveautomation.com/t/udt-instance-value-changed-not-working/109327>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [August 4, 2025, 3:36pm UTC](https://forum.inductiveautomation.com/t/udt-instance-value-changed-not-working/109327 "2025-08-04T15:36:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [August 4, 2025, 4:41pm UTC](https://forum.inductiveautomation.com/t/udt-instance-value-changed-not-working/109327/2 "2025-08-04T16:41:22Z")

</div>

Are there any errors or warnings in the gateway logs?

On line 8 , `tag_Value [0]` should be `tag_value[0]` the extra space is likely causing issues.

Assuming you are using the same UDT for each pump (or similar UDTs for groups of pumps),  
Gateway tag event scripts allow wildcards at the folder level when defining the tags to monitor.

> **[Gateway Event Scripts | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/platform/scripting/scripting-in-ignition/gateway-event-scripts#tags-tab)**
>
> Gateway Event Scripts Overview

Inside of the event script, you also have access to the full tag path of the tag that triggered the event, so you should be able to indirectly build the path to related tags without hard defining a list or a massive `if...else` chain. Worst case is that you make 1 gateway event per UDT type.

[Gateway Tag Change Event object](https://www.docs.inductiveautomation.com/docs/8.1/platform/scripting/scripting-in-ignition/gateway-event-scripts#the-event-object)

Finally, screenshots are great for showing context, but code should also be posted as preformatted text, to help speed up troubleshooting by allowing a simple copy/paste instead of having to read it from a screenshot. See [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).

---

_[View the full topic](https://forum.inductiveautomation.com/t/udt-instance-value-changed-not-working/109327)._
