Read the error message: Schema definition Publisher/Subscriber mismatch. The tables on both side must have the same definition.
Merge Replication issue with the data type geography
looking for help about our problem in merge replication in sql 2019.
2 answers
Sort by: Most helpful
-
-
CathyJi-MSFT 21,866 Reputation points Microsoft Vendor
2022-03-31T06:47:40.02+00:00 Hi @Alfie B. Larioza ,
> The Merge Agent failed because the schema of the article at the Publisher does not match the schema of the article at the Subscriber. This can occur when there are pending DDL changes waiting to be applied at the Subscriber. Restart the Merge Agent to apply the DDL changes and synchronize the subscription.
Please restart the sync process. From the client in a pull situation, or restart from the publisher in a push situation.
In short the application of DDL changes ran into a conflict but restarting the sync will usually resolve the issue. And no, it doesn't start from the beginning, it should just pick up from the point of failure.
Refer to this similar thread.
> Error converting data type varchar to geography
Please check data type of values that changed in articles. Did you enter the wrong data type?
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".