Some customers have been reporting errors (File contains corrupted data) when they are trying to import the bacpac files on developer boxes.
The recommendation is to use the SQLPakage tools to import the bacpac using CMD command.
Here you have the step by stet procedure:
1. Restore a bacpac file with SqlPackage.exe
- Download the bacpac file from the LCS Asset library and copy to C:\Temp\BkData.
- Rename downloaded backpac file to Backup.bacpac.
- Right-click and unblock Backup.bacpac
- Download the latest version of SqlPackage.exe to your downloads folder.
- Extract the SqlPackage to C:\Temp\SqlPackage
- Open elevated command session and change directory to point to your SqlPackage directory.CD C:\Temp\SqlPackage
- Run the following command to restore the production database.
SqlPackage.exe /a:import /d:True /mp:4 /p:Storage=memory/sf:C:\Temp\BkData\Backup.bacpac /tsn:localhost /tdn:backup /p:CommandTimeout=120000
Note: Depending on the database size this step could takes several hours.
2. Stop the services
Stop the following services after the data restore is complete.
- a) Management Reporter 2012 Process Service
- b) Microsoft Dynamics 365 for Operations Batch Management Service
- c) Microsoft Dynamics 365 for Operations Data import Export Framework Service
- d) World Wide Web Publishing Service
3. Open SQL Server Management Studio (SSMS)
Open SQL Server Management Studio (SSMS) and connect to the database engine.
- a)Rename AxDB to AxDB_old
- b) Rename backup to AxDB
4. Restart the services
- a) Management reporter 2012 process service
- b) Microsoft Dynamics 365 for Operations – Batch Management service
- c) Microsoft Dynamics 365 for Operations – Data import/Export Framework service
- d) World Wide Web Publishing Service
5. Provisioning tool
Launch the Admin User Provisioning tool from the desktop
K:\AOSService\PackagesLocalDirectory\Bin\AdminUserProvisioning.exe
Thanks for reading,
Said
Acknowledgments: I want to thank my colleague Amy Flowers (Customer Engineer) for her contributions and peer review.

Like
Report
*This post is locked for comments