PintLint

Rules / IBR-108

Deliver to party name must occur maximum once

Deliver to party name (ibt-070) must occur maximum once.

Fails

<cac:Delivery>
  …<cbc:Name>…</cbc:Name>
  …<cbc:Name>…</cbc:Name>
</cac:Delivery>

Fix

Keep one cac:DeliveryParty/cac:PartyName/cbc:Name in cac:Delivery and delete the extras. If both values matter, one of them belongs in a different field.

Schematron
Context
cac:Delivery
Test
(count(cac:DeliveryParty/cac:PartyName/cbc:Name) <= 1)

Official text: Deliver to party name (ibt-070) MUST occur maximum once.

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

Check your invoice for this rule