PintLint

Rules / IBR-SR-54

IBR-SR-54 error

The Buyer Postal Address Line must occur maximum once

The Buyer Postal Address Line (ibt-163) must occur maximum once.

Fails

<cac:PostalAddress>
  <cbc:Line>…</cbc:Line>
  <cbc:Line>…</cbc:Line>
</cac:PostalAddress>

Fix

Keep a single cbc:Line here and delete the duplicates. If both values matter, one of them belongs in a different field.

Schematron
Context
cac:AccountingCustomerParty/cac:Party/cac:PostalAddress
Test
(count(cac:AddressLine/cbc:Line) <= 1)

Official text: The Buyer Postal Address Line (ibt-163) MUST occur maximum once

Official · PINT shared rules. Severity: error. Runs on UBL XML.

Check an invoice