Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

GP Web Services PMTransaction duplicate voucher numbers

Posted on by 125

Hello everyone,

I'm using the GP Web Services to send payables transactions to GP. I have a situation where i need to have multiple transactions with the same voucher number. The web service fails when trying to do this (validation exception: key already exists in PM Keys Master.)

It makes sense to me why the web service does not allow this, but i have not been using it for very long and i thought someone more experienced with the web service might be able to tell me for sure whether or not I can i can get around this problem and create multiple transactions with the same voucher number ... or if i need to look into a different solution. Is there anything i am missing that could help me out, or am I stuck?

Thanks!

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: GP Web Services PMTransaction duplicate voucher numbers

    In table PM key master the primary key is combination of voucher number and document type. Therefore, for same document type the voucher number cannot be same. The voucher number can be same for different document type. That is there can be an invoice and payment with voucher number say 1234 but not two invoices can be of same voucher numbers.

    If it is helpful in your case, the document numbers can duplicate. You can turn on Allow Duplicate Invoices Per Vendor setting payable setup for vendors.

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans