Rules / IBR-103
IBR-103 error
Buyer legal registration identifier must occur maximum once
Buyer legal registration identifier (ibt-047) must occur maximum once.
Fails
<Invoice>
<cbc:CompanyID>…</cbc:CompanyID>
<cbc:CompanyID>…</cbc:CompanyID>
</Invoice>
Fix
Keep a single cbc:CompanyID 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:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID) <= 1)
Official text: Buyer legal registration identifier (ibt-047) MUST occur maximum once.