DacFx icon indicating copy to clipboard operation
DacFx copied to clipboard

ISqlModelElement could not be imported but one or more of these objects exist in your source

Open siyao-Siyang opened this issue 2 months ago • 0 comments

  • SqlPackage or DacFx Version: 170.2.55-preview
  • .NET Framework (Windows-only) or .NET Core: .NET 8
  • Environment (local platform and source/target platforms): Fabric SQL

Steps to Reproduce: Customer issue. I cannot repro. This is the IcM: https://portal.microsofticm.com/imp/v5/incidents/details/701652374/summary

  1. Error message: ISqlModelElement could not be imported but one or more of these objects exist in your source. Error code is SqlDeployment_CouldNotImportTypeError (SQL_UnableToImportElements (72018))
  2. After customer drop the security policies manually in the db, the update (dacfx deploy) succeeds. Customer have also tried to use the script that customer dropping the policies with as a pre-deployment script, but it doesn't work. Interestingly the post deployment to recreate the policies works.

Did this occur in prior versions? If not - which version(s) did it work in?

(DacFx/SqlPackage/SSMS/Azure Data Studio)

siyao-Siyang avatar Oct 23 '25 16:10 siyao-Siyang