System.tag.configure Error

Hi,

I have a maintenance script that essentially duplicates all UDT from a source provider to target providers to enable me to share a standard set of UDTs. This worked beautifully in 8.1 and somehow only works partially in 8.3.

The problem is that the system.tag.configure() method fails with this error on some UDTs:

sourcePath = '[default]_types_/SourceUDT'
basePath = '[default]_types_/TargetFolder'

typeConfig = system.tag.getConfiguration(sourcePath, True)
print system.tag.configure(basePath, typeConfig, "o")
>> [Error_Configuration("java.lang.ClassCastException")]

I don’t know how to investigate the cause further. Something, in only some of my UDTs, are causing this.

I have stripped all the recursive browsing etc from the script and found the error still occurs on just the tag.configure of the offending UDTs.

Any advice or is this a bug?

For what it is worth, EAM has no problem sending these UDTs around. Unfortunately it is a maintenance nightmare to send UDT to 10 gateways with 10 tag providers each.

I made progress using system.tag.copy(), but I still don’t know why system.tag.configure() failed.

Unfortunately system.tag.copy() seems to be creating duplicate UDT definitions even though the collision policy is set to overwrite (actually, regardless of any collision policy):

I would appreciate some guidance, else I’ll be setting up many EAM tasks.

Possibly related to this:

It is. I obviously did not search properly, apologies.

The behaviour of system.tag.copy still does not seem good

Looks like it should be fixed in 8.3.2 though I read the rest of the topic correctly.