Transaction Group Import via system.groups.loadFromFile() Executes Successfully but No Transaction Groups Are Created

Hi,
I am facing an issue while importing Transaction Groups programmatically using the system.groups.loadFromFile() function.

Environment

  • Ignition Version: 8.3.6
  • Module: SQL Bridge / Transaction Groups
  • Execution Scope: Perspective Button onClick Event
  • Project Name: Test

Scenario

I exported an existing Transaction Group to an XML file and attempted to import it using the following script:

path = r"C:\Users\Z37322\Downloads\FH2TGXMLFile.xml"

result = system.groups.loadFromFile(path, "Test", 1)

system.perspective.print("Result = " + str(result))

Show more lines

Observations

  1. The XML file exists and is accessible.

import os

print(os.path.exists(path))

Output:

True

  1. The XML content can be read successfully.

f = open(path, "r")

print(f.read(500))

f.close()

Output shows valid Transaction Group XML beginning with:

  1. The script executes without any exception.

  2. The function returns:

Result = None

  1. No Transaction Groups are created or visible under:

Transaction Groups -> Test

  1. No related warnings or errors are observed in Gateway logs.

Troubleshooting Performed

  • Verified XML file accessibility.
  • Tested on local Gateway installation.
  • Verified Project Name exists.
  • Tested import modes 0, 1, and 2.
  • Refreshed Designer and reopened project.
  • Confirmed XML contains Transaction Group definitions.

Question

  • Is system.groups.loadFromFile() supported for importing Transaction Groups in Ignition 8.3.6?
  • Should the XML follow a specific format different from the exported Transaction Group XML?

Sample XML Structure

Please advise whether this API is expected to create Transaction Groups in Ignition 8.3.6 and if there are any additional requirements or limitations.

Thank you.

This should work. Can you contact support to report this issue formally?

Yeah Sure paul.
i will raise the ticket regarding this

Do you have the designer open when running? If so after pressing the button can you hit save to see if the group shows up? Or Closing the designer and reopening it?

Yes, I checked all the required steps. However, the transaction group was not created automatically.

I would reach out to support, they would be able to dive in deeper why this isnt working, I have tried this in 8.3.6 and 8.3.8 and Its working as expected for me, I have tried groups at root level and inside folders.

Hi Marcus,

The above issue has been sorted out.

However, I have one question. Is it possible to export a Transaction Group using a script in Ignition?Is there any script or system function available for this purpose?

I don't think so, just the shift -> right click -> legacy export method. Here's the feature request if you want to vote on it:

Currently there is no way to export the xml using scripting, Like @Bushmatic said it is a shift -> Right click in the designer. Also I would vote on the feature request this helps give visibility.