# Import UDT loadFromFile

**URL:** <https://forum.inductiveautomation.com/t/import-udt-loadfromfile/35804>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [June 18, 2020, 7:16pm UTC](https://forum.inductiveautomation.com/t/import-udt-loadfromfile/35804 "2020-06-18T19:16:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LandrethEdward](https://avatars.discourse-cdn.com/v4/letter/l/7bcc69/32.png) [@LandrethEdward](https://forum.inductiveautomation.com/u/LandrethEdward)\
**Post date:** [June 18, 2020, 7:16pm UTC](https://forum.inductiveautomation.com/t/import-udt-loadfromfile/35804/1 "2020-06-18T19:16:35Z")

</div>

Hello, I have a project that utilizes a UDT so on project startup I have a script checking and trying to import the UDT Data Type if the gateway doesn’t already have it. I was able to get this to succeed with the syntax below for a filepath on a shared drive, but when I try to use a webpage filepath from our sharepoint it fails.

We have another project that was developed a while ago and used this sharepoint location so multiple sites from our company could reach it so I am attempting to do the same. When I paste the path into my webbrowser it downloads the xml so I believe the path is correct. Appreciate any help with running a script on sharepoint filepath vs a shared drive one!

syntax:

filePath = r’[https://filepathwebpage/UDT.xml](https://filepathwebpage/UDT.xml)’  
system.tag.loadFromFile(filePath, “default”, 0)
