title: Error when importing snapshot to SQL Server 2019
body: <p>There is an Error when I want to import data from a snapshot(bacpac) file into SQL Server 2019.</p>
  
  <p>It has occur twice on my two different PC.</p>
  
  <p>Please help me if there is any solution about that.</p>
  
  <p>Thank you very much!</p>
  
  <p><strong>Error :</strong></p>
  
  <p><a href="https://i.stack.imgur.com/8dOKj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8dOKj.png" alt="enter image description here"></a></p>
  
  <p><strong>Error Details :</strong></p>
  
  <p><a href="https://i.stack.imgur.com/nWOTJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nWOTJ.png" alt="enter image description here"></a></p>
  
  <p>Here are the error details:</p>
  
  <blockquote>
    <p>===================================  </p>
    
    <p>Object reference not set to an instance of an object.     (Microsoft.Data.Tools.Schema.Sql)</p>
    
    <p>Program Location:</p>
    
    <p>at Microsoft.Data.Tools.Schema.Sql.Deployment.SqlDeploymentPlanGenerator.DeploymentScriptDomGenerator.GenerateFragment(Int32 operation, IModelElement element)
       at Microsoft.Data.Tools.Schema.Sql.Deployment.SqlDeploymentPlanGenerator.DeploymentScriptDomGenerator.GenerateSteps(Int32 operation, IModelElement element)
       at Microsoft.Data.Tools.Schema.Sql.Deployment.OrderedStepGenerator.Add(DeploymentScriptDomGenerator scriptDom, IModelElement element, Int32 operation)
       at Microsoft.Data.Tools.Schema.Sql.Deployment.Analyzers.PlanMediator.BuildDependencyOrderedSteps(Int32 operation, List<code>1 classOrder, List</code>1 operationOrder, Dictionary<code>2 changes, Boolean preserveGraphs, Dictionary</code>2&amp; relating, Dictionary<code>2&amp; related)
       at Microsoft.Data.Tools.Schema.Sql.Deployment.Analyzers.PlanMediator.BuildOperations()
       at Microsoft.Data.Tools.Schema.Sql.Deployment.SqlDeploymentPlanGenerator.OnGeneratePlan()
       at Microsoft.Data.Tools.Schema.Sql.Deployment.SqlDeploymentPlanGenerator.GeneratePlan(List</code>1 drops)
       at Microsoft.Data.Tools.Schema.Sql.Deployment.SqlDeployment.BuildPlan()
       at Microsoft.Data.Tools.Schema.Sql.Deployment.SqlDeployment.Controller.CreatePlan()
       at Microsoft.SqlServer.Dac.DeployOperation.&lt;>c__DisplayClass3.&lt;>c__DisplayClass5.b__1()
       at Microsoft.Data.Tools.Schema.Sql.Dac.OperationLogger.Capture(Action action)
       at Microsoft.SqlServer.Dac.DeployOperation.&lt;>c__DisplayClass3.b__0(Object operation, CancellationToken token)
       at Microsoft.SqlServer.Dac.Operation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
       at Microsoft.SqlServer.Dac.ReportMessageOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
       at Microsoft.SqlServer.Dac.OperationExtension.CompositeOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
       at Microsoft.SqlServer.Dac.OperationExtension.CompositeOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
       at Microsoft.SqlServer.Dac.DeployOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
       at Microsoft.SqlServer.Dac.OperationExtension.Execute(IOperation operation, DacLoggingContext loggingContext, CancellationToken cancellationToken)
       at Microsoft.SqlServer.Dac.DacServices.InternalDeploy(IPackageSource packageSource, Boolean isDacpac, String targetDatabaseName, DacDeployOptions options, CancellationToken cancellationToken, DacLoggingContext loggingContext, Action<code>3 reportPlanOperation, Boolean executePlan)
       at Microsoft.SqlServer.Dac.DacServices.ImportBacpac(BacPackage package, String targetDatabaseName, DacImportOptions importOptions, Nullable</code>1 cancellationToken)
       at Microsoft.SqlServer.Dac.DacServices.ImportBacpac(BacPackage package, String targetDatabaseName, DacAzureDatabaseSpecification creationDefaults, Nullable`1 cancellationToken)
       at Microsoft.SqlServer.Management.Dac.DacWizard.ImportDatabase.DoWork()
       at Microsoft.SqlServer.Management.TaskForms.SimpleWorkItem.Run()</p>
  </blockquote>