# Addressing other tag providers

**URL:** <https://forum.inductiveautomation.com/t/addressing-other-tag-providers/10186>\
**Category:** General Discussion\
**Created:** [June 30, 2015, 10:32pm UTC](https://forum.inductiveautomation.com/t/addressing-other-tag-providers/10186 "2015-06-30T22:32:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtriplett](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dtriplett](https://forum.inductiveautomation.com/u/dtriplett)\
**Post date:** [June 30, 2015, 10:32pm UTC](https://forum.inductiveautomation.com/t/addressing-other-tag-providers/10186/1 "2015-06-30T22:32:12Z")

</div>

Using Ignition 7.7.4

I am in the process of trying to use the system.tag.addTag to create an UDT instance. I have created a different tag provider the the usual default. When I run the script I get an error on the following line:

system.tag.addTag(parentPath=“Sensors”, name= "Sensor " + name, tagType=“UDT\_INST”, attributes={“UDTParentType”:“Sensor”}, parameters={“SensorNum”:name})

The error reads:

Traceback (most recent call last):

File “event:actionPerformed”, line 23, in

com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: UDT [default]_types_/Sensor does not exist. Can not create instance.

```
caused by GatewayException: UDT [default]_types_/Sensor does not exist. Can not create instance.
caused by IllegalArgumentException: UDT [default]_types_/Sensor does not exist. Can not create instance.

```

Ignition v7.7.4 (b2015033012)  
Java: Oracle Corporation 1.8.0\_40

Sensor is an UDT and Sensors is the folder that I am trying to create the instance in

I have tried creating just a generic tag but, when created the tag shows up in the “default” tag provider NOT the provider I have chosen for this project so, I assume that means that I am somehow not targeting the chosen provider properly.

How do you change this?

---

<div class="post-metadata">

**Author:** ![Pat](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@Pat](https://forum.inductiveautomation.com/u/Pat)\
**Post date:** [July 1, 2015, 6:44pm UTC](https://forum.inductiveautomation.com/t/addressing-other-tag-providers/10186/2 "2015-07-01T18:44:33Z")

</div>

Your parentPath should be “[YourTagProvider]Sensors”. Also make sure that your Sensor UDT is in your tag provider.
