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 :
Microsoft Dynamics AX (Archived)

The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_ModelElementData_HasModelId_LayerId".

(0) ShareShare
ReportReport
Posted on by

Error Message Cannot execute a stored procedure.

The SQL database has issued an error.
Info Message SQL error description:The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_ModelElementData_HasModelId_LayerId". 

*This post is locked for comments

I have the same question (0)
  • Iulian Cordobin Profile Picture
    8,201 on at

    As the error says, you have a some corrupted metadata in the ModelStore. This is most of the times the result of some operations (import models, move to model, etc), not committing properly the data in the database. There are multiple ways to fix these errors, depending on their complexity.

    What I would recommend for you would be first to identify the objects that are causing these problems, and try to resolve the error in the underlying layer by recreating the object (export them, delete and recreate).

  • Community Member Profile Picture
    on at

    Hi Lulian Thanks for the response

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans