Error codes · xsd
cvc-complex-type.2.4.dIn your invoicing software
Unexpected child element in invoice XML
This is the rejection, word for word: „[cvc-complex-type.2.4.d] cvc-complex-type.2.4.d is an XSD schema-validation error raised by Xerces-based parsers when the invoice contains an element the schema does not allow at that position. The parser has finished accepting the declared children for the current parent and encountered one more element it was not expecting.“
What to have readyNothing. The file has to be re-exported from your invoicing software; we check it again afterwards.
What we doIdentify the offending element, compare the parent against the schema content model, and either remove, reorder, or restructure the generator output.
If you enter it yourself in your invoicing software
Before
<cac:InvoiceLine><cbc:ID>1</cbc:ID><cbc:InvoicedQuantity unitCode="EA">1</cbc:InvoicedQuantity><cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount><cac:Item><cbc:Name>Widget</cbc:Name></cac:Item><cac:Price><cbc:PriceAmount currencyID="EUR">100.00</cbc:PriceAmount></cac:Price><cbc:Note>Extra note added after Price</cbc:Note></cac:InvoiceLine>
After
<cac:InvoiceLine><cbc:ID>1</cbc:ID><cbc:Note>Extra note added after Price</cbc:Note><cbc:InvoicedQuantity unitCode="EA">1</cbc:InvoicedQuantity><cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount><cac:Item><cbc:Name>Widget</cbc:Name></cac:Item><cac:Price><cbc:PriceAmount currencyID="EUR">100.00</cbc:PriceAmount></cac:Price></cac:InvoiceLine>
What the finding looks likeExample
FindingStructure invalid · cvc-complex-type.2.4.d
From youA re-exported file
ThenRe-export
ProofSHA-256 and /verify link after the check