UBL-CR-591: A UBL invoice should not include the InvoiceLine Item OriginCountry Name
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[UBL-CR-591]-A UBL invoice should not include the InvoiceLine Item OriginCountry Name
not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:OriginCountry/cbc:Name)UBL-CR-591 is a warning rule in the schema layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is flagged but not rejected.
What this rule requires
The rule requires that a UBL invoice or credit note must not include an Item OriginCountry Name within any invoice line or credit note line. The test checks that there is no cac:OriginCountry/cbc:Name inside cac:Item for any cac:InvoiceLine or cac:CreditNoteLine. This is a warning, so the document is not rejected, but the validator reports it and recommends removing the element.
How to fix
Remove cac:OriginCountry/cbc:Name from cac:Item under each cac:InvoiceLine or cac:CreditNoteLine where it appears. If the invoice is generated by a system, configure it not to output this element.
Guidance on this rule. The original text above is authoritative.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to UBL-CR-591.
Validate an invoice against these rules · All release changes