# UDT import and export

**URL:** <https://forum.inductiveautomation.com/t/udt-import-and-export/7177>\
**Category:** Ignition\
**Created:** [September 2, 2013, 10:11pm UTC](https://forum.inductiveautomation.com/t/udt-import-and-export/7177 "2013-09-02T22:11:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bzink](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@bzink](https://forum.inductiveautomation.com/u/bzink)\
**Post date:** [September 2, 2013, 10:11pm UTC](https://forum.inductiveautomation.com/t/udt-import-and-export/7177/1 "2013-09-02T22:11:18Z")

</div>

Ignition 7.6.2

When a folder of UDT’s is exported, it does not import correctly. This is because when it is exported, Ignition doesn’t include the path for the folder. When it is imported it doesn’t put the folder in Data Types, it puts it in Tags. Below are examples that have the UDTs trimmed to one tag.

This creates a folder called Unit in the Tags folder. The UDT Unit\_Charts is created, but not shown because the folder doesn’t exist. This can be shown if there is an instance of that data type. If it exists, count\_T is shown in the instance.

```auto
<Tags>
   <Tag name="Unit" path="" type="Folder"/>
   <Tag name="Unit_Charts" path="Unit" type="UDT_DEF">
      <Property name="Value"/>
      <Property name="DataType">2</Property>
      <Tag name="count_T" path="" type="DB">
         <Property name="Value"/>
         <Property name="DataType">2</Property>
         <Property name="ExpressionType">1</Property>
         <Property name="Expression">{[.]/../../counts/LOG_DELTA}</Property>
      </Tag>
   </Tag>
</Tags>
```

The xml files can be edited to change the folder path to “_types_”. The folder is then created in the Data Types folder.

```auto
<Tags>
   <Tag name="Unit" path="_types_" type="Folder"/>
   <Tag name="Unit_Charts" path="Unit" type="UDT_DEF">
      <Property name="Value"/>
      <Property name="DataType">2</Property>
      <Tag name="count_T" path="" type="DB">
         <Property name="Value"/>
         <Property name="DataType">2</Property>
         <Property name="ExpressionType">1</Property>
         <Property name="Expression">{[.]/../../counts/LOG_DELTA}</Property>
      </Tag>
   </Tag>
</Tags>
```

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [September 5, 2013, 1:41am UTC](https://forum.inductiveautomation.com/t/udt-import-and-export/7177/2 "2013-09-05T01:41:59Z")

</div>

Hi,

Thanks. Yes, this appears to happen when you select one of the sub folders for export. If you export everything, it appears to be correct. It’s too late to fix this for 7.6.3, but it should be in 7.6.4.

Regards,

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [October 15, 2013, 10:37pm UTC](https://forum.inductiveautomation.com/t/udt-import-and-export/7177/3 "2013-10-15T22:37:55Z")

</div>

Just to confirm, this will in fact be fixed in the 7.6.4 release.

---

<div class="post-metadata">

**Author:** ![bzink](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@bzink](https://forum.inductiveautomation.com/u/bzink)\
**Post date:** [October 16, 2013, 7:42pm UTC](https://forum.inductiveautomation.com/t/udt-import-and-export/7177/4 "2013-10-16T19:42:56Z")

</div>

Thank you for confirming that it is fixed in the 7.6.4 release.
