# Server returned an unexpected error: {"validationResults

**URL:** <https://zatca1.discourse.group/t/server-returned-an-unexpected-error-validationresults/4779>\
**Category:** General\
**Created:** [December 24, 2024, 8:05am UTC](https://zatca1.discourse.group/t/server-returned-an-unexpected-error-validationresults/4779 "2024-12-24T08:05:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![gccvat12](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gccvat12](https://zatca1.discourse.group/u/gccvat12)\
**Post date:** [December 24, 2024, 8:05am UTC](https://zatca1.discourse.group/t/server-returned-an-unexpected-error-validationresults/4779/1 "2024-12-24T08:05:04Z")

</div>

Hi,  
Facing below error signce yesterday, before there was no issue:

Server returned an unexpected error: {“validationResults”:{“infoMessages”:[{“type”:“INFO”,“code”:“XSD\_ZATCA\_VALID”,“category”:“XSD validation”,“message”:“Complied with UBL 2.1 standards in line with ZATCA specifications”,“status”:“PASS”}],“warningMessages”:,“errorMessages”:[{“type”:“ERROR”,“code”:“BR-KSA-39”,“category”:“KSA”,“message”:“The invoice must contain the seller VAT registration number (BT-31) and/or seller group VAT registration number (KSA-18).”,“status”:“ERROR”}],“status”:“ERROR”},“clearanceStatus”:“NOT\_CLEARED”,“clearedInvoice”:null}

---

<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 24, 2024, 8:17am UTC](https://zatca1.discourse.group/t/server-returned-an-unexpected-error-validationresults/4779/2 "2024-12-24T08:17:26Z")

</div>

Dear @gccvat12,

Thanks for reaching out.

The error BR-KSA-39 indicates that the invoice must include the seller’s VAT registration number (BT-31) or seller group VAT number as per the ZATCA XML standards attached below:

[20230519\_ZATCA\_Electronic\_Invoice\_XML\_Implementation\_Standard\_ vF.pdf](https://zatca.gov.sa/ar/E-Invoicing/SystemsDevelopers/Documents/20230519_ZATCA_Electronic_Invoice_XML_Implementation_Standard_%20vF.pdf)

To resolve this, please ensure your XML file contains the VAT registration number in the following structure:

```auto
<ubl:Invoice>
 <cac:AccountingSupplierParty>
 <cac:Party>
 <cac:PartyTaxScheme>
 <cbc:CompanyID>YOUR_VAT_REGISTRATION_NUMBER</cbc:CompanyID>
 </cac:PartyTaxScheme>
 </cac:Party>
 </cac:AccountingSupplierParty>
</ubl:Invoice>

```

After updating the XML, it is recommended to validate it in the ZATCA simulation portal before resubmitting the invoice.

Let us know if you need further support.

Best regards,

---

<div class="post-metadata">

**Author:** ![gccvat12](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gccvat12](https://zatca1.discourse.group/u/gccvat12)\
**Post date:** [December 24, 2024, 9:44am UTC](https://zatca1.discourse.group/t/server-returned-an-unexpected-error-validationresults/4779/3 "2024-12-24T09:44:54Z")

</div>

checked the xml, the VAT number is available there.

---

<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 24, 2024, 9:56am UTC](https://zatca1.discourse.group/t/server-returned-an-unexpected-error-validationresults/4779/4 "2024-12-24T09:56:29Z")

</div>

Dear @gccvat12,

Kindly can you share the XML file to investigate the error?

Thanks,

---

<div class="post-metadata">

**Author:** ![gccvat12](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gccvat12](https://zatca1.discourse.group/u/gccvat12)\
**Post date:** [December 25, 2024, 7:22am UTC](https://zatca1.discourse.group/t/server-returned-an-unexpected-error-validationresults/4779/5 "2024-12-25T07:22:56Z")

</div>

How we can send please

---

<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, 7:25am UTC](https://zatca1.discourse.group/t/server-returned-an-unexpected-error-validationresults/4779/6 "2024-12-25T07:25:11Z")

</div>

Dear @gccvat12,

Kindly share it to the SP support team as per below:

SP mail: [sp\_support@zatca.gov.sa](mailto:sp_support@zatca.gov.sa)

Thanks,

---

<div class="post-metadata">

**Author:** ![masalam](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@masalam](https://zatca1.discourse.group/u/masalam)\
**Post date:** [December 26, 2024, 6:17am UTC](https://zatca1.discourse.group/t/server-returned-an-unexpected-error-validationresults/4779/7 "2024-12-26T06:17:44Z")

</div>

We are facing a QR code issue where one out of every thousand invoices printed contains a QR code. that we correctly registered the seller VAT number

---

<div class="post-metadata">

**Author:** ![masalam](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@masalam](https://zatca1.discourse.group/u/masalam)\
**Post date:** [December 26, 2024, 6:17am UTC](https://zatca1.discourse.group/t/server-returned-an-unexpected-error-validationresults/4779/8 "2024-12-26T06:17:51Z")

</div>

> [@Lina-alrehaili1](#):
>
> [sp\_support@zatca.gov.sa](mailto:sp_support@zatca.gov.sa)

thanks for your update

---

<div class="post-metadata">

**Author:** ![iGaber](https://avatars.discourse-cdn.com/v4/letter/i/258eb7/32.png) [@iGaber](https://zatca1.discourse.group/u/iGaber)\
**Post date:** [January 21, 2025, 2:20pm UTC](https://zatca1.discourse.group/t/server-returned-an-unexpected-error-validationresults/4779/9 "2025-01-21T14:20:31Z")

</div>

Facing below error signce yesterday, before there was no issue:

Server returned an unexpected error: {“validationResults”:{“infoMessages”:[{“type”:“INFO”,“code”:“XSD\_ZATCA\_VALID”,“category”:“XSD validation”,“message”:“Complied with UBL 2.1 standards in line with ZATCA specifications”,“status”:“PASS”}],“warningMessages”:,“errorMessages”:[{“type”:“ERROR”,“code”:“BR-KSA-39”,“category”:“KSA”,“message”:“The invoice must contain the seller VAT registration number (BT-31) and/or seller group VAT registration number (KSA-18).”,“status”:“ERROR”}],“status”:“ERROR”},“clearanceStatus”:“NOT\_CLEARED”,“clearedInvoice”:null}

---

<div class="post-metadata">

**Author:** ![iGaber](https://avatars.discourse-cdn.com/v4/letter/i/258eb7/32.png) [@iGaber](https://zatca1.discourse.group/u/iGaber)\
**Post date:** [January 21, 2025, 2:22pm UTC](https://zatca1.discourse.group/t/server-returned-an-unexpected-error-validationresults/4779/10 "2025-01-21T14:22:14Z")

</div>

issue solved or not? we still face the same issue
