system.tag.addTag() and default tag provider

Ah. Thak you. That worked.
:slight_smile:

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

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]

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