[BUG-13984] Xml import in Ignition 8, parameter path to create folder

in Ignition 7.9 in udt and tags xml files, we could use path=“types/myFolder”
in the balise :

Tag name="%s" path=“types/myFolder” type="UdtType"

In ignition 8.0, path in tag balise seems to be ignored :

Tag name=“typeAvecPath2” path=“types/monDossier” type="UdtType"

is it intentional or a bug ?

It definitely should not be ignoring the path. Exactly what is happening in your case after xml import?

@mgross
I’ve tried an absolute path with path = _types_/myFolder
I select in the tag browser : Tags/Data Types and imports tags and the override option.

I’ve tried with creating or not the folder before the import.
In both case the udt is created in the root of Data Types folder and ignore the path mentioned.

<Tags MinVersion="8.0.0">
   <Tag name="typeAvecPath2" path="_types_/myFolder" type="UdtType">
      <Property name="typeId"></Property>
      <Property name="tagGroup">mesd01</Property>
      <Parameters>
         <Property name="New Parameter" type="String">test</Property>
      </Parameters>
      <Tags MinVersion="8.0.0">
         <Tag name="memoryText" type="AtomicTag">
            <Property name="valueSource">memory</Property>
            <Property name="dataType">10</Property>
            <Property name="formatString">#,##0.##</Property>
         </Tag>
      </Tags>
   </Tag>
</Tags>

Was this tag export taken from an 8.0.0 beta release by chance? The 8.0 xml export code was refactored before 8.0 release to no longer use paths. 7.x tag xml exports do use paths, and they should be able to import without issues. I did find that even if you set up the udt properly in the designer, then export to xml, then delete and import again, you get a “Tag Exists” error that should not occur. I have filed a ticket to fix that.

I generate xml tags/udts file for import in 7.9 and I had found convenient not having to create folders…
So I tried to generated some xml file for Ignition 8.0. I manually added path for test.

As this is no supported in the new xml format, I will suppress the path and add explicitly the folders in the xml file I will generate for 8.0.

Just another question,
Is it mandatory to group all udt to create inside a folder :

Folder A
udt A
udt B
udt C
Folder D
udt D

or can we do as well :

Folder A
udt A
Folder A
udt B
Folder A
udt C
Folder D
udt D

No, you do not have to have group UDTs inside a folder. Your latter example should work.

1 Like

This issue was fixed in the 8.0.4 Nightly build that was uploaded today (7/26).