PintLint

Rules / IBR-108

IBR-108 error

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 a single cbc:Name here and delete the duplicates. 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 an invoice