# \[BUG?\] UDT Instance path parameters don't include tag provider

**URL:** <https://forum.inductiveautomation.com/t/bug-udt-instance-path-parameters-dont-include-tag-provider/66621>\
**Category:** Ignition\
**Created:** [November 17, 2022, 5:01am UTC](https://forum.inductiveautomation.com/t/bug-udt-instance-path-parameters-dont-include-tag-provider/66621 "2022-11-17T05:01:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 17, 2022, 5:01am UTC](https://forum.inductiveautomation.com/t/bug-udt-instance-path-parameters-dont-include-tag-provider/66621/1 "2022-11-17T05:01:46Z")

</div>

v8.1.18

The UDT Instance parameters `{PathToParentFolder}` and `{PathToTag}` don't include the tag provider which to me is critical if you have multiple tag providers with similar tag structures.

Long story short, I'm querying active alarms and shoving them in a dict inside a script library variable in the Gateway Scripting Project, then I filter this dict in UDT instance tags added to various folders, relying on {PathToParentFolder} passed in as the filter, and count the number of items to return the active alarm count within the folder the UDT instance is in. However, because this parameter doesn't include the tag provider, I have no way to filter the alarms by the right tag provider, so I'm getting alarms counted from other tag providers from the same tag folder... I _really_ don't want to have to pass in a parameter into the UDT instance with a manually typed tag path to the folder it's in... It's supposed to be a simple "add UDT Instance. DONE"

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [November 17, 2022, 6:32am UTC](https://forum.inductiveautomation.com/t/bug-udt-instance-path-parameters-dont-include-tag-provider/66621/2 "2022-11-17T06:32:34Z")

</div>

This seems to be a long-standing issue with some awkward workarounds.

> [@Get tag provider with {PathToParentFolder} in expression](https://forum.inductiveautomation.com/t/get-tag-provider-with-pathtoparentfolder-in-expression/26869):
>
> Is there anyway to dynamically get the tag provider in a UDT expression tag? I’m doing a runScript() and passing a tag path, but since expressions are gateway scoped, I have to add the tag provider. Is there anyway to do it dynamically? Seems weird it’s not there considering the options of having remote tag gateways.
