Ignition Transaction Group Firing More than Once

I have a transaction group that will track the total gallons used when a counter tag counts up. I seen some anomalies in my data so I looked at the database and I have values that are doubling up. Do i have something setup wrong in my Transaction Group to allow the data to be loaded when the tag values has not changed?

As you can see the Ignition Tag is remaining the same but the data is getting tracked to SQL

My settings

The quality is probably changing.

1 Like

Can I set it up so it only triggers on the value change?

Uncheck Only evaluate when values have changed,
Choose Execute this group on a trigger,
Select the tag you want to monitor,
Choose Active on value change for the Trigger conditions.

I am wondering if creating a named query and just putting all this on a Gateway Tag Change Script would be better. I can chose what it triggers on, plus I discovered when I make a change to my Transaction Group and save it, it writes one line to SQL doubling up my data. I can use the if not initialChange to prevent that.

Transaction Groups have an option "prevent trigger caused by group start" that should do the same thing as if not initialChange.

The scripting option should work just as well, so it is really up to you.

1 Like

Thanks, I did not know that. I am fairly new to Transaction Groups and I like how powerful they are, I just have an easier time wrapping my head around the scripting route.

I need to put some time into understanding Transaction Groups a little better.

Where is this? I cannot find it.

Trigger options, upper right when in transactions window of designer.

1 Like

Should be on the right hand side in the trigger tab. One of the options below the selection of the trigger tag.

https://docs.inductiveautomation.com/docs/8.1/ignition-modules/sql-bridge-transaction-groups/understanding-transaction-groups#trigger-settings

1 Like

Not related to the subject, but I want to confirm my understanding:

The execution time interval dictates the fastest logging rate to the database.

When a Tag changes, two times, within this time will not be log (the first tag change).

More precisely, it is how often the trigger condition is checked. If the trigger changes twice in an interval, it will typically be the second event that gets logged.

And this is independent of the polling pace of any Ignition tag items within the group, so tags on a slower pace can be stale.

Any transaction group items that are direct OPC items (not Ignition tags), will be subscribed at the execution pace.

If the group is set to OPC Read mode, a trigger that is a direct OPC item will be subscribed, but all other direct OPC items will not--they'll be read explicitly after the trigger.