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 :
Power Platform Community / Forums / Power Apps / Failed to import with ...
Power Apps
Answered

Failed to import with a solution

(0) ShareShare
ReportReport
Posted on by 4
Hello,
I am not able to import a solution. The problem seems to be an instance n the AI-Model. This is the error message: Failed to import with AIModel import: FAILURE: Cannot insert duplicate key exception when executing non-query: System.Data.SqlClient.SqlCommand Exception: System.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_msdyn_AIModelBase'. Cannot insert duplicate key in object 'dbo.msdyn_AIModelBase'. The duplicate key value is (11111111-2222-3333-4444-555555555555, 0, Jan  1 1900 12:00AM). A collegue is able to import this solution(other company, other domain, other enviroment). Can anybody give me an hint?
Categories:
  • Verified answer
    SaiRT14 Profile Picture
    1,992 Super User 2025 Season 1 on at
    pls try the following:
     
    1. Go to Advanced Find in Power Apps.  Select AI Models (msdyn_ai_model table). Search for records with the following filter: AI Model ID (GUID) equals 11111111-2222-3333-4444-555555555555.   Verify the record details to confirm the conflict.
     
    2. If the model already exists, investigate its configuration: Compare the existing AI Model with the one in the solution to identify differences (e.g., model type, version, or associated data).
     
    3. Backup the Existing Model.
    4. Delete the Conflicting Model.
    5. Modify the Solution Before 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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard