# TagHistory and History Enabled storing duplicate values

**URL:** <https://forum.inductiveautomation.com/t/taghistory-and-history-enabled-storing-duplicate-values/76301>\
**Category:** Ignition\
**Created:** [July 13, 2023, 7:27am UTC](https://forum.inductiveautomation.com/t/taghistory-and-history-enabled-storing-duplicate-values/76301 "2023-07-13T07:27:15Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Learner\_Ignition](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@Learner\_Ignition](https://forum.inductiveautomation.com/u/Learner_Ignition)\
**Post date:** [July 13, 2023, 7:27am UTC](https://forum.inductiveautomation.com/t/taghistory-and-history-enabled-storing-duplicate-values/76301/1 "2023-07-13T07:27:15Z")

</div>

Hi,  
I am reading the data from restAPI and storing the data with timestamp which is coming from API with storeTagHistory.  
and when last data is recieved I write to the tag,  
As I write to the tag the value gets stored in database with current time.

But the last value I had already saved using storeTagHistory and I am having a duplicate values with current time.

I am trying to restrict the last value getting saved after writing it to the tag.  
As this tag have read and write option I cannot put large deadband and leave it.

---

_[View the full topic](https://forum.inductiveautomation.com/t/taghistory-and-history-enabled-storing-duplicate-values/76301)._
