# system.groups.loadFromFile file questions

**URL:** <https://forum.inductiveautomation.com/t/system-groups-loadfromfile-file-questions/97427>\
**Category:** Ignition\
**Created:** [October 17, 2024, 9:12pm UTC](https://forum.inductiveautomation.com/t/system-groups-loadfromfile-file-questions/97427 "2024-10-17T21:12:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [October 17, 2024, 9:12pm UTC](https://forum.inductiveautomation.com/t/system-groups-loadfromfile-file-questions/97427/1 "2024-10-17T21:12:19Z")

</div>

I'm trying to dynamically load my transaction groups, but I don't want to load them from a file. I have a text string that's the guts of an xml I want to load.

When i try to run the system.groups.loadFromFile it throws an error that its not a valid file, which its not. I tried reading it as bytes, saving it as a file (without writing it to disk.), etc...

Has anyone else successfully implemented this or have any pointers on how to use the text as a file for the function? thanks

---

<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:** [October 17, 2024, 9:14pm UTC](https://forum.inductiveautomation.com/t/system-groups-loadfromfile-file-questions/97427/2 "2024-10-17T21:14:20Z")

</div>

Write it to a temporary file and then give the function the file path like it expects.

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [October 18, 2024, 8:56pm UTC](https://forum.inductiveautomation.com/t/system-groups-loadfromfile-file-questions/97427/3 "2024-10-18T20:56:31Z")

</div>

thanks, I'll do that

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [October 18, 2024, 8:59pm UTC](https://forum.inductiveautomation.com/t/system-groups-loadfromfile-file-questions/97427/4 "2024-10-18T20:59:56Z")

</div>

one more question, does it have to be a file path or can I use the fileUpload in perspective to import the xml file? I'm having some issues with that too. Thanks!

---

<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:** [October 18, 2024, 9:00pm UTC](https://forum.inductiveautomation.com/t/system-groups-loadfromfile-file-questions/97427/5 "2024-10-18T21:00:54Z")

</div>

The function expects a file path.

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [October 22, 2024, 7:19pm UTC](https://forum.inductiveautomation.com/t/system-groups-loadfromfile-file-questions/97427/6 "2024-10-22T19:19:14Z")

</div>

will do!
