# Getting DefaultTagProvider on UDT Expression tag

**URL:** <https://forum.inductiveautomation.com/t/getting-defaulttagprovider-on-udt-expression-tag/62334>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [July 27, 2022, 7:33am UTC](https://forum.inductiveautomation.com/t/getting-defaulttagprovider-on-udt-expression-tag/62334 "2022-07-27T07:33:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kai-ling\_zeng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kai-ling_zeng/32/37151_2.png) [@kai-ling\_zeng](https://forum.inductiveautomation.com/u/kai-ling_zeng)\
**Post date:** [July 27, 2022, 7:33am UTC](https://forum.inductiveautomation.com/t/getting-defaulttagprovider-on-udt-expression-tag/62334/1 "2022-07-27T07:33:25Z")

</div>

When I try to edit UDT Tag, I want to get system [DefaultTagProvider] and [DefaultDatabase] value on another TagProvider’s UDT Experssion Tag, but I always get error, please kindly to help me solve it.

situation 1:  
Expression : {[System]Client/System/DefaultTagProvider.Value}  
result 1:  
Bad\_NotFound(“Path ‘[System]Client/System/DefaultTagProvider.value’ not found.”)

situation 2:  
Expression : {[System]Client/System/DefaultTagProvider}  
result 2:  
Bad\_NotFound(“Path ‘[System]Client/System/DefaultTagProvider’ not found.”)

situation 3:  
Expression : tag(“[System]Client/System/DefaultTagProvider”).Value  
result 3:  
Error\_Configuration

situation 3:  
Expression : tag(“[System]Client/System/DefaultTagProvider”).Value  
result 3:  
Error\_Configuration

situation 4:  
Expression : tag(“[System]Client/System/DefaultTagProvider”)  
result 4:  
Bad\_NotFound

situation 5:  
Expression : {[~]}  
result 5:  
BrowseValue [value=[null, Bad\_Unsupported, Wed Jul 27 13:24:25 CST 2022 (1658899465262)], info=null, configVersion=0]

situation 6:  
Expression : [~]  
result 6:  
Error\_Configuration

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 27, 2022, 11:24am UTC](https://forum.inductiveautomation.com/t/getting-defaulttagprovider-on-udt-expression-tag/62334/2 "2022-07-27T11:24:33Z")

</div>

Those tags only exist in a Vision client, where they reflect the settings of the project the Vision client is running. The gateway doesn’t have those tags–gateway tags exist _ **outside of** _ any project. Gateway tags do not have a default provider (they exist **in** a provider, though, so can use `[~]`) and do not have a default database.

---

<div class="post-metadata">

**Author:** ![kai-ling\_zeng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kai-ling_zeng/32/37151_2.png) [@kai-ling\_zeng](https://forum.inductiveautomation.com/u/kai-ling_zeng)\
**Post date:** [July 28, 2022, 7:25am UTC](https://forum.inductiveautomation.com/t/getting-defaulttagprovider-on-udt-expression-tag/62334/3 "2022-07-28T07:25:01Z")

</div>

Thank you for reply

I need to get the TagProvider name on OPC Item Path and Query Expression. Right now I need to manually assign the TagProvider name as a UDT parameter.

 ![Screenshot 2022-07-28 151737](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/5/f5c1c3364df4d1245eb928d789d635426370884a.png)  
 ![Screenshot 2022-07-28 151843](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/7/b72cbc373a81f5ff92f6e1129908289b29232911.png)
