XML validation error when adding tags for terms and conditions

Hello,

We added extra tags in our xml file for terms & conditions and bank IBAN info but we are receiving this error.

XSD validation: Schema validation failed; XML does not comply with UBL 2.1 standards in line with ZATCA specifications. ERROR: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 7212; cvc-complex-type.2.4.a: Invalid content was found starting with element ‘{“urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2”:VendBankAccountDetails}’. One of ‘{“urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2”:InvoiceLine}’ is expected.

Issue doesn’t happen when removing these tags

Dear @atajjo,

Thank you for reaching out.

Based on the error message, it seems that the additional tags does not align with UBL 2.1 standards.

Here are some suggestions you might consider:

1. Update Tags Placement:
• For IBAN details, you could try placing them under :

<PaymentMeans>
 <PayeeFinancialAccount>
 <ID>SA1234567890123456789012</ID>
 </PayeeFinancialAccount>
</PaymentMeans>

• For terms & conditions, consider adding them under :

<cbc:Note>Terms and conditions apply.</cbc:Note>

2. Validate the XML File:

3. Test Submission:
After making these adjustments, I recommend resubmitting the XML file to see if the issue is resolved.

Full details of UBL 2.1 standards and its data dictionary can be found below:

E-Invoice specifications

Please let me know how it goes or if further support is needed.

Best regards,

Hello @Lina-alrehaili1 ,

It seems that adding info under existing tags works.

However, ID tag doesn’t actually exist under PayeeFinancialAccount; so I will use PaymentNote tag which does exist.

Thanks.

1 Like