Rules / IBR-180-AE
When scheme identifier is '0235' and Buyer legal registration identifier is provided, then Buyer legal registration identifier type must be present
When scheme identifier (IBT-049-1) is '0235' and Buyer legal registration identifier (ibt-047) is provided, then Buyer legal registration identifier type (BTAE-16) must be present.
Fails when this is false
not(cbc:EndpointID[@schemeID = "0235"] and cac:PartyLegalEntity/cbc:CompanyID) or cac:PartyLegalEntity/cbc:CompanyID/@schemeAgencyIDThe schematron test, verbatim. Context: cac:AccountingCustomerParty/cac:Party
Fix
Change the data so the condition below holds. It reads cac:PartyLegalEntity, cbc:CompanyID, cbc:EndpointID, @schemeAgencyID. Paste the invoice into the validator to see the exact element that fails.