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)
Answered

Cannot edit a record in [insert table name]. The record already exists.

(1) ShareShare
ReportReport
Posted on by

One of my customers recently reported an error when using my customization: 

Cannot edit a record in my custom table (MyCustomTable).  The record already exists.

We are unable to debug on the customer's system so I'm not exactly sure what caused this error but I'm curious if anyone has ever seen this before.  The error message doesn't make sense to me.  It would make sense to get an error that you could not INSERT a record in my custom table because the record already exists but what does that even mean that you cannot EDIT a record that already exists?

 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Joris dG Profile Picture
    17,775 on at

    It is likely you are updating the record's primary key, which makes it conflict with an existing record.

    Let's say you have a table with 1 column which is the primary key, called "ID". Your table contains 2 record, with ID "a" and ID "b". If you now select the row with ID "b" and updated the ID column to "a" and call update, you will get this error message.

  • Greg's Mom Profile Picture
    on at

    Thanks a lot for the reply, Joris.  That makes perfect sense.  

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans