# Error in SDK tool kit while Validating B2C XML

**URL:** <https://zatca1.discourse.group/t/error-in-sdk-tool-kit-while-validating-b2c-xml/6471>\
**Category:** QR code\
**Created:** [April 8, 2025, 8:46am UTC](https://zatca1.discourse.group/t/error-in-sdk-tool-kit-while-validating-b2c-xml/6471 "2025-04-08T08:46:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![juhisomaya](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@juhisomaya](https://zatca1.discourse.group/u/juhisomaya)\
**Post date:** [April 8, 2025, 8:46am UTC](https://zatca1.discourse.group/t/error-in-sdk-tool-kit-while-validating-b2c-xml/6471/1 "2025-04-08T08:46:01Z")

</div>

While Validating a B2C XML via the latest SDK toolkit, we are facing the below error:

2025-04-04 18:52:16,905 [ERROR] ValidationProcessorImpl - CODE : QRCODE\_INVALID, MESSAGE : Invalid QR code format, Please follow the ZATCA QR code specifications  
2025-04-04 18:52:16,905 [ERROR] InvoiceValidationService - failed to validate invoice - Illegal base64 character a

While validating the QR code, the same seems to be valid and consists of all valid characters. We are able to scan it via the Zatca app and read the content.  
How do we validate as to what is the exact issue in the QR code.

Additionally, how do we identify where the illegal character in the XML is.

Awaiting your revert.

Would appreciate a quick response.

Thanks.

---

<div class="post-metadata">

**Author:** ![Aturkistani](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Aturkistani](https://zatca1.discourse.group/u/Aturkistani)\
**Post date:** [April 8, 2025, 9:14am UTC](https://zatca1.discourse.group/t/error-in-sdk-tool-kit-while-validating-b2c-xml/6471/2 "2025-04-08T09:14:11Z")

</div>

Dear @juhisomaya,

Would you please share an XML sample that returns this specific response?

To investigate this situation furtherly, we appreciate it if you would like to send it to SP\_Support@zatca.gov.sa with the following details:

1-which SDK type & version that you are using + the interaction method (CLI or DLL, JAR integration).

2- the API response from ZATCA’s side when sending the invoice, if the invoice is accepted then please share the full API request also.

Regards,
