# Transaction Group and Run Always Expression

**URL:** <https://forum.inductiveautomation.com/t/transaction-group-and-run-always-expression/20544>\
**Category:** Ignition\
**Created:** [November 5, 2018, 10:16pm UTC](https://forum.inductiveautomation.com/t/transaction-group-and-run-always-expression/20544 "2018-11-05T22:16:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Micky.Franks](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@Micky.Franks](https://forum.inductiveautomation.com/u/Micky.Franks)\
**Post date:** [November 5, 2018, 10:16pm UTC](https://forum.inductiveautomation.com/t/transaction-group-and-run-always-expression/20544/1 "2018-11-05T22:16:49Z")

</div>

This problem started today. I have a transaction group that is suppose to run every minute.

It has 3 items:  
Line#Counter = OPC to counter in PLC

Line#Previous = Run always script

> SELECT Line1Current  
> FROM LineRates  
> ORDER BY linerates\_ndx DESC LIMIT 1

Line#Count = Triggered Expression

> {[~]Line1Counter}-{[~]Line1Previous}

For some reason every other cycle it is not updating the previous count and the difference for one minute is actually 2 minutes.

Any ideas as to where to troubleshoot this?

.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/25cb27c355ec560eca6bbb4836cbf6529b3bcfa2.png)
