System.tag.configure with dataset tag

Hi,

I have a script that tries to get the configuration from a dataset memory tag with system.tag.getConfiguration(), then modify the configuration and then write the changes back to the tag with system.tag.configure().

However I get an [Error_Configuration] when trying to write the modified configuration back to the dataset tag.
I even get an [Error_Configuration] when trying to write an unmodified configuration back to the tag?

Is there some limitation with system.tag.getConfiguration()/system.tag.configure() when it comes to dataset tags?

Thanks

I dont know of any limitations.
https://docs.inductiveautomation.com/display/DOC81/system.tag.configure

Have you tried running it in the script console? might help you debug it. Show us the full error message and code?

I am running it in the script console. You can easily make the same test.

c1 = system.tag.getConfiguration('[Provider]Folder/Tag')
print system.tag.configure('[Provider]Folder/',c1,'o')

The output console just says ‘[Error_Configuration]’?

If I do the same test with a tag that isn’t a dataset tag the operation succeeds with ‘[Good]’ in the output console.

Hm that works for me tho, are you sure the path’s to the tags are correct?

Ah it seems if there is data in the dataset i get the error too let me check
yeah so running

c1 = system.tag.getConfiguration('[default]Project/New Folder/Dataset', True)
del c1[0]['value']
print system.tag.configure('[default]Project/New Folder/',c1,'o')

works but then you lose the dataset so you will have to add it back after i guess… weird

c1 = system.tag.getConfiguration('[default]Project/New Folder/Dataset', True)
print (c1[0]['value'])
value = c1[0]['value']
del c1[0]['value']
print system.tag.configure('[default]Project/New Folder/',c1,'o')
system.tag.write('[default]Project/New Folder/Dataset',value)