Why is my invoice failing with the error: "ANInvoiceRule.accumulatedPoItemInvoicedAmount" in SAP Business Network?
I'm trying to send an invoice to my buyer and see them failing with the below error:
Status code="500" text="Internal Server Error">Error:null Please contact support with the Error Reference Number: ANERR-XXXXXXXXXXXXXXXX for more details</Status>
[ANCXML_HANDLER_ERROR] null -- ariba.network.common.cxml.CXMLDocException at ariba.network.service.common.antxnbusinesslogic.ANInvoiceRule.accumulatedPoItemInvoicedAmount(ANInvoiceRule.java:2149)
SAP Business Network.
The cause of the issue can be:
- The invoice is sent for more than the remaining amount in the Purchase Order (PO).
- Mismatch of the invoice amount on Buyer and Supplier side. This can be caused if there are other invalid or failed invoices in the same PO, so it is important that documents that failed are properly rejected.
- <MaxAmount> for POs or Blanket POs has lower limit than what supplier is sending in the invoice for the line item. This can happen specially on Amount Based Receiving scenarios where suppliers can enter amount directly.
For example, if the purchase order has this tag:
<MaxAmount>
<Money currency="USD">1.00</Money>
</MaxAmount>
It means that the order can be invoiced up to a maximum of 1.00 USD; if it exceeds that amount, the invoice will fail.
Possible solutions:
- You must send the invoice with lower amount than the remaining amount of the PO for the line item.
- If the invoice amount is less than the remaining amount and you are still facing the issue, check the invoice status and their amount on the buyer and your account.
- Confirm that the amount being sent for the line item is not surpassing what is set as the Max Amount by the buyer on the PO (Blanket POs). This can be checked by downloading the cXML payload of the PO and looking for the <MaxAmount> tag within the specific line item affected.
- Check if the below rules are enabled by your buyer for you as the invoice might require the Ship Notice or Receipt for the amount you are attempting to invoice:
- Require suppliers to include only shipped quantities on invoices.
- Require suppliers to include only received quantities on invoices.
In case the available amount to be invoiced is incorrect, you should contact your customer so that they can send a new version with the desired adjustment.
SAP Business Network for Procurement & Supply Chain > SAP Business Network Integrations > CXML Invoices
SAP Business Network for Procurement & Supply Chain > Transaction Documents > Transaction (Invoicing)