# Edge Data Sync duplicating tag history?

**URL:** <https://forum.inductiveautomation.com/t/edge-data-sync-duplicating-tag-history/105896>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 5, 2025, 9:14pm UTC](https://forum.inductiveautomation.com/t/edge-data-sync-duplicating-tag-history/105896 "2025-05-05T21:14:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hhbauss](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@hhbauss](https://forum.inductiveautomation.com/u/hhbauss)\
**Post date:** [May 5, 2025, 9:14pm UTC](https://forum.inductiveautomation.com/t/edge-data-sync-duplicating-tag-history/105896/1 "2025-05-05T21:14:43Z")

</div>

I have 2 Edge IIOT gateways that are set up to collect tag history from various local devices at two separate locations. They then are set to sync data to a central gateway that has a trend screen and that is where it is connected to a MSSQL server. When I did an export on a tag over 8 days, it shows two exact entries for a tag (exact) every 5 seconds. I do not have another gateway running that is connected to the same SQL server, so there is no redundancy set up that might cause this issue.

What would cause this?

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [May 5, 2025, 9:19pm UTC](https://forum.inductiveautomation.com/t/edge-data-sync-duplicating-tag-history/105896/2 "2025-05-05T21:19:14Z")

</div>

Can you show how you have the tag history configured on the edge device?

---

<div class="post-metadata">

**Author:** ![Chris\_Bingham](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Chris\_Bingham](https://forum.inductiveautomation.com/u/Chris_Bingham)\
**Post date:** [May 6, 2025, 12:31pm UTC](https://forum.inductiveautomation.com/t/edge-data-sync-duplicating-tag-history/105896/3 "2025-05-06T12:31:30Z")

</div>

Can you share the method by which you exported the data? You might see duplicates if the query for data is configured to return two values for the same timestamp (min/max aggregation w/ point count matching the historian’s stored data count).

---

<div class="post-metadata">

**Author:** ![hhbauss](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@hhbauss](https://forum.inductiveautomation.com/u/hhbauss)\
**Post date:** [May 6, 2025, 1:10pm UTC](https://forum.inductiveautomation.com/t/edge-data-sync-duplicating-tag-history/105896/4 "2025-05-06T13:10:16Z")

</div>

I am just using the generic "Export" function of the Power Chart component in Perpsective.

---

<div class="post-metadata">

**Author:** ![hhbauss](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@hhbauss](https://forum.inductiveautomation.com/u/hhbauss)\
**Post date:** [May 6, 2025, 1:50pm UTC](https://forum.inductiveautomation.com/t/edge-data-sync-duplicating-tag-history/105896/5 "2025-05-06T13:50:10Z")

</div>

Here are a couple screen shots of the tag setup and the gateway. It looks to be setup correctly?

 ![Screenshot 2025-05-06 084427](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/d/1d780bc7d3f27a6283154803b42eff6af8417d1a.png)

 ![Screenshot 2025-05-06 084349](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/7/07923cd0c88104de445600853f355357f18899bb.png)

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [May 6, 2025, 2:26pm UTC](https://forum.inductiveautomation.com/t/edge-data-sync-duplicating-tag-history/105896/6 "2025-05-06T14:26:19Z")

</div>

How are you adding the tags to the power chart? What is the pens.aggregateMode for the pens on the power table?

---

<div class="post-metadata">

**Author:** ![hhbauss](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@hhbauss](https://forum.inductiveautomation.com/u/hhbauss)\
**Post date:** [May 6, 2025, 3:10pm UTC](https://forum.inductiveautomation.com/t/edge-data-sync-duplicating-tag-history/105896/7 "2025-05-06T15:10:05Z")

</div>

Forest/Trees. That was the issue. I did not have the Aggregate mode set to Last Value, it was set to MinMax. Hence, the dual values in the export. Thanks for pointing me to that.
