SQL Server Error Code – 21506 sp_mergecompletecleanup cannot be execut

In this blog post, you’ll learn more about the SQL Server Error Code 21506 and the error message description that is shown

SQL Server Error Code

21506

SQL Server Error Description for the Code :21506

sp_mergecompletecleanup cannot be executed before sp_mergepreparecleanup is executed. Use sp_mergepreparecleanup to initiate the first phase of merge meta data cleanup.