UBL-SR-43: Scheme identifier shall only be used for invoiced object (document type code…
fatalUBL
What this error means and how to fix it
A UBL syntax rule: an element occurs more often than EN 16931 allows, or another restriction of the UBL syntax binding is not met. This is an error: the invoice is rejected until it is fixed.
This error needs information only you have, so it is not repaired automatically. The free check shows every finding in the file with its location; if other errors in the same file are in the automatic set (totals, VAT breakdown, rounding, element order), the result page offers the corrected file for 9 €.
Rule text
[UBL-SR-43]-Scheme identifier shall only be used for invoiced object (document type code with value 130 or 50)
Where the rule is checked (XPath context and test)
Syntax
Severity
Context (XPath)
Test (XPath)
EN16931-UBL
fatal
cac:AdditionalDocumentReference
((cbc:DocumentTypeCode='130') or ((local-name(/*) = 'CreditNote') and (cbc:DocumentTypeCode='50')) or (not(cbc:ID/@schemeID) and not(cbc:DocumentTypeCode)))