PintLint

Rules / IBR-SR-56

The Delivery Postal Address Line must occur maximum once

The Delivery Postal Address Line (ibt-165) must occur maximum once.

Fails

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

Fix

Keep one cac:AddressLine/cbc:Line in cac:Delivery/cac:DeliveryLocation/cac:Address and delete the extras. If both values matter, one of them belongs in a different field.

Schematron
Context
cac:Delivery/cac:DeliveryLocation/cac:Address
Test
(count(cac:AddressLine/cbc:Line) <= 1)

Official text: The Delivery Postal Address Line (ibt-165) MUST occur maximum once

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

Check your invoice for this rule