BR-63
The Buyer electronic address (BT-49) shall have a Scheme identifier.
Why it fails
- The buyer's
cbc:EndpointID(ram:URIUniversalCommunication/ram:URIIDin CII) has noschemeID.
How to fix it
Add the EAS code of the buyer's address as schemeID; for a German public buyer's Leitweg-ID it is 0204.
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
cac:AccountingCustomerParty/cac:Party/cbc:EndpointID
exists(@schemeID)
Checked with EN 16931 Invoice (UBL), EN 16931 Credit Note (UBL), Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)
/rsm:CrossIndustryInvoice
normalize-space(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:URIUniversalCommunication[1]/ram:URIID/@schemeID) != '' or not (rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:URIUniversalCommunication)
Checked with EN 16931 Invoice (CII)