Store and Forward Quarantined item- Duplicate Primary Key Error in Tag Historian

We are facing intermittent primary key violation error in ignition Tag Historian while storing data to SQL server.

Error observed: violation of primary key constraint cannot insert duplicate key.

Forword setting:

write size:25

write time:1sec

disk cache: Enabled

observed behaviour-

data already present in database with tagid and timestamp. however, store and Forword retries the same records again.

one more thing if batch size/write size 25 and if any records in batch fail will entire batch is retired or pending record only retired?

Appreciated any help.

Im working with ignition support on the exact same issue. What SQL server are you using ?

Hi, I am using Microsoft sql server 2016 SP1 (13.0), Express Edition.

Which version of Ignition is this happening in and is it only a specific type of tag?
In 8.3, we have a known issue where memory tags on startup are getting a duplicate history record processed because we are persisting the timestamp when it last changed after a restart now.

version is 8.1.26 and it’s not for specific tag random tag every time and tags are OPC tags.

I would recommend reaching out to to support regarding the issue you are seeing. In looking at what has been fixed since the release you are currently using, there is 1 bug that could be related:

Fixed in 8.1.27: Fixed issue where duplicate timestamps would be created when OPC quality changes.