Showing posts with label failing. Show all posts
Showing posts with label failing. Show all posts

Friday, March 9, 2012

Merge replication failing after recreating the publication

I am having a problem with merge replication after recreating a publication. It is a simple two-way replication between two servers allowing applications to update data at both ends, i.e. 1 publisher, 1 subscriber for all tables except some junk ones. The problem started after I did the following:

1) I dropped and recreated the publication to allow for some changes to the database schema. These caused problems so I dropped the subscription and publication and restored the databases at each end from backups taken before we started.

2) When I created the publication again, it wouldn't let me use the same name as it thought the publication already existed. It let me use a different name instead.

3) Most things work OK but one of the tables is not replicating inserts from the subscriber to the publisher. There are no errors and no conflicts, other similar tables replicate OK. Inserts go across the other way OK.

4) I am getting replication conflicts on another table that says 'Unable to synchronize the row because the row was updated by a different process outside of replication'

I believe the problem is to do with the original publication details still being in the restored databases, so am looking to drop the publication & subscription, remove the remnants of the old publication, fix the data and recreate pub & sub. What do I need to do to get rid of the old replication data in the database?

Any help much appreciated.

After dropping the publication and subscription, you can clean up the published and subscriber database of all replication objects by calling sp_removedbreplication.|||I could try this, but I did delete the subscription and publication AND removed the database as a publisher in the server replication properties using the GUI - which presumably does the same thing?|||

Another possibility is if you take a database backup of a published database, and restore it to the same server. When you do this, the restore actually preserves the replication metadata and objects in the database, which could be another reason for the errors. If you were to restore the database to a different machine, then restore would drop the database objects. You can test this out by restoring your published database, and then looking to see if there are any merge system tables laying around, like sysmergepublications, sysmergearticles, merge triggers, etc. If so, then sp_removedbreplication should do the trick.

If this is not the case, then you may want to try dropping the distributor as well then, there may be orphaned rows in some of the metadata tables stored in the distribution database.

Wednesday, March 7, 2012

merge replication error

Hi,

We have an HTTPS merge publication which has been working fine, but all of a sudden the subscription for a subscriber is failing with the following message at the publisher:

Error messages: The process could not read the request message due to OS error
10054. (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147014842) Get help:
http://help/MSSQL_REPL-2147014842 The format of a message during Web
synchronization was invalid. Ensure that replication components are properly
configured at the Web server. (Source: MSSQL_REPL, Error number: MSSQL_REPL-
2147199374) Get help: http://help/MSSQL_REPL-2147199374 The subscription to
publication 'yarraman main' could not be verified. Ensure that all Merge Agent
command line parameters are specified correctly and that the subscription is
correctly configured. If the Publisher no longer has information about this
subscription, drop and recreate the subscription. (Source: MSSQL_REPL, Error
number: MSSQL_REPL-2147201019) Get help: http://help/MSSQL_REPL-2147201019

We have 2 subscribers to this publication and it is working fine for the other subscriber..

Help !

thanks
Bruce

Well

We rebooted their ADSL router and all is now working - strange - given the other subscriber on the same network was working fine. Who knows !

Thanks
bruce

Saturday, February 25, 2012

merge replication and snapshots

I am having the huge db of 80 GB and trying to configure merge replication. The intial snapshot application is failing due to some schema issues. I have made some necessary changes to avoid the schema issues. If I try start the merge agent it is going to re-initialize the snapshot and reapplying the whole snapshot will take atleast 10-15 hrs.

Is there any way to resume the snapshot from the point of failure.. avoiding the reapplying all the data which has already got transfered to subscriber.You cannot restart from the point of failure. You can do it w/o applying the snapshot. Look here:

http://technet.microsoft.com/en-us/library/ms152488.aspx