Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Reconcile to GL - Cannot Insert Duplicate Key

Posted on by 277

Hello everyone,

We are having an issue with our reconcile to gl feature when running against payables. It keeps giving us a duplicate key error from the payables window. I have run the scripts to find duplicates but have not seen anything. I have also manually went through the tables but once again did not find duplicates. The only thing that I have found is that there are some transactions that do seem similar. Please see below. 

It gives us the error below. Something I have noticed about this transaction is that it involves credit cards. Below is an example of how it is setup. 

Enter invoice for vendor. Ex. Invoice #INV25896 (closed - has distributions)

Create Payments - Payment #003225 (closed - no distributions)

Automatically Creates the Credit Card Invoice - Inv #003225 (open - no distributions)

The payment is in the closed tables and the credit card invoice is open. I don't think the invoice and payment having the same number should cause issue (since one is an invoice and the other is a payment) because it has been this way in the past but this is still the error we are getting. We do have a new accountant and the older accountant is currently unavailable so there is no way for me to know if they did anything different other than what I can see in the tables.

pastedimage1598446630613v1.png

Let me know if anyone has any thoughts. 

Thanks,

RJ

Categories:
  • LarryP Profile Picture
    LarryP 2 on at
    RE: Reconcile to GL - Cannot Insert Duplicate Key

    Justin I am experiencing this now.  Has the update to fix this been released since you originally posted this?  My client is running GP 18.4 (2021 year-end update) and is experiencing this exact issue with credit card transactions for one vendor.  Attached is the error message, and a shot of the transactions that were part of that same audit trail.  No duplicate vouchers there, so I'm not sure what the reconcile is pulling that causes the error.

    pastedimage1670606166574v1.pngpastedimage1670606330103v2.png

    Thanks,

    Larry Patterson

  • Lisa Payment Profile Picture
    Lisa Payment 65 on at
    RE: Reconcile to GL - Cannot Insert Duplicate Key

    Hello, has an update for to resolve this been released?  

  • Verified answer
    RE: Reconcile to GL - Cannot Insert Duplicate Key

    Hello RJ,

    Overall the issue can occur if there are real duplicates, or if there is an identical voucher number and document number in a single batch. This is likely what you are running into, just look at the documents and see what Voucher Numbers and Document Numbers are involved.

    This comes down to how the Stored Procedure making the temporary tables involved is coded. We used an OR when really we should have used an AND. This is a known issue as CR 92165 and it is being reviewed for a fix in a future release of GP.

    If you confirm this is the issue, you can open a case with the support team and we can provide an updated procedure that just hasn't been tested enough to get included into the main GP release yet. Just note the CR and we will make sure you are not charged for the case.

    Let me know if you have any questions or concerns.

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

Product updates

Dynamics 365 release plans