# This data sink does not accept data of the given type - Historian store and forward quarantine

**URL:** <https://forum.inductiveautomation.com/t/this-data-sink-does-not-accept-data-of-the-given-type-historian-store-and-forward-quarantine/29169>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [October 17, 2019, 4:36pm UTC](https://forum.inductiveautomation.com/t/this-data-sink-does-not-accept-data-of-the-given-type-historian-store-and-forward-quarantine/29169 "2019-10-17T16:36:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jburt](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jburt](https://forum.inductiveautomation.com/u/jburt)\
**Post date:** [October 17, 2019, 4:36pm UTC](https://forum.inductiveautomation.com/t/this-data-sink-does-not-accept-data-of-the-given-type-historian-store-and-forward-quarantine/29169/1 "2019-10-17T16:36:53Z")

</div>

I’m using a tag-splitter for the historian, to log to two separate SQL databases/servers (History1, History2)

There are a number of quarantined entries on both the History1 and History2 servers.  
‘This data sink does not accept data of the given type.’ is in the ‘Reason’ field.

Selecting ‘Retry’ gives these messages for History1/2  
Violation of PRIMARY KEY constraint ‘PK\_\_sqlt\_dat\_\_BE126DD136F3F0AE’. Cannot insert duplicate key in object ‘dbo.sqlt\_data\_1\_2019\_10’. The duplicate key value is (1310, 1571142856868).

Violation of PRIMARY KEY constraint ‘PK\_\_sqlt\_dat\_\_BE126DD12514B870’. Cannot insert duplicate key in object ‘dbo.sqlt\_data\_3\_2019\_10’. The duplicate key value is (1312, 1571152442197).

---

<div class="post-metadata">

**Author:** ![jburt](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jburt](https://forum.inductiveautomation.com/u/jburt)\
**Post date:** [October 17, 2019, 4:39pm UTC](https://forum.inductiveautomation.com/t/this-data-sink-does-not-accept-data-of-the-given-type-historian-store-and-forward-quarantine/29169/2 "2019-10-17T16:39:05Z")

</div>

This shows up in the gateway logs:  
java.sql.BatchUpdateException: Violation of PRIMARY KEY constraint ‘PK\_\_sqlt\_dat\_\_BE126DD105548E0A’. Cannot insert duplicate key in object ‘dbo.sqlt\_data\_1\_2019\_09’. The duplicate key value is (1310, 1568335032036).

at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeBatch(SQLServerPreparedStatement.java:2083)

at org.apache.commons.dbcp2.DelegatingStatement.executeBatch(DelegatingStatement.java:223)

at org.apache.commons.dbcp2.DelegatingStatement.executeBatch(DelegatingStatement.java:223)

at com.inductiveautomation.ignition.gateway.datasource.DelegatingStatement.executeBatch(DelegatingStatement.java:60)

at com.inductiveautomation.ignition.gateway.datasource.SRConnectionWrapper$SRStatement.executeBatch(SRConnectionWrapper.java:735)

at com.inductiveautomation.gateway.tags.history.storage.TagHistoryDatasourceSink.insertTagValues(TagHistoryDatasourceSink.java:991)

at com.inductiveautomation.gateway.tags.history.storage.TagHistoryDatasourceSink.storeScanClassSet(TagHistoryDatasourceSink.java:479)

at com.inductiveautomation.gateway.tags.history.storage.TagHistoryDatasourceSink.storeDataToDatasource(TagHistoryDatasourceSink.java:457)

at com.inductiveautomation.ignition.gateway.history.sf.sinks.AbstractDatasourceSink.storeToDatasource(AbstractDatasourceSink.java:137)

at com.inductiveautomation.ignition.gateway.history.sf.sinks.AbstractDatasourceSink.storeData(AbstractDatasourceSink.java:115)

at com.inductiveautomation.ignition.gateway.history.sf.sinks.AggregateSink.storeData(AggregateSink.java:172)

at com.inductiveautomation.ignition.gateway.history.forwarders.ForwarderThread.run(ForwarderThread.java:149)

---

<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:** [October 17, 2019, 5:25pm UTC](https://forum.inductiveautomation.com/t/this-data-sink-does-not-accept-data-of-the-given-type-historian-store-and-forward-quarantine/29169/3 "2019-10-17T17:25:18Z")

</div>

> [@jburt](#):
>
> Cannot insert duplicate key

That means that there's already data in that table for that tag and timestamp. Somehow. Discard those entries. Make sure your split tag history providers are aren't pointing back at the same DB.

---

<div class="post-metadata">

**Author:** ![andrea.wohlers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrea.wohlers/32/17969_2.png) [@andrea.wohlers](https://forum.inductiveautomation.com/u/andrea.wohlers)\
**Post date:** [June 16, 2021, 5:42am UTC](https://forum.inductiveautomation.com/t/this-data-sink-does-not-accept-data-of-the-given-type-historian-store-and-forward-quarantine/29169/4 "2021-06-16T05:42:42Z")

</div>

@jburt hey, how did you solve the problem?  
thx
