Fehlercodes · xsd
Required XML element is missing (XSD content model incomplete)
So lautet die Ablehnung wörtlich: „[cvc-complex-type.2.4.b] cvc-complex-type.2.4.b is an XML Schema (XSD) validation error meaning an element's content is incomplete: the schema requires a child element that is not present. The message reads "The content of element 'X' is not complete. One of {'Y'} is expected." Unlike a business rule (BR-*) violation, this is a structural failure — the document does not conform to the UBL or CII schema, so it fails before any EN 16931 business rules are evaluated.“
The XSD content model defines a required sequence of child elements and the validator reached the end of an element while a mandatory child was still expected. Common triggers: AccountingSupplierParty/AccountingCustomerParty missing cac:Party; cac:PostalAddress missing cac:Country; cac:LegalMonetaryTotal missing a required amount; cac:TaxTotal missing cbc:TaxAmount; elements emitted out of the UBL sequence order; or a namespace prefix typo (cbc vs cac) that makes a present element appear absent.
<cac:AccountingSupplierParty><cac:Party><cac:PostalAddress><cbc:StreetName>Keizersgracht 1</cbc:StreetName><cbc:CityName>Amsterdam</cbc:CityName><cbc:PostalZone>1015 CW</cbc:PostalZone><!-- cac:Country missing --></cac:PostalAddress></cac:Party></cac:AccountingSupplierParty>
<cac:AccountingSupplierParty><cac:Party><cac:PostalAddress><cbc:StreetName>Keizersgracht 1</cbc:StreetName><cbc:CityName>Amsterdam</cbc:CityName><cbc:PostalZone>1015 CW</cbc:PostalZone><cac:Country><cbc:IdentificationCode>NL</cbc:IdentificationCode></cac:Country></cac:PostalAddress></cac:Party></cac:AccountingSupplierParty>
Die Reihenfolge ist Teil der Regel: steht das Element an der falschen Stelle, lehnt der Validator mit cvc-complex-type.2.4.b ab.