Validation rules
cvc-complex-type.3.2.2 — EN 16931 rule
An attribute is set on an element that does not declare it — a forbidden or misspelled attribute (e.g. currencyID on a non-amount element, or a typo like currencyId).
- Rule
cvc-complex-type.3.2.2— 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 attribute or fix its spelling; attribute names are case-sensitive.
cvc-complex-type.3.2.2 auf Deutsch — was bedeutet der Fehler?
Der KoSIT-Validator lehnt das Dokument bereits bei der XML-Schema-Prüfung (XSD) ab: Ein Element trägt ein Attribut, das dort nicht deklariert ist — ein verbotenes oder falsch geschriebenes Attribut (z. B. currencyID auf einem Nicht-Betragselement oder der Tippfehler currencyId).
So beheben Sie den Fehler
Entfernen Sie das Attribut oder korrigieren Sie die Schreibweise; Attributnamen sind case-sensitiv.
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.