web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Violation of PRIMARY KEY constraint 'pjcomdet0'

(0) ShareShare
ReportReport
Posted on by

I am having difficulty resolving this issue in SL 2011. My client has a PO that they are receipting but as soon as I release the batch i receive the below error from the event log. I have queried the PJCOMDET table and I can see the two entries that are duplicated but i do not know how to go about resolving this error.

You help is greatly appreciated.

Event Log Message:

Processing: Batch Number: 048099    , Receipt Number: 032696
System Message 5: [Microsoft][SQL Server Native Client 11.0][SQL
                  Server]Violation of PRIMARY KEY constraint 'pjcomdet0'. Cannot
                  insert duplicate key in object 'dbo.PJCOMDET'. The duplicate
                  key value is (201807, PO, 05



  Debugging info:
                  POAutoProjectCommitments '051123', '201807', '04400',
                  'AENSLIN'
  Cursor(csrProjectCommitment)
                  POAutoProjectCommitments '051123', '201807', '0440
  Optional
                  info: SqlState = 23000 NativeError = 2627 ErrorMsg =
                  [Microsoft][SQL Server Native Client 11.0][SQL
                  Server]Violation of PRIMARY KEY constraint 'pjcomdet0'. Cannot
                  insert duplicate key in object 'dbo.PJCOMDET'. The duplicate
                  key value is (201807, PO, 051123    ,
                  POAutoProjectCommitments
ODBCRowNumber = 1 Column = -1
                  SSrvrLine = 648 SSrvrMsgState = 1 SSrvrSeverity = 14 SSrvrPr

System Message 6127: Error occurred during an abortable transaction.  Processing
                     will continue.

*This post is locked for comments

I have the same question (0)
  • CFROTON Profile Picture
    4,710 on at
    RE: Violation of PRIMARY KEY constraint 'pjcomdet0'

    Waren,

    Thank you for submitting your question to the forum. I suspect you are running into BUG 26049 reported in SL 2011. This bug was fixed in SL 2015 CU1 and there is a SL 2015 HF, but not one for SL 2011.

    I looked through some of the previous incidents and located reports where this message had occurred. To resolve the issue, they ran the Project Financial Transaction Transfer manually through the Project PA.TRN.00 screen. This transferred the commitment and allowed the Purchasing batch to release.

    Can you run the FTT process and then try releasing this batch within Purchasing?

    Please let us know if this helps.

    Thank you,

    Carolyn

    MSDSL Support Engineer

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans