# Exporting UDT on Linux Error

**URL:** <https://forum.inductiveautomation.com/t/exporting-udt-on-linux-error/115148>\
**Category:** Ignition\
**Created:** [April 17, 2026, 9:19pm UTC](https://forum.inductiveautomation.com/t/exporting-udt-on-linux-error/115148 "2026-04-17T21:19:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paulo\_Custodio](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paulo_custodio/32/56599_2.png) [@Paulo\_Custodio](https://forum.inductiveautomation.com/u/Paulo_Custodio)\
**Post date:** [April 17, 2026, 9:19pm UTC](https://forum.inductiveautomation.com/t/exporting-udt-on-linux-error/115148/1 "2026-04-17T21:19:27Z")

</div>

I'm trying to export a udt on a Linux system and keeps flagging that it cannot create the file, although the file already exists.

Here's the script I'm using:

# Use double forward slashes for the root on Linux

`filePath = "/home/user/udts/test.json"`  
`tagPaths = ["[default]_types_/PlantInfo/Plant_Info"]`

`system.tag.exportTags(`  
` filePath = filePath,`  
` tagPaths = tagPaths`  
`)`

And the error I'm getting:

`java.io.IOException: java.io.IOException: Cannot create directory '\home\user\udts'`

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 17, 2026, 9:22pm UTC](https://forum.inductiveautomation.com/t/exporting-udt-on-linux-error/115148/2 "2026-04-17T21:22:51Z")

</div>

Where are you running this code? Which system is the Linux system, yours or the one running the Gateway?

---

<div class="post-metadata">

**Author:** ![Paulo\_Custodio](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paulo_custodio/32/56599_2.png) [@Paulo\_Custodio](https://forum.inductiveautomation.com/u/Paulo_Custodio)\
**Post date:** [April 18, 2026, 2:54am UTC](https://forum.inductiveautomation.com/t/exporting-udt-on-linux-error/115148/3 "2026-04-18T02:54:59Z")

</div>

I'm running this code on the console, and the gateway OS is Linux

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 18, 2026, 3:06am UTC](https://forum.inductiveautomation.com/t/exporting-udt-on-linux-error/115148/4 "2026-04-18T03:06:46Z")

</div>

The script console executes code on whatever computer is running the Designer, not on the Gateway, so unless you're also running on Linux that path is not valid.

---

<div class="post-metadata">

**Author:** ![Paulo\_Custodio](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paulo_custodio/32/56599_2.png) [@Paulo\_Custodio](https://forum.inductiveautomation.com/u/Paulo_Custodio)\
**Post date:** [April 18, 2026, 3:09am UTC](https://forum.inductiveautomation.com/t/exporting-udt-on-linux-error/115148/5 "2026-04-18T03:09:12Z")

</div>

Got it! I'll put it to run on the gateway on Monday, and see how that goes. Thank you for your fast response Kevin!
