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

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?

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