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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Facing error while Importing DB from UAT to a tier 1 Dev Virtual Machine.

(1) ShareShare
ReportReport
Posted on by 6
Hi Anton, Prajwal here. I am facing an error saying *** An unexpected failure occurred: Data plan execution failed with message One or more errors occurred. (One or more errors occurred. (One or more errors occurred. (Invalid value.))).  While importing  a UAT BACPAC. I have used the following command for the importing of DB SqlPackage.exe /a:import /sf:"C:\Users\Adminb42d35766f\Downloads\M1UATbackup.bacpac" /tsn:zwmdfodv05-1 /tdn:AXDB_NewT /p:CommandTimeout=1200 /TargetTrustServerCertificate:True /mfp:"modelCopy.xml" . It would be really helpful if you helping me in guiding to resolve this error.  
Thank You!!
Screenshot 2025-04-16 185748.png
Categories:
I have the same question (0)
  • Suggested answer
    Holly Huffman Profile Picture
    6,554 Super User 2026 Season 1 on at
    Good morning, afternoon, or evening depending on your location!
     
    The error you’re encountering during the database import process suggests there might be an issue with the BACPAC file or the parameters used in the command. Let’s troubleshoot this step by step:
     
    1. Verify the BACPAC File:
      • Ensure the BACPAC file isn’t corrupted. You can try re-exporting it from the UAT environment and confirm its integrity.
    2. Check SQLPackage Version:
      • Make sure you’re using the latest version of SqlPackage.exe. You can download it from here.
    3. Validate Command Parameters:
      • Double-check the command syntax and ensure the target database name (/tdn) doesn’t already exist on the server. If it does, delete or rename it before retrying.
    4. Review Model File (modelCopy.xml):
      • If you’re using a model file, ensure its correctly formatted and compatible with the database schema.
    5. Increase Command Timeout:
      • If the database is large, the default timeout might not be sufficient. You can increase the timeout value further, e.g., /p:CommandTimeout=3600.
    6. Run as Administrator:
      • Ensure you’re running the command prompt with administrative privileges.
     
    Hope this is helpful :)
  • Jonas "Jones" Melgaard Profile Picture
    5,016 Most Valuable Professional on at
     
    I have removed your email address for your own privacy sake, as bots crawl the forum and will send spam messages. I hope you don't mind.
     
    It's a fairly non-descriptive error message, so I'd start by raising the verbosity level of the import. You can read more about the different arguments here. https://learn.microsoft.com/en-us/sql/tools/sqlpackage/sqlpackage-import

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 149 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 102 Super User 2026 Season 1

#3
Laurens vd Tang Profile Picture

Laurens vd Tang 97 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans