Validation rules
cvc-complex-type.2.4.d — EN 16931 rule
An element appears after the content model is already complete — the schema allows no further children at that position.
- Rule
cvc-complex-type.2.4.d— 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
Remove the trailing element or move it to the position the UBL 2.1 sequence allows.
cvc-complex-type.2.4.d auf Deutsch — was bedeutet der Fehler?
Der KoSIT-Validator lehnt das Dokument bereits bei der XML-Schema-Prüfung (XSD) ab: Ein Element folgt, obwohl das Inhaltsmodell bereits abgeschlossen ist — an dieser Position sind keine weiteren Kindelemente erlaubt.
So beheben Sie den Fehler
Entfernen Sie das überzählige Element — oder verschieben Sie es an die Position, die die UBL-2.1-Sequenz erlaubt.
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.