Validation rules
cvc-enumeration-valid
A value is not one of the fixed set of values the schema enumerates for this element or attribute.
- Rule
cvc-enumeration-valid— 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
Use one of the allowed values from the validator message. Note that most e-invoice code lists are checked later by Schematron (BR-CL-*), not by the XSD.
cvc-enumeration-valid auf Deutsch — was bedeutet der Fehler?
Der KoSIT-Validator lehnt das Dokument bereits bei der XML-Schema-Prüfung (XSD) ab: Ein Wert gehört nicht zu der festen Werteliste, die das Schema für dieses Element oder Attribut aufzählt.
So beheben Sie den Fehler
Verwenden Sie einen der erlaubten Werte aus der Validator-Meldung. Die meisten E-Rechnungs-Codelisten prüft erst das Schematron (BR-CL-*), nicht das XSD.
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.