# system.tag.addTag() and default tag provider

**URL:** <https://forum.inductiveautomation.com/t/system-tag-addtag-and-default-tag-provider/9760>\
**Category:** Ignition\
**Created:** [March 2, 2015, 3:09pm UTC](https://forum.inductiveautomation.com/t/system-tag-addtag-and-default-tag-provider/9760 "2015-03-02T15:09:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![low\_key](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@low\_key](https://forum.inductiveautomation.com/u/low_key)\
**Post date:** [March 2, 2015, 3:09pm UTC](https://forum.inductiveautomation.com/t/system-tag-addtag-and-default-tag-provider/9760/1 "2015-03-02T15:09:13Z")

</div>

Ah. Thak you. That worked.  
🙂

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [March 2, 2015, 3:42pm UTC](https://forum.inductiveautomation.com/t/system-tag-addtag-and-default-tag-provider/9760/2 "2015-03-02T15:42:11Z")

</div>

you can specify the provider in the parent path. [myprovider]. If you leave this off it defaults to the default provider.

---

<div class="post-metadata">

**Author:** ![low\_key](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@low\_key](https://forum.inductiveautomation.com/u/low_key)\
**Post date:** [March 2, 2015, 4:08pm UTC](https://forum.inductiveautomation.com/t/system-tag-addtag-and-default-tag-provider/9760/3 "2015-03-02T16:08:11Z")

</div>

The tag provider that I’m using is called “Test” and the OPC device is called “My\_test”.  
I’ve tried both of the following items for the OPCItemPath

[Test]1.D1000  
[My\_test]1.D1000

It seems no matter what I put in there I get the following error:

[code]Traceback (most recent call last):  
File “event:actionPerformed”, line 1, in   
File “module:shared.tagRename”, line 41, in myMain  
File “module:shared.tagRename”, line 31, in buildTags

com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: Tag provider ‘default’ not found.  
caused by GatewayException: Tag provider ‘default’ not found.  
caused by IllegalArgumentException: Tag provider ‘default’ not found.

Ignition v7.7.1 (b2014092209)  
Java: Oracle Corporation 1.8.0\_31  
[/code]

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [March 2, 2015, 4:10pm UTC](https://forum.inductiveautomation.com/t/system-tag-addtag-and-default-tag-provider/9760/4 "2015-03-02T16:10:40Z")

</div>

you wouldnt use the tagprovider in the opc path, only the parent path.
