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.?