Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Error import file .bac...
Finance forum
Answered

Error import file .bacpac in Dev environment

Posted on by 60
Dear Expert,
 
I import file .bacpac by MS SQL and have error :
Please, help me solutions. 
 
  • Verified answer
    GIB Profile Picture
    GIB 60 on at
    Error import file .bacpac in Dev environment
    Hi all thanks for advice.
    Now I've found a solution 
     
    1. Open the .bacpac file using winzip or 7-zip 
    2. Copy the model.xml to a local folder “C:\Temp\model.xml 
    3. Edit the “C:\Temp\model.xml” with the desired password. For example: 

    find  <Property Name="AutoDrop" Value="True" />  and Delete

    4.  Run the import using sqlpackage.exe, but use the /ModelFilePath:C:\Temp\model.xml parameter to override the model.xml in the .bacpac. For example: 

     

    sqlpackage.exe /Action:Import /tsn:[server].database.windows.net /tdn:[database] /sf:"C:\Temp\database.bacpac" /ModelFilePath:C:\Temp\model.xml 

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,526 Super User on at
    Error import file .bacpac in Dev environment
    We faced this recently. The problem is with version of SSMS in dev vm. You need to update the SSMS in dev to 2022. Then you can convert the .bacpac to .bak. Because the Auto_Drop feature is introduced only in SQL Server 2022 only
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 225,490 Super User on at
    Error import file .bacpac in Dev environment
    Here is one of possible solutions: Remove-AutoDropFromBacpacModel.ps1.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans