Groups | Blog | Home
all groups > sql server replication > february 2007 >

sql server replication : Insert operation was discarded in subscriber(Newbie)


Hilary Cotter
2/7/2007 5:57:55 AM
This is a primary key conflict. You are trying to enter two rows (one on the
publisher and one on the subscriber) with the same rowguid value. It will
always be kicked back. You need to use a different value on either side if
you wish it to remain in.

--
Hilary Cotter

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

Kaliven
2/7/2007 4:13:23 PM

I have some subscribers in cluster.

when delete a record in a subscriber side, Publisher accepted the
operation.However if try to insert
a record with the same rowguid in the same table named "Image",Publisher
rejected the operation.
After tracing that operations of the table Image,the record was inserted
into the table. and then
the record was deleted.

checking the publisher....
I found there is a record in the table conflict_mergeRepPub_Image.It is my
insert record.
Other fields list as below:
Conflict type 3
Reason Code 3
Reason Text The same row was updated at 'CR950A24G.DDS' and deleted
at 'CR165.DDS'.
The resolver chose the deletion as the winner.

'CR950A24G.DDS'is the subscribe and 'CR165.DDS' is publisher.

Our publisher use default resolver.I had tried to change the resolver to
"subscriber always win",
But it still happened. And I had doubted the FK on the table. But after I
delete the FK, issue is
still on.

I am comer.I wish I had described the complex issue clearly.

Kaliven
2/8/2007 1:18:19 PM
Hi Hilary,
Thanks for your answer.

I take a test to remove the PK and insert a row.It works all right.It seems
to your instruction is right.But I can not understand why there are two rows
to be inserted. I just take the action to insert one row in subscriber. In
my logical I need insert the row into the table. Any suggestion for me?
[quoted text, click to view]

Kaliven
2/8/2007 1:19:37 PM
Hi Hilary,
Thanks for your answer.

I take a test to remove the PK and insert a row.It works all right.It seems
to your instruction is right.But I can not understand why there are two rows
to be inserted. I just take the action to insert one row in subscriber. In
my logical I need insert the row into the table. Any suggestion for me?
[quoted text, click to view]

AddThis Social Bookmark Button