Error codes · UBL 2.1
UBL-CR-640In your invoicing software
A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge PerUnitAmount
This is the rejection, word for word: „[UBL-CR-640] UBL 2.1 Invoice schema does not include `cac:Price/cac:AllowanceCharge/cbc:PerUnitAmount`. This element must be removed for EN 16931 compliance.“
What to have readyNothing. The file has to be re-exported from your invoicing software; we check it again afterwards.
What we doInvoice Navigator automatically removes the disallowed `cbc:PerUnitAmount` element from your Invoice (UBL-CR-640).
If you enter it yourself in your invoicing software
Before
<cac:AllowanceCharge> <cbc:PerUnitAmount>value</cbc:PerUnitAmount> </cac:AllowanceCharge>
After
<cac:AllowanceCharge> <!-- cbc:PerUnitAmount removed for EN 16931 compliance --> </cac:AllowanceCharge>
Element order is part of the rule: if the element sits in the wrong place, the validator rejects with UBL-CR-640.
What the finding looks likeExample
FindingStructure invalid · UBL-CR-640
Location/Invoice/cac:InvoiceLine/cac:Price/cac:AllowanceCharge/cbc:PerUnitAmount
From youA re-exported file
ThenRe-export
ProofSHA-256 and /verify link after the check