# Signing document SigningServiceImpl

**URL:** <https://zatca1.discourse.group/t/signing-document-signingserviceimpl/5465>\
**Category:** Signing process\
**Created:** [January 27, 2025, 10:56am UTC](https://zatca1.discourse.group/t/signing-document-signingserviceimpl/5465 "2025-01-27T10:56:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rushi1995](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@Rushi1995](https://zatca1.discourse.group/u/Rushi1995)\
**Post date:** [January 27, 2025, 10:56am UTC](https://zatca1.discourse.group/t/signing-document-signingserviceimpl/5465/1 "2025-01-27T10:56:14Z")

</div>

Dear ZATCA Team,

I am using the ZATCA SDK (zatca-einvoicing-sdk-Java-238-R3.3.9) and the `SigningServiceImpl` service to generate the signed XML document. I am trying to validate the same generated document on the [ZATCA Sandbox](https://sandbox.zatca.gov.sa/TestXML), but I am encountering the following errors when validating a simplified invoice:

### Errors:

- **Category:** SIGNATURE\_ERROR  
**Code:** invoiceSignedDataDigestValue  
**Message:** Incorrect invoice hashing.
- **Category:** SIGNATURE\_ERROR  
**Code:** signatureValue  
**Message:** Incorrect signature value.
- **Category:** QR\_CODE\_ERROR  
**Code:** hashedXml  
**Message:** The hashedXml does not match with the QR code’s hashedXml, or the hashedXml is missing.

Additionally, when I change the `cbc:InvoiceTypeCode` value to 0100000, the signed XML generates the following warning:

### Warning:

- **Category:** BR\_KSA\_WARNING  
**Code:** BR-KSA-15  
**Message:** The tax invoice (invoice type code (BT-30) = 388) and invoice code (KSA-2) must contain ‘01’ as the first two digits on the date of supply (KSA-5).

My question is: Why am I receiving these errors when using the SDK to generate the signed document? If I change the invoice type code to a standard invoice (0100000), it gets validated on the ZATCA site without issues.

Thank you for your assistance.
