Azure SQL Database Deployment Error after enabling SQL data sync

Aparna Manoharan 40 Reputation points
2025-02-06T19:06:23.5966667+00:00

After enabling Azure SQL Data sync, I am getting below warning while executing DACPAC and deployment if getting failed. I want to Ignore these errors and continue with deployment.

Error SQL72032: If this deployment is executed [Foreign key] will be dropped and not re-created.

Error SQL72031: This deployment may encounter errors during execution because changes to <table> are blocked by [table_dss_delete_trigger]'s dependency in the target database.

I have used below publish action to Ignore verification errors and for not dropping objects not in source. /p:TreatVerificationErrorsAsWarnings=false /p:BlockOnPossibleDataLoss=False /p:DropObjectsNotInSource=False /p:DropConstraintsNotInSource=false /p:DropIndexesNotInSource=false /p:DropDmlTriggersNotInSource=false /p:ScriptDatabaseOptions=False

Still getting error when deploying DACPAC

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. Aparna Manoharan 40 Reputation points
    2025-02-07T15:38:20.06+00:00

    I added these publish action

    '/p:IgnoreDdlErrors=true /p:IgnoreDmlTriggers=True /p:IgnoreWithNocheckOnForeignKeys=true /p:TreatVerificationErrorsAsWarnings=false /p:BlockOnPossibleDataLoss=true /p:DropObjectsNotInSource=False /p:DropConstraintsNotInSource=false /p:DropIndexesNotInSource=false /p:DropDmlTriggersNotInSource=false /p:ScriptDatabaseOptions=False'
    
    
    

    But got these errors:

    ##[error]*** 'IgnoreDdlErrors' is not a valid argument for the 'Publish' action.

    ##[error]*** 'IgnoreDmlTriggers' is not a valid argument for the 'Publish' action.


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.