PintLint

Rules / IBR-099

IBR-099 error

Seller trader name must occur maximum once

Seller trader name (ibt-028) must occur maximum once.

Fails

<Invoice>
  <cbc:Name>…</cbc:Name>
  <cbc:Name>…</cbc:Name>
</Invoice>

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
/ubl:Invoice | /cn:CreditNote
Test
(count(cac:AccountingSupplierParty/cac:Party/cac:PartyName/cbc:Name) <= 1)

Official text: Seller trader name (ibt-028) MUST occur maximum once.

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

Check an invoice