Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Duplicate Primary Key Error in Payables Trial Balance

Posted on by Microsoft Employee

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

  • Suggested answer
    26P2ER Profile Picture
    26P2ER 1,773 on at
    RE: Duplicate Primary Key Error in Payables Trial Balance

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans