SchemaGuard by Ironbark Digital · EN 16931 / Peppol / XRechnung Reference
← All 294 EN 16931 / Peppol Rules & Live Validator
FATAL Official EN 16931 / Peppol / CIUS Rule BT/BG Fields: BT-158

BR-CL-13 — E-Invoice Validation Rule & Fix

Fixture ID: classificationBadScheme · XPath: /ubl:Invoice/cac:InvoiceLine[1]/cac:Item/cac:CommodityClassification[1]/cbc:ItemClassificationCode/@listID

1. Why This Rule Triggers (Diagnostic Message)

Classification 1 on line 1 declares the scheme "NOPE" (BT-158-1), which is not in UNTDID 7143 (185 codes). The scheme is carried as @listID on cbc:ItemClassificationCode and it is what turns the code into a lookup: customs, spend analysis and product-compliance checks all branch on it before reading the code. A scheme name invented for internal use — "UNSPSC", "eCl@ss", "internal" — is exactly the kind of value that fails here while looking entirely reasonable.

2. How to Fix BR-CL-13

Set line.itemClassifications[].schemeId to a UNTDID 7143 code: "HS" harmonised system, "MP" product/service identification number, "SRV" GS1 product classification, "TST" test specification, "ZZZ" mutually defined. Use "ZZZ" when the classification is one you and the buyer agreed bilaterally.

3. Valid Code / Payload Example

"itemClassifications": [{ "code": "43211508", "schemeId": "MP" }]
Test & Validate XML / JSON in Live SchemaGuard Validator →