web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Issue in Database restore from UAT to Sandbox

(0) ShareShare
ReportReport
Posted on by 25

Hi All,

I have followed the standard documentation (https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/database/dbmovement-scenario-exportuat#import-the-database?) to export UAT db to developer's sandbox but I am facing the issue File contains corrupted data while exporting the db backup from UAT to developer sandbox.

pastedimage1582267049616v2.png

Does anyone familiar with this one? 

Thanks,

I have the same question (0)
  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Zuhad,

    There was a discussion in Yammer about the same issue. Try this solution.

    Customers have been reporting the .bacpac exported from some environments are unable to be imported on developer boxes.  They get an error "File contains corrupted data" when running Sqlpackage.exe.

    Root cause: We use .Net Core version of Sqlpackage.exe in our Dynamics-hosted export engine, which has a regression against .Net Standard Sqlpackage.exe.  We worked with that team to highlight the issue, and they are fixing it in the .Net Standard version.  However, since Microsoft doesn't update SSMS/Sqlpackage on your environments this is surfacing as a breaking change on dev boxes.

    If this describes your situation, you can visit docs.microsoft.com/.../sqlpackage-download to download .NET CORE version of Sqlpackage.exe.  This is a .zip file that can be extracted to C:\Temp\Sqlpackage-dotnetcore.

    From there, instead of using the Sqlpackage.exe under C:\Program Files (x86) they can use the Sqlpackage.exe in C:\Temp\Sqlpackage-dotnetcore.

    It is able to better understand the .bacpac file format, as it truly is not corrupted.  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans