SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Replication (2008)
 Error at the time of doing a task
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

fazle_rabbee
Yak Posting Veteran

Bangladesh
61 Posts

Posted - 08/11/2012 :  12:55:02  Show Profile  Reply with Quote
At the time of doing a task its showing an Error: Cannot insert duplicate key row in object 'dbo.MSmerge_tombstone'with unique index'uc1MSmerge_tombstone'. Looking to hearing from you.

fazle rabbee

visakh16
Very Important crosS Applying yaK Herder

India
47099 Posts

Posted - 08/11/2012 :  16:47:37  Show Profile  Reply with Quote
question is vague. which task? is it sql agent job? where are you creating it?

the error is explicit though
you're trying to insert duplicate values to column containing unique constraint. so modify the insert statement to insert only distinct value for field

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

fazle_rabbee
Yak Posting Veteran

Bangladesh
61 Posts

Posted - 08/12/2012 :  00:01:26  Show Profile  Reply with Quote
The task is Billing. It was going nice and smooth till yesterday afternoon. From the evening the problem begin to occur. We are using merge Replication with Push subscription. Any other info needed??

fazle rabbee
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
47099 Posts

Posted - 08/12/2012 :  11:51:41  Show Profile  Reply with Quote
quote:
Originally posted by fazle_rabbee

The task is Billing. It was going nice and smooth till yesterday afternoon. From the evening the problem begin to occur. We are using merge Replication with Push subscription. Any other info needed??

fazle rabbee


is insert done using a procedure? check the logic. it seems the relationship used between tables is not proper causing it to return duplicates

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000