SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Replication SYNC Error


Replication SYNC Error

Author
Message
dba.sql29
dba.sql29
SSC-Enthusiastic
SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)

Group: General Forum Members
Points: 137 Visits: 1222
I have setup a new replication via backup and restore but its giving me two errors first

"the row was not found at the subscriber when applying the replicated command. (source: mssqlserver, error number: 20598)"

and the second one is
Violation of PRIMARY KEY constraint 'NWX_WQMS_PRIMARY'. Cannot insert duplicate key in object 'dbo.NWX_WQMS_QUEUE_MSG'. The duplicate key value is (20, 3, 13031200020600002).

I have googled for both and tried all the options but nothing is working out I also recreated replication from scratch for the one Main db but same thing.

I have started replication on other dbs same way, and they are not having any problems.
should I open a MS ticket ? or is there any other way you can suggest please let me know its my production system.
This is my Production System Please help.

Thank you all in advance
muth_51
muth_51
SSC Eights!
SSC Eights! (941 reputation)SSC Eights! (941 reputation)SSC Eights! (941 reputation)SSC Eights! (941 reputation)SSC Eights! (941 reputation)SSC Eights! (941 reputation)SSC Eights! (941 reputation)SSC Eights! (941 reputation)

Group: General Forum Members
Points: 941 Visits: 2905
First error: someone deleted the row at the subscriber and then deleted the row on the publisher. so it's throwing that error. try to insert that row in the subscriber then the replication will delete that row.

Second error: Primary key violation. Vice versa of the above one. You have a row on the subscriber with the same primary key. Try to compare that row with the publisher if it matches delete the row on the subscriber. Replication will insert that row again.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search