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

Identity Range Check Problem

$
0
0

Hello all,

This problem always happens whenever a merge replication is used and whenever a table has auto-number (also known as identity).

[SQLSTATE 01000] (Message 0)  The insert failed. It conflicted with an identity range check constraint in database 'xxx', replicated table 'dbo.replicated_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. [SQLSTATE 42000] (Error 50000).  The step failed.

I have tried various solutions but none of them seems to work.

I read a post that they released a hotfix available to download for this bug on Microsoft SQL Server 2005, however I am using the 2016 SQL Server.

I tried changing the range of the publisher, subscriber, everything but nothing seems to work.

I am suspecting that the problem would either be:

1) A bug in the replication

2) Something from the application side causing it (The way users insert their data)

Thank you for the time you spent on reading this post, and your answer is much appreciated!


Viewing all articles
Browse latest Browse all 4054

Trending Articles



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