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

Merge ReplicationSource: MSSQL_REPL, Error number: MSSQL_REPL-2147199402

$
0
0

The merge replication is used to synchronize data between the publisher and subscriber. We just found that the merge replication stops for few months (longer than 1 months) with below error message. 

"The Merge Agent failed after detecting that retention-based metadata cleanup has deleted metadata at the

Publisher for changes not yet sent to the Subscriber. You must reinitialize the subscription (without upload).

(Source: MSSQL_REPL, Error number: MSSQL_REPL-2147199402".


I have searched the related posts regarding this problem and being suggested to update flag "cleanedup_unsent_changes" with below SQL Statement

"update sysmergesubscriptions set cleanedup_unsent_changes = 0 where subscriber_server = 'Publisher'

and cleanedup_unsent_changes = 1"


However, the retention period is set as 14 days by default and merge replication already stops service for more than 1 months.

If we do it like this way, will the data in the subscriber be replicated to publisher? or the data will lose after executing the above SQL Statement.?  



Viewing all articles
Browse latest Browse all 4054

Trending Articles



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