Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Insert Failed... Conflicted With Identity Range Check Constraint

$
0
0

In SQL 2008 R2, we have a client setup to use Transaction Publication With Updatable Subscription. In our setup, we have 1 Publisher and 1 Subscriber.

 Replication had been working for a month or so until they attempted to perform a daily process which imports in a few hundred records (less than the Range Size for that article) and they received the error:

---------

The insert failed. It conflicted with an identity range check constraint in database 'db', replicated table 'table', column 'ID'. If the identity column is automatically managed by replication, update the range as follows: for the Publisher, execute sp_adjustpublisheridentityrange; for the Subscriber, run the Distribution Agent or the Merge Agent.
The statement has been terminated.

---------

I have attempted to run sp_adjustpublisheridentityrange and stop/start the "Synchronizing" of the Subscriber. Importing into the table continues to fail with the same error.  The subscriber is in the Amazon Cloud (SQL Express) so I am using a PUSH Replication with Queued updates. 

The subscriber is just a fail safe DB and no data has been Inserted on the Subscriber side. 

Done a lot of research on this and havent been able to find a solution. Any ideas on how we can get around this issue?  

Thanks.



Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>