Azure Data Sync : Error while adding a table back to sync group

Aaron Wong 0 Reputation points
2025-06-25T11:26:10.42+00:00

Azure Data Sync : Error while adding a table back to sync group

We have an Azure Sync Group with multiple tables being synced from Azure SQL DB to an on-prem SQL DB. We removed one particular table from the sync group as we had to do some data type changes for the columns. After removing the table from the sync group we used a script provided by Microsoft team earlier, to identify all data sync and internal tracking tables and deleted them on both the hub and member database. Then we dropped the original table as well.

After recreating the table with new schema changes, we tried to sync the table again by adding it to another existing sync group.

  1. First time when we synced to the member DB, the table with old schema was created on the member DB. Unsure how this happened, we repeated the process of removing the table from the sync group, cleaned up the data tracking objects on both hub and member DB again.
  2. When we are adding the table back to the sync group we are now getting error message "Failed to perform data sync operation: The data type, size, precision, or scale of column 'Deal Closing Date' has been changed and this operation is not supported." The table is not getting added to the sync group at all.

Please help us understand where is ADS finding the old schema for the table and comparing it against? We need to sync the table to the client's member DB ASAP and unable to find out where the old schema is still present. The script file used to identify sync objects is attached. Thanks!

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. Mahesh Kurva 5,025 Reputation points Microsoft External Staff Moderator
    2025-06-25T12:42:06.5333333+00:00

    Hi Aaron Wong,

    Greetings!!

    The issue you're encountering with Azure Data Sync likely stems from residual metadata or internal tracking information that wasn't fully cleared, even after running the cleanup script.

    Here’s a recommended approach to fully reset the sync configuration for the modified table:

    Remove the Table from Sync Group Again

    • Ensure the table is removed from the sync group in the Azure portal.

    Clean Up Metadata Thoroughly

    • Use the Microsoft-provided script to remove all tracking tables, triggers, and metadata.
    • Also check for and remove entries in scope_config and scope_info tables manually if needed.

    Drop and Recreate the Table

    • Confirm that the table is dropped and recreated with the new schema on both hub and member databases.

    Clear Sync Group Cache (if possible)

    Unfortunately, Azure doesn’t provide a direct way to clear sync group cache. You may need to:

    • Delete and recreate the sync group if the issue persists.
    • Or create a new sync group specifically for this table.

    Add the Table to the Sync Group

    • Add the newly created table to the sync group and initiate sync.

    Please refer the below similar thread, that might help you:
    https://learn.microsoft.com/en-us/answers/questions/2282901/azure-data-sync-to-on-prem-sql-succeeded-but-the-d

    If above steps are not resolved your issue, please provide requested details in Private message.

    Hope this helps. Do let us know if you any further queries.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.