Cant create export of database

Gino 0 Reputation points
2026-01-22T12:37:59.93+00:00

I cant create an export of one of our databases.

ERROR:

The ImportExport operation with Request Id '6001476a-69a8-46df-a766-70dc38edf723' failed due to 'One or more unsupported elements were found in the schema used as part of a data package. Error SQL71501: Error validating element [TaskHosting]: Schema: [TaskHosting] has an unresolved reference to object [##MS_SyncAccount##]. Error SQL71501: Error validating element [dss]: Schema: [dss] has an unresolved reference to object [##MS_SyncAccount##].

I already tried making a copy and running this script:
https://techcommunity.microsoft.com/blog/azuredbsupport/exporting-a-database-that-iswas-used-as-sql-data-sync-metadata-database/369062

SQL Server Database Engine
{count} votes

2 answers

Sort by: Most helpful
  1. SAI JAGADEESH KUDIPUDI 315 Reputation points Microsoft External Staff Moderator
    2026-01-27T13:24:05.3666667+00:00

    Hi Gino,

    I kindly request you to please share the details requested in the private message for further investigation.

    0 comments No comments

  2. Marcin Policht 77,660 Reputation points MVP Volunteer Moderator
    2026-01-22T12:53:04.4533333+00:00

    Follow https://techcommunity.microsoft.com/blog/azuredbsupport/exporting-a-database-that-iswas-used-as-sql-data-sync-metadata-database/369062

    In order to successfully export the database, you need to:

    1. Create a database copy. You can check how to create a copy of the database using the portal at https://docs.microsoft.com/en-us/azure/sql-database/sql-database-copy-portal (there is also documentation for doing this using T-SQL or PowerShell)
    2. Remove the Data Sync metadata objects from the copy. You can find a script to do it on GitHub
    3. Make sure you are connected to the copy.
    4. Export the database from the copy.
    5. Delete the database copy.

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


Your answer

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