# TagHistory on set schedule

**URL:** <https://forum.inductiveautomation.com/t/taghistory-on-set-schedule/106148>\
**Category:** Ignition\
**Created:** [May 12, 2025, 3:51pm UTC](https://forum.inductiveautomation.com/t/taghistory-on-set-schedule/106148 "2025-05-12T15:51:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Kaufmann](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@Mark\_Kaufmann](https://forum.inductiveautomation.com/u/Mark_Kaufmann)\
**Post date:** [May 12, 2025, 3:51pm UTC](https://forum.inductiveautomation.com/t/taghistory-on-set-schedule/106148/1 "2025-05-12T15:51:38Z")

</div>

All,

I am trying to setup tag history so that it will post a value to the historian every hour on the top of the hour. I am running into an issue where it is not consistent. My current setup is as follows.

I created a tag group with Mode set to Driven and Rate (ms) set to 10,000. Leased/Driven Rate (ms) set to 250. Driving Expression set to:  
dateExtract(now(), "minute") = 0 && dateExtract(now(), "second") \< 30

Comparison Value set to 1.0 and One-Shot set to True.

As mentioned it will run fine and then skip an entry and then run fine again.

Any suggestions on how to correct this so it will always enter a value on the top of the hour?

Thanks  
Mark

---

<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:** [May 12, 2025, 3:55pm UTC](https://forum.inductiveautomation.com/t/taghistory-on-set-schedule/106148/2 "2025-05-12T15:55:52Z")

</div>

The tag historian isn't set up to do this (reliably). This is a job for a transaction group with a schedule. Or a gateway scheduled event script. (Storing into a custom DB table, not the historian.)

---

<div class="post-metadata">

**Author:** ![Mark\_Kaufmann](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@Mark\_Kaufmann](https://forum.inductiveautomation.com/u/Mark_Kaufmann)\
**Post date:** [May 12, 2025, 4:18pm UTC](https://forum.inductiveautomation.com/t/taghistory-on-set-schedule/106148/3 "2025-05-12T16:18:01Z")

</div>

Ok I was thinking that too. I was going to try that next anyway but thanks for the quick response.
