Notifications
Announcements
No record found.
Violation of PRIMARY KEY constraint ‘PKCM20100’. Cannot insert duplicate key in object ‘dbo.CM20100’.
*This post is locked for comments
Run checklinks first, but this will happen if you have the same record in both the work and open tables.....
I did n't get you RogetRogerATX
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
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 !
The error is saying it was trying to insert duplicate records into the table. Not that there are duplicate records in the table already.
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
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.
leslie
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
mtabor 1