# Referring to disabled tags in an expression tag (in the same UDT)

**URL:** <https://forum.inductiveautomation.com/t/referring-to-disabled-tags-in-an-expression-tag-in-the-same-udt/16265>\
**Category:** Ignition\
**Created:** [December 8, 2017, 6:30pm UTC](https://forum.inductiveautomation.com/t/referring-to-disabled-tags-in-an-expression-tag-in-the-same-udt/16265 "2017-12-08T18:30:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [December 8, 2017, 6:30pm UTC](https://forum.inductiveautomation.com/t/referring-to-disabled-tags-in-an-expression-tag-in-the-same-udt/16265/1 "2017-12-08T18:30:52Z")

</div>

I’m having an issue - I have an expression tag that counts on several other tags inside its instance of a UDT. The problem is, one or more of these may be disabled - in this case, the expression should read it as 0 but instead throws a “REFERENCE\_NOT\_FOUND” error. I’ve tried to wrap each reference in a try() function but no luck.

Any ways around this?

---

<div class="post-metadata">

**Author:** ![jordanv](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@jordanv](https://forum.inductiveautomation.com/u/jordanv)\
**Post date:** [December 9, 2017, 12:46am UTC](https://forum.inductiveautomation.com/t/referring-to-disabled-tags-in-an-expression-tag-in-the-same-udt/16265/2 "2017-12-09T00:46:53Z")

</div>

You can get around it by moving your expression logic to a script and then using the runScript expression function. For example [Disabled tag breaking Expression tag expression](http://forum.inductiveautomation.com/t/disabled-tag-breaking-expression-tag-expression/15092)
