All error codes › PEPPOL-EN16931-CL002
PEPPOL-EN16931-CL002 – Reason code MUST be according to subset of UNCL 5189 D.16B
ErrorpeppolPeppol only
What the rule says
Reason code MUST be according to subset of UNCL 5189 D.16B.
How to fix it
Fill in or correct the fields named in the rule (the BT/BG codes tell you which). The test below shows exactly what is checked in the XML. Quickest: validate the invoice to get the exact location and, for amounts, the correct value.
Paste the XML and see every error with the exact fix and the correct amounts.
Where it is checked in the XML
Context: cac:AllowanceCharge[cbc:ChargeIndicator = 'false']/cbc:AllowanceChargeReasonCode
Test (XPath):
some $code in $UNCL5189 satisfies normalize-space(text()) = $code
Related rules
PEPPOL-EN16931-CL001Mime code must be according to subset of IANA code listPEPPOL-EN16931-CL003Reason code MUST be according to UNCL 7161 D.16BPEPPOL-EN16931-CL006Invoice period description code must be according to UNCL 2005 D.16BPEPPOL-EN16931-CL007Currency code must be according to ISO 4217:2005PEPPOL-EN16931-CL008Electronic address identifier scheme must be from the codelist "Electronic Address…