Skip to main content



No record found.

Microsoft Dynamics SL forum

Pay when Paid error 12398 when selecting a voucher for payment when linked invoice has been paid

Posted on by 55

Version 2011 FP1

I am trying to learn what I can about Pay when Paid for a client that wants to start using it.  On a test system, I have created a Pay when Paid terms ID and have entered a voucher using that terms ID, and a basic invoice in the AR Invoice and Memo screen.  I have linked the two documents using the Pay When Paid Link Assistant.


I then went to AR and fully paid the invoice in Payment Applications.


When I try to select the Voucher for payment in Edit/Select Documents for payment, I receive a System Message 12398 "Warning - This is a Pay When Paid Document that has not been fully invoiced.  This will override the Pay When Paid LInk"  [ok}


What am I missing?  The voucher and invoice have been linked, the invoice was fully paid off.  Suggestions?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Pay when Paid error 12398 when selecting a voucher for payment when linked invoice has been paid

    Hi Chris,

    I tested this and have the same message.   I think you probably always get this message when you select a Pay-when-paid terms voucher in the Edit/Select Documents for payment screen.   When you make the selection of the voucher in Edit/Select,  the system will allow you to select and pay a pay-when-paid voucher even if the invoice isn't paid.

    Make the payment selection in the Payment Selection screen choosing by refnbr and the system will select the document without error.  If you need to pay the PP voucher even when the invoice hasn't been paid,  you can do so in the Edit/Select Documents screen.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans