# Transaction group issue – Block group using previous / buffered data

**URL:** <https://forum.inductiveautomation.com/t/transaction-group-issue-block-group-using-previous-buffered-data/41019>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [November 27, 2020, 5:35pm UTC](https://forum.inductiveautomation.com/t/transaction-group-issue-block-group-using-previous-buffered-data/41019 "2020-11-27T17:35:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![LSimao](https://avatars.discourse-cdn.com/v4/letter/l/d2c977/32.png) [@LSimao](https://forum.inductiveautomation.com/u/LSimao)\
**Post date:** [November 27, 2020, 5:35pm UTC](https://forum.inductiveautomation.com/t/transaction-group-issue-block-group-using-previous-buffered-data/41019/1 "2020-11-27T17:35:27Z")

</div>

Greetings,

I have a block transaction group to retrieve recipes from DB to an OPC trigger based. I’ve set up the tags for the OPC and the array for the block (up to 24 tags per block) and to retrieve the recipes, I have a SQL view which gives the rows/data needed to be written in PLC.

Everything should work fine, and it in fact does. But when I change recipes after some time (don’t know exactly what makes the buffer from previous download go away) the transaction group write in the tags data from the previous recipe downloaded to PLC. In other words, I download a 8 step recipe to PLC, when I download the next one with only 5 steps, the steps #6 to #8 uses the data from the previous recipe.

I do reset all tags after a successful handshake and I confirm the tags are 0. When the group is triggered, I’m able to see the values being written, so it seems to me that the Ignition query against the view has some kind of cache/buffer, providing wrong information to the transaction group.

Have any of you any kind of similar issue? I’m running Ignition 7.9.9

Thanks in advance and best regards

---

<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:** [November 27, 2020, 6:19pm UTC](https://forum.inductiveautomation.com/t/transaction-group-issue-block-group-using-previous-buffered-data/41019/2 "2020-11-27T18:19:22Z")

</div>

This is a known issue:

> [@Writing Variable Number Of Rows to PLC Array](http://forum.inductiveautomation.com/t/writing-variable-number-of-rows-to-plc-array/32637):
>
> I am trying to use a block group to write a variable number of rows from a SQL database to my PLC array using the SQL Bridge Module. The problem is that if the results is less than the last query, then it will fill the array with the new data and entries from the old data. Is there a way to clear the block data after it writes to the PLC?

There doesn't seem to be a bug number in the post. You may want to contact support to see where this stands. (You will certainly have to upgrade Ignition for any fix, once available.) The workaround would be to replicate your transaction group functionality with a script.

---

<div class="post-metadata">

**Author:** ![LSimao](https://avatars.discourse-cdn.com/v4/letter/l/d2c977/32.png) [@LSimao](https://forum.inductiveautomation.com/u/LSimao)\
**Post date:** [November 27, 2020, 6:33pm UTC](https://forum.inductiveautomation.com/t/transaction-group-issue-block-group-using-previous-buffered-data/41019/3 "2020-11-27T18:33:17Z")

</div>

Thanks Phil, just opened a ticket.

I’ll try in the meantime to recreate your link’s proposed solution, but it seems a bit out of my league ☹

Best regards

---

<div class="post-metadata">

**Author:** ![gilles.levesque](https://avatars.discourse-cdn.com/v4/letter/g/919ad9/32.png) [@gilles.levesque](https://forum.inductiveautomation.com/u/gilles.levesque)\
**Post date:** [August 6, 2021, 2:00pm UTC](https://forum.inductiveautomation.com/t/transaction-group-issue-block-group-using-previous-buffered-data/41019/4 "2021-08-06T14:00:21Z")

</div>

I have the same problem, is this issue been resolved? We are using Ignition 7.9…

---

<div class="post-metadata">

**Author:** ![LSimao](https://avatars.discourse-cdn.com/v4/letter/l/d2c977/32.png) [@LSimao](https://forum.inductiveautomation.com/u/LSimao)\
**Post date:** [August 6, 2021, 3:51pm UTC](https://forum.inductiveautomation.com/t/transaction-group-issue-block-group-using-previous-buffered-data/41019/5 "2021-08-06T15:51:18Z")

</div>

Hey Gilles,

I opened a ticket and they informed that the fix was already available for 8.x. After some argumentation they agreed to backport it to 7.9 and I think it went live with 7.9.18 (changelog pic)

I still couldn’t try it myself, so if you are able, please let me know!

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/2/92a69fe85d436029066497014bc4669db8a92f09.png)

---

<div class="post-metadata">

**Author:** ![gilles.levesque](https://avatars.discourse-cdn.com/v4/letter/g/919ad9/32.png) [@gilles.levesque](https://forum.inductiveautomation.com/u/gilles.levesque)\
**Post date:** [August 6, 2021, 5:57pm UTC](https://forum.inductiveautomation.com/t/transaction-group-issue-block-group-using-previous-buffered-data/41019/6 "2021-08-06T17:57:25Z")

</div>

There is one thing I’ve tried that almost worked for me was to set the transaction as Bidirectional BD Win.

In my plc sequence, prior to trig the transaction, I fill my PLC table with -1 values, then, I trig the transaction to get the data from the table and it does clear the buffered data…

My problem is that I am getting Failed execution flag doing so. And since I am using the Transaction handshakes to progress in my sequence it didn’t work for me.

I am not sure why I am getting the Fail execution, probably that my PLC table don’t use all the Columns in the SQL table or something like that.

So you might give it a try.

---

<div class="post-metadata">

**Author:** ![LSimao](https://avatars.discourse-cdn.com/v4/letter/l/d2c977/32.png) [@LSimao](https://forum.inductiveautomation.com/u/LSimao)\
**Post date:** [August 9, 2021, 7:26am UTC](https://forum.inductiveautomation.com/t/transaction-group-issue-block-group-using-previous-buffered-data/41019/7 "2021-08-09T07:26:14Z")

</div>

My solution is similar as yours, but I fill all available lines with NULL instead of -1, and it’s working well for quite some time.

I do plan to update and try the ‘regular’ solution as soon as possible, but as this process is critical, i’m waiting for a proper window to avoid any surprises

---

<div class="post-metadata">

**Author:** ![gilles.levesque](https://avatars.discourse-cdn.com/v4/letter/g/919ad9/32.png) [@gilles.levesque](https://forum.inductiveautomation.com/u/gilles.levesque)\
**Post date:** [October 1, 2021, 1:03pm UTC](https://forum.inductiveautomation.com/t/transaction-group-issue-block-group-using-previous-buffered-data/41019/8 "2021-10-01T13:03:31Z")

</div>

I can confirm that this issue was resolved with updating from 7.9.9 to 8.1.9
