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)

Duplicate Primary Key Error in Payables Trial Balance

(0) ShareShare
ReportReport
Posted on by

One of our users encountered an error while trying to generate the Payables Trial Balance report in GP 2013. The error message is:

[Microsoft][SQL Server Native Client 10.0][SQL Server]Violation of PRIMARY KEY constraint 'PK##1313941'. Cannot insert duplicate key in object 'dbo.##1313941'. The duplicate key value is (CASH,      ,2011-0000000002  , 0, 2011-0

I understand that the database has a duplicated record (I really have no idea how this happened to begin with) and I would like to handle the issue. The problem is that I cannot figure out which table has that duplication from the error message. Can anybody please help me with this?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    26P2ER Profile Picture
    1,775 on at

    Hello Y2H

    I would recommend the user sign all the way out of GP, sign back in and try to generate the same report again.

    You error text has double hashtags and hence is referring to temporary tables.  

    Those usually go away when the user gets a clean GP session going.

    Hope this helps 

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