Peppol BIS Billing 3.0.20 · UBL

BR-57: Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80)

Peppol BIS Billing 3.0.20 · UBL

fatalbusiness

Original rule text

[BR-57]-Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80).

Stored validation assertion
exists(cac:Country/cbc:IdentificationCode)

BR-57 is a fatal rule in the business layer of Peppol BIS Billing 3.0.20 · UBL. An invoice that breaks it is rejected. It refers to BG-15, BT-80.

What this rule requires

The rule requires that a deliver-to address include a country code. In UBL, each cac:Delivery/cac:DeliveryLocation/cac:Address must contain a cac:Country/cbc:IdentificationCode element; the test only checks that the element exists, not that its value is non-empty. In CII, when ram:ShipToTradeParty/ram:PostalTradeAddress is present, its ram:CountryID must be present and have a non-empty value after ignoring surrounding whitespace; if no PostalTradeAddress exists, the rule is satisfied. This is a fatal rule, so a document that does not meet it fails validation.

How to fix

In UBL, add cac:Country/cbc:IdentificationCode inside the deliver-to address (cac:Delivery/cac:DeliveryLocation/cac:Address) and set it to the appropriate country code (the rule does not list allowed codes; use the expected code for the address). In CII, if ram:ShipToTradeParty/ram:PostalTradeAddress is present, add or correct ram:CountryID to a non-empty country code value; if the address itself is not present, no change is needed for this rule.

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 BR-57.

Validate an invoice against these rules · All release changes