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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Batch Recovery Error Loop

(0) ShareShare
ReportReport
Posted on by 1,958

A payables batch is stuck in batch recovery. When attempting to recover we get the message:

A save operation on Table PM_Transaction_Open has created a duplicate key.

Please advise.

Thanks

Categories:
I have the same question (0)
  • Leng Papio Profile Picture
    855 on at

    Unfortunately, this is not something that can be resolved thru forums. Someone needs to remote connect to your SQL server and fix that. If you can allow remote connection, I can assist. Just message me directly.

  • Richard Wheeler Profile Picture
    75,850 Moderator on at

    As suggested this will require SSMS. Here is what you can try first:

    1) Backup company database

    2) In SSMS DELETE PM00400

    3) IN GP Maintenance Check Links -> Purchasing insert Payables History and Payables Transaction Logical tables

    4) Try to recover batch now

    Do this while no one else is in GP. Let us know if this works. If not, then are other steps to correct this.

  • Suggested answer
    Hokuminaria Profile Picture
    2,950 on at

    Hello Nrpacct,

    My name is Brandon. I am a support Engineer on the Microsoft GP Team and will address your question.

    This error tells us you have a duplicated in the PM Open Table. When we get a duplicate error, what it refers to is there is record in more than one of our Transaction Tables. These tables are:

    1. PM10000 Transaction work
    2. PM10300 Payment Work.
    3. PM10400 Manual Payment work.
    4. PM20000 Transaction Open.
    5. PM30200 Transaction History.

    GP expects a record in only one of these tables.

    Now, depending if this was a Transaction or a Check batch will determine what tables you need to look at.

    If this was a Check batch, you should be able to clean up the issue with the following KB. If the problematic batch is a check batch, please try the KB below in test and determine if it resolves your issue.

    https://support.microsoft.com/en-us/help/852064/how-to-continue-a-check-run-that-was-interrupted-in-payables-managemen

    If it was an invoice batch, you will need to review all the tables for the transaction to see where they sit and remove the duplicate record with SQL. Below is a brief overview of the table you will need to review.

    1. PM00400 - You will want to look at the DCSTATUS to determine where the Key Record sees the document should be in.
      1. 1 = Work
      2. 2 = Open
      3. 3 = History.
    2. Once you determine this, you can see what transaction tables have a record for the transactions in the batch. You can use a statement like the following:
      1. Transaction Batch.

        select * from PM10000 where bachnumb = 'Batch name here'
        select * from PM20000 where bachnumb = 'Batch name here'
        select * from PM30200 where bachnumb = 'Batch name here'
      2. Check Batch

        select * from PM10300 where bachnumb = 'Batch name here'
        select * from PM10400 where bachnumb = 'Batch name here'
        select * from PM20000 where bachnumb = 'Batch name here'
        select * from PM30200 where bachnumb = 'Batch name here'

    3. This should tell you where the duplicate is. Once you determine which record is the duplicate, you can remove that from SQL and then remove the batch if there are no other transaction in the batch.
      1. If there are additional transactions in the batch, each one will need to be reviewed.
    4. You will also want to verify that these transactions updated your GL. Also your Bank Rec if it is a Check Run.

    We have additional scripting that can help us locate the duplicates if you would like to create a support case and have us take a look. We might be able to address multiple transactions in the batch as well if the batch has multiple transactions and duplicated.

    I hope this helps!

    Brandon Jarrett | Microsoft 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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 478 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans