# XML validation error when adding tags for terms and conditions

**URL:** <https://zatca1.discourse.group/t/xml-validation-error-when-adding-tags-for-terms-and-conditions/4788>\
**Category:** General\
**Created:** [December 25, 2024, 7:03am UTC](https://zatca1.discourse.group/t/xml-validation-error-when-adding-tags-for-terms-and-conditions/4788 "2024-12-25T07:03:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![atajjo](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@atajjo](https://zatca1.discourse.group/u/atajjo)\
**Post date:** [December 25, 2024, 7:03am UTC](https://zatca1.discourse.group/t/xml-validation-error-when-adding-tags-for-terms-and-conditions/4788/1 "2024-12-25T07:03:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Lina-alrehaili1](https://avatars.discourse-cdn.com/v4/letter/l/58f4c7/32.png) [@Lina-alrehaili1](https://zatca1.discourse.group/u/Lina-alrehaili1)\
**Post date:** [December 25, 2024, 8:02am UTC](https://zatca1.discourse.group/t/xml-validation-error-when-adding-tags-for-terms-and-conditions/4788/2 "2024-12-25T08:02:09Z")

</div>

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 :

```auto
<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](https://zatca.gov.sa/en/E-Invoicing/SystemsDevelopers/Pages/E-Invoice-specifications.aspx)

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

Best regards,

---

<div class="post-metadata">

**Author:** ![atajjo](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@atajjo](https://zatca1.discourse.group/u/atajjo)\
**Post date:** [December 26, 2024, 6:18am UTC](https://zatca1.discourse.group/t/xml-validation-error-when-adding-tags-for-terms-and-conditions/4788/3 "2024-12-26T06:18:24Z")

</div>

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.
