system.groups.loadFromFile & State received for unregistered node

I am using system.groups.loadFromFile to load transaction groups, i have to run it three times for the groups to load successfully.

When i run the function, i get the following error:

14:48:58.055 [AWT-EventQueue-0] INFO RootTreeNode -- State received for unregistered node ProjectResourceId{resourcePath=com.inductiveautomation.sqlbridge/transaction-groups/MyFolder/Machine/details, projectName=MyProject}

This is also in the logs:
Setting LastModification to "external" on MyFolder/Machine/details [com.inductiveautomation.sqlbridge/transaction-groups]

The funny thing is, if I run it a second time, it works. I searched the forum and didnt see anything, can anyone help with whats going on? Thanks!

@pturmel Any suggestions?

No need to tag me. I read everything here, but didn't have any insight into this question.

I don't programmatically create transaction groups anywhere. The utility of TGs, IMO, is that they are drag and drop programmable. If I'm going to write code that is TG-related, it will simply be the scripted equivalent of a TG in a tag change event, a timer event, or a scheduled event.

I have a ton of widgets, all with the same transaction groups. Its easier for me to script out the xml and import 50 than to drag and drop them. I'll post an update after my call with support. Thanks

See, that's exactly the kind of TG that I always turn into a script.

I agree, if I was supporting it I would script everything.

I think you're just running into an error in the SQL Bridge module's code to interact with the general designer project browse tree. I wouldn't expect it to cause any actual ill effects besides cosmetic weirdness, and if you're not noticing any of that I'd say you're safe to ignore it - although I would appreciate if you could email your exact reproduction setup in to support so that eventually I can fix it.

Thanks, I'm calling support now.

1 Like

Just a followup. The groups were being inserted, they showed in the back end, they just didn't show up in the GUI.

Support confirmed it was a bug and will be added to the list. In the mean time, if you save and refresh a few times the transaction groups will show up.

1 Like