UBL-SR-43
Scheme identifier shall only be used for invoiced object (document type code with value 130 or 50)
What does this rule mean?
Scheme identifier shall only be used for invoiced object (document type code with value 130 or 50)
A syntax rule binding the EN 16931 requirements to the concrete XML syntax (UBL or CII).
Official rule message (standard)
Scheme identifier shall only be used for invoiced object (document type code with value 130 or 50)
Where the rule applies
Syntax: UBL
Affected element (XPath):
cac:AdditionalDocumentReference
Technical test
The rule passes when this Schematron expression holds true:
((cbc:DocumentTypeCode='130') or ((local-name(/*) = 'CreditNote') and (cbc:DocumentTypeCode='50')) or (not(cbc:ID/@schemeID) and not(cbc:DocumentTypeCode)))How to fix it
A missing or incorrect business entry only you can supply. Add or correct it, then re-check.
Adjust the named element/attribute to the syntax requirement.
Correct the affected entry in your XML, then re-check the invoice. Validation runs locally in your browser — your file never leaves your machine.
Check an e-invoice here
Drop an XML or ZUGFeRD PDF file here. Validation runs locally in your browser against EN 16931 — your file never leaves your machine.