UBL-CR-640:A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge...
UBL 2.1 Invoice schema does not include `cac:Price/cac:AllowanceCharge/cbc:PerUnitAmount`. This element must be removed for EN 16931 compliance.
Engine Classification
Remove disallowed UBL element per EN16931 specification
Confidence: 95% · Applied automatically in pipeline
What is UBL-CR-640?
UBL-CR-640 is a fatal validation rule defined in the UBL 2.1 specification. It validates the PerUnitAmount element under Price > AllowanceCharge in the UBL invoice XML.
When this rule fires, the invoice is non-compliant and will be rejected by Peppol access points and national validation services. The sending system receives a rejection response and the invoice does not reach the buyer.
Target path: /Invoice/cac:InvoiceLine/cac:Price/cac:AllowanceCharge/cbc:PerUnitAmount
Why This Error Matters
Invoice will be rejected by EN16931 validators. These conformance rules prohibit UBL elements that are not part of the EN16931 e-invoicing profile. Remove the disallowed element.
UBL-CR-640 is a hard failure. Invoices that trigger this rule are rejected at the access point and never reach the recipient. In Peppol networks, this means your sending system receives an MLR (Message Level Response) with a rejection status. The invoice must be corrected and re-sent, adding delay to your payment cycle.
Invoice Navigator can automatically correct this error in your pipeline. The fix is applied with full audit evidence, so your compliance trail remains intact.
Validator Behavior
- ·Causes invoice rejection
- ·Fails UBL schema validation
- ·Error returned: UBL-CR-640
- ·Specification: UBL 2.1
Before / After
<cac:AllowanceCharge> <cbc:PerUnitAmount>value</cbc:PerUnitAmount> </cac:AllowanceCharge>
<cac:AllowanceCharge> <!-- cbc:PerUnitAmount removed for EN 16931 compliance --> </cac:AllowanceCharge>
Technical Reference
/Invoice/cac:InvoiceLine/cac:Price/cac:AllowanceCharge/cbc:PerUnitAmountCommon Causes
- ·Invoice line price allowance contains per unit amount
- ·Price AllowanceCharge PerUnitAmount not permitted
- ·Per-item discount amount not in EN16931 price
- ·Unit-based allowance not needed in price
- ·ERP exports per-unit discounts in price structure
Seeing this in production? The API handles UBL-CR-640 automatically. See the fix response →
See Also
Last updated: 27 February 2026
Handle UBL-CR-640 Automatically in Your Pipeline
The compliance engine auto-remediates this error with controlled safety policies and evidence pack generation.