Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

AP Batch Errors

Posted on by 655

Our controller created a batch which had a status of MARKED.

After I changed the status of this batch to UNAPPROVED, he received the following message when he attempted to delete the batch:

A remove operation on table 'PM_Key_MSTR' failed because the record couldn't be locked.

I saw a previous article that suggests

1) run Check Links on the payables logical file then

2) run reconcile on the purchasing documents.

When I tried to run check links, I received the following message:

[Microsoft][SQL Server Native Client 10.0][SQL Server]Violation of PRIMARY KEY constraint 'PKPM00400'.  Cannot insert duplicate key in object 'dbo.PM00400'. The duplicate key value is (1,

01T86237TS430324M  ).

I have run a select statement on the PM00400 and don't see the values (1,

01T86237TS430324M  ) from the above message listed in this table.

I see transactions with these values in the PM10000 table which lists these values as the payment number. 

Do you have any ideas on what needs to be done to resolve the error so the batch can be deleted?

*This post is locked for comments

  • Verified answer
    Chris Flood Profile Picture
    Chris Flood 655 on at
    RE: AP Batch Errors

    was able to delete the batch.

  • Jen Kuntz Profile Picture
    Jen Kuntz 3,220 on at
    RE: AP Batch Errors

    It sounds like you may need to recreate the PM Keys table (PM00400). It's essentially an index of every trx in Payables and from time to time something corrupts it and rebuilding it is necessary. I did a quick search to find the link for you but can't. If you are unable to find it, let me know and I'll do another search, there should be a KB article on this process that you can follow and try.

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans