# Best Way to Do a Rolling Error Flagging in Ignition

**URL:** <https://forum.inductiveautomation.com/t/best-way-to-do-a-rolling-error-flagging-in-ignition/77816>\
**Category:** Ignition\
**Created:** [August 14, 2023, 4:16pm UTC](https://forum.inductiveautomation.com/t/best-way-to-do-a-rolling-error-flagging-in-ignition/77816 "2023-08-14T16:16:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_Alcide](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@Joseph\_Alcide](https://forum.inductiveautomation.com/u/Joseph_Alcide)\
**Post date:** [August 14, 2023, 4:16pm UTC](https://forum.inductiveautomation.com/t/best-way-to-do-a-rolling-error-flagging-in-ignition/77816/1 "2023-08-14T16:16:47Z")

</div>

Hello all,

I am currently developing an application that tracks errors currently by updating an error tag every time the value for the tracked parameter violates the limit within tag event scripting. I would like to do be able make it so that only the most recent four hours of errors are counted. What would be the best way to do this? Should I use a SQL Table, Transaction Groups, or is there a way I could do this within tags (Preferable Option if Possible). Thank You!

---

<div class="post-metadata">

**Author:** ![Joshua\_Benjamin](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@Joshua\_Benjamin](https://forum.inductiveautomation.com/u/Joshua_Benjamin)\
**Post date:** [August 28, 2023, 10:36pm UTC](https://forum.inductiveautomation.com/t/best-way-to-do-a-rolling-error-flagging-in-ignition/77816/2 "2023-08-28T22:36:37Z")

</div>

Hello Joseph,

To clarify, when you say "error" are you referring to an errored state of the tag, such as a "bad" quality. Or, a tag value that is outside predetermined bounds. From your initial description, it seems as if you are referring to a tag value, which can be handled by creating an alarm that is triggered from a high and low and low set points. If this is the case I would recommend having a look at configuring the alarm properties for the tag, there is a user documents page [here](https://docs.inductiveautomation.com/display/DOC81/Tag+Alarm+Properties).

If alarming is not what you had in mind, I would suggest creating a Transaction Group which you can either prune records older than 4 hours of configure your query to only select records within that timeframe. The user document page for the Transaction group and its configuration can be found [here](https://docs.inductiveautomation.com/display/DOC81/Understanding+Transaction+Groups#UnderstandingTransactionGroups-ActionSettings).

If neither of those two answers are tracking with what you are looking for, would you elaborate on how you are expecting these errors to be counted and displayed?
