# \[IGN-8872\]Import transaction group from XML

**URL:** <https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464>\
**Category:** Ignition\
**Created:** [January 28, 2022, 1:41am UTC](https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464 "2022-01-28T01:41:32Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rea\_Berberi](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@Rea\_Berberi](https://forum.inductiveautomation.com/u/Rea_Berberi)\
**Post date:** [January 28, 2022, 1:41am UTC](https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464/1 "2022-01-28T01:41:32Z")

</div>

Is there a way to import an XML file from local env with transaction group configuration through scripting?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 28, 2022, 2:24am UTC](https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464/2 "2022-01-28T02:24:16Z")

</div>

[Yes](https://docs.inductiveautomation.com/display/DOC81/system.groups). As long as you are sure the named group doesn’t exist. There’s no enumeration of existing transaction groups. ):

---

<div class="post-metadata">

**Author:** ![tupanaster](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tupanaster](https://forum.inductiveautomation.com/u/tupanaster)\
**Post date:** [May 9, 2022, 9:02pm UTC](https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464/3 "2022-05-09T21:02:33Z")

</div>

I see `system.groups.loadFromFile` and `system.groups.removeGroups` but I don’t understand how to build an XML to import that configuration into Transaction Groups.

Exporting TG configuration gives me a .zip file with some .json files which don’t have the configuration I need. What I am missing?

---

<div class="post-metadata">

**Author:** ![Paullys50](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paullys50/32/3324_2.png) [@Paullys50](https://forum.inductiveautomation.com/u/Paullys50)\
**Post date:** [May 9, 2022, 9:15pm UTC](https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464/4 "2022-05-09T21:15:15Z")

</div>

You can export to XML. Right click the TG you want to use as a template, then ‘Export’. NOTE: There are 2 export options in the menu, use the bottom one to export XML (8.1.7) on my test VM.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 9, 2022, 9:47pm UTC](https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464/5 "2022-05-09T21:47:01Z")

</div>

You must hold down Shift and right click in the newest versions.

---

<div class="post-metadata">

**Author:** ![tupanaster](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tupanaster](https://forum.inductiveautomation.com/u/tupanaster)\
**Post date:** [May 10, 2022, 6:30am UTC](https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464/6 "2022-05-10T06:30:36Z")

</div>

> [@Paullys50](#):
>
> (8.1.7) on my test VM

How do you have 8.1.7? I'm using one of Ignition's latest version that can be downloaded from the website:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/0/d0bc201de7c70fc10b45a857614c1b0fb6f7dc10.png)  
I will download 8.1.16 today.

Some screenshots:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/d/0d3c5ec89047ca494be984aa4cc726193bc9fbd8.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/5/8591ebe23bd99bc82e0150735e54339b4a5d9909.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/4/f4c4c3fcee6aa4b7bf6a4631436b0497f1520359.png)

I'm still not able to find that option.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 10, 2022, 7:01am UTC](https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464/7 "2022-05-10T07:01:04Z")

</div>

> [@tupanaster](#):
>
> I’m still not able to find that option.

Don't open the export dialog. Shift-right-click on the transaction group in the designer tree.

---

<div class="post-metadata">

**Author:** ![tupanaster](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tupanaster](https://forum.inductiveautomation.com/u/tupanaster)\
**Post date:** [May 10, 2022, 8:11am UTC](https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464/8 "2022-05-10T08:11:07Z")

</div>

I missed it so many times that I was going to post a crying face.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/7/077b21191f98b16922f3c5818b91a34d4492b430.png)

Since it’s called Legacy Export, are there plans to remove it? Is there a better way?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 10, 2022, 8:22am UTC](https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464/9 "2022-05-10T08:22:08Z")

</div>

I’m hoping the storage format switches to XML directly, similar to what was done with named queries.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 10, 2022, 6:13pm UTC](https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464/10 "2022-05-10T18:13:59Z")

</div>

> [@tupanaster](#):
>
> Since it’s called Legacy Export, are there plans to remove it?

No plans to remove it, we just generally wanted to discourage people from getting confused between resource-specific export formats and the more general project import/export mechanisms.

---

<div class="post-metadata">

**Author:** ![ShaneH](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@ShaneH](https://forum.inductiveautomation.com/u/ShaneH)\
**Post date:** [February 5, 2025, 3:14pm UTC](https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464/11 "2025-02-05T15:14:38Z")

</div>

This only seems to work if I select a SINGLE trx group or folder ... not if I select top level "Transaction Groups".

The "Legacy Export-\>to XML" appears and prompts me for a file, but nothing is created.

Is this intentional? Is there a way to export all transaction groups to XML?  
Thanks.  
-Shane

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 5, 2025, 4:15pm UTC](https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464/12 "2025-02-05T16:15:21Z")

</div>

> [@ShaneH](#):
>
> Is this intentional?

Not exactly, but no one has ever made it work for folders/the top level, and we have no plans to do so.

> [@ShaneH](#):
>
> Is there a way to export all transaction groups to XML?

Not currently, though theoretically you could script something in the designer console that does it. I wouldn't really want to go down that road, though.

What are you trying to do with these XML imports, exactly?

In some future release, we're planning to migrate the storage format for transaction groups to that XML representation directly - then you would be able to manipulate them on the filesystem like most other project resources, as well as import/export them more easily using the standard mechanisms in the designer.

The internal ticket for that effort is IGN-8872; I've added this thread to our list tracking customer demand for the rework.

---

<div class="post-metadata">

**Author:** ![ShaneH](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@ShaneH](https://forum.inductiveautomation.com/u/ShaneH)\
**Post date:** [February 5, 2025, 4:59pm UTC](https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464/13 "2025-02-05T16:59:27Z")

</div>

I'm facing an issue with a client who has 1000+ trx groups.  
I'm trying to export everything to XML so I can scrape the data for which tags, databases, tables, columns, indexes are being used.

-Shane

---

<div class="post-metadata">

**Author:** ![ShaneH](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@ShaneH](https://forum.inductiveautomation.com/u/ShaneH)\
**Post date:** [February 6, 2025, 3:23pm UTC](https://forum.inductiveautomation.com/t/ign-8872-import-transaction-group-from-xml/55464/14 "2025-02-06T15:23:06Z")

</div>

So, I tried highlighting all the folders and legacy exporting that way, and it worked. So that's good enough.

Thanks.
