Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Duplicate Key in Historical Aged Trial Balance

Posted on by 22,647

When we generate the Historical Aged Trial Balance - RM - we get a Duplicate Primary Key Violation.

Using the same details, same dates, same customer list, same class list - in Aged Trial Balance with Options - RM we do not get the error.

I was able to narrow down the customer record that appears to be causing the problem by entering a range of Customer ID's into the restriction list until I could run the report.  I have determined that one customer DAVIDSION is the problem.

The customer ID is ON HOLD and is marked INACTIVE

There are no current transactions that we can find for this customer - we can look at the Transactions by Customer and see all the old transactions.

I have run reconcile on the RM Sales Transaction / History  on RM Customer Master and on Receivables Transaction Open and History.

Nothing changes.


When I look in the RM00401 (RM KEys) the only records for DAVIDSON are from 2013 - there is nothing current.  Only recent activity on the client was yesterday ( 12/02/14) when the Controller put the account on HOLD and marked the account INACTIVE.  This is also when the generation of the HISTORICAL AGED TRIAL BALANCE stopped working for only this customer.

I can run the Historical Aged Trial Balance for ALL CUSTOMER before DAVIDSON and after with no errors.  So it is not the report - there is a duplicate somewhere and I can not find it.

Thanks for the help.

*This post is locked for comments

  • Suggested answer
    Bill Campbell Profile Picture
    Bill Campbell 22,647 on at
    RE: Duplicate Key in Historical Aged Trial Balance

    Yes Charles, we discovered in the RM00101 table that there was a duplicate Customer ID.

    It might have been created when the client was changing the Customer Name - from Davison to DO NOT USE

    Once we removed the record - all records were returned and the Historical Aged Trial balance operated correctly.

  • Charles Ray Profile Picture
    Charles Ray on at
    RE: Duplicate Key in Historical Aged Trial Balance

    Bill, was this resolved?  I've got a client with the same issue today.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans