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 GP (Archived)

Violation of PRIMARY KEY constraint ‘PKCM20100’. Cannot insert duplicate key in object ‘dbo.CM20100’.

(0) ShareShare
ReportReport
Posted on by

Violation of PRIMARY KEY constraint ‘PKCM20100’. Cannot insert duplicate key in object ‘dbo.CM20100’.

*This post is locked for comments

I have the same question (0)
  • RogerRogerATX Profile Picture
    1,515 on at

    Run checklinks first, but this will happen if you have the same record in both the work and open tables.....

  • Community Member Profile Picture
    on at

    I did n't get you RogetRogerATX

  • Verified answer
    L Vail Profile Picture
    65,271 on at

    Mallesh,

    The Primary Key for table CM20100 contains 2 columns:

    CMDNUMWK

    VOIDED

    This error message is telling you that a record already exists in the table that matches the key of the record you are trying to insert. Run a query against the CM20100 and then you'll find the document. It has been my experience that Primary Key errors are never wrong.

    Kind regards,

    Leslie

  • Community Member Profile Picture
    on at

    Hi Vail

    Thanks for your reply,

    But in that table there is no duplicate records and still i'm getting the same issue.

    and if i place same order after some time it was working fine without any issue.

    I Hope you will help me out !

  • Community Member Profile Picture
    on at

    The error is saying it was trying to insert duplicate records into the table. Not that there are duplicate records in the table already.

  • Verified answer
    L Vail Profile Picture
    65,271 on at

    DynamicsDev brings out a good point. The duplicate wouldn't already exist in the target table. That is the problem, you are trying to insert a duplicate record. If you look at the fields

    CMDNUMWK

    VOIDED

    of the document you are trying to insert, you should find that one already exists in the table. Time will not fix this kind of error. The 'same order' must have one of the fields different. I suspect it is the Voided field.

    Kind regards,

    leslie

  • 26P2ER Profile Picture
    1,775 on at

    I am not even pretending I know more than Leslie but Sandip had a smiler issue answered. It had to with skipped identity column values and updating the same. Cm40102 is the the table that is in play here

    Here is the link.

    community.dynamics.com/.../222976

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 GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans