Validation rules
cvc-type.3.1.3 — EN 16931 rule
An element's value is not valid against the element's declared type — the element-level companion of a datatype failure, usually reported together with cvc-datatype-valid.1.2.1.
- Rule
cvc-type.3.1.3— official EN 16931 / XRechnung rule- Severity
- error
- Detected by
- tier 2 — XML schema (XSD)
- Reachability
- Only reachable when validating your own XML — normbill-generated documents cannot trigger it
normbill's serializer emits schema-valid XML by construction; this can only fire for XML submitted to /v1/invoices/validate.
How to fix it
Fix the element's text content so it satisfies the declared XSD datatype; the sibling finding names the exact lexical problem.
cvc-type.3.1.3 auf Deutsch — was bedeutet der Fehler?
Der KoSIT-Validator lehnt das Dokument bereits bei der XML-Schema-Prüfung (XSD) ab: Der Wert eines Elements ist für dessen deklarierten Typ ungültig — das elementbezogene Gegenstück zu einem Datentypfehler, meist zusammen mit cvc-datatype-valid.1.2.1 gemeldet.
So beheben Sie den Fehler
Korrigieren Sie den Textinhalt des Elements gemäß dem deklarierten XSD-Datentyp; die begleitende Meldung nennt das genaue lexikalische Problem.
Official sources
- XRechnung specification (KoSIT / xeinkauf.de)
- KoSIT validator on GitHub and the XRechnung validator configuration
Every 422 from the API lists the rule id, the path in your request JSON, a plain-language message and a suggested fix — see the docs overview for the report format.
Or try it live: drop any XRechnung XML on the free validator — same KoSIT-backed report, no account.