When I run automated unit tests, I copy UDTs from the default
tag provider to a tag provider called test1
during setup. This worked fine with 8.1 but I’m getting duplicate tags with 8.3. I reduced the issue down to a simple example. I think it has to do with inheritance.
The following is an example UDT structure in the default tag provider. SubUdt
inherits from Udt
.
When I copy from tag provider default
to tag provider test1
with command
system.tag.copy(["[default]_types_/Test"], "[test1]_types_/", collisionPolicy='o')
I get duplicate tags in the inherited UDT. The test1
tag provider was empty before I ran the copy function.
Here is a tag export JSON for this example:
{
"name": "Test",
"tagType": "Folder",
"tags": [
{
"name": "SubFolder",
"tagType": "Folder",
"tags": [
{
"name": "SubUdt",
"typeId": "Test/Udt",
"tagType": "UdtType",
"tags": [
{
"name": "Integer",
"tagType": "AtomicTag"
}
]
}
]
},
{
"name": "Udt",
"tagType": "UdtType",
"tags": [
{
"valueSource": "memory",
"name": "Integer",
"value": 5,
"tagType": "AtomicTag"
}
]
}
]
}