# Invoice hashing errors

**URL:** <https://zatca1.discourse.group/t/invoice-hashing-errors/2072>\
**Category:** General\
**Created:** [July 25, 2024, 1:51pm UTC](https://zatca1.discourse.group/t/invoice-hashing-errors/2072 "2024-07-25T13:51:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nader\_makki](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@nader\_makki](https://zatca1.discourse.group/u/nader_makki)\
**Post date:** [July 25, 2024, 1:51pm UTC](https://zatca1.discourse.group/t/invoice-hashing-errors/2072/1 "2024-07-25T13:51:28Z")

</div>

I am using .NET environment and ZATCA SDK and simulation portal

When Send request to invoice compliance I got this error in response

> {  
> “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”: “invalid-invoice-hash”,  
> “category”: “INVOICE\_HASHING\_ERRORS”,  
> “message”: “The invoice hash API body does not match the (calculated) Hash of the XML”,  
> “status”: “ERROR”  
> }  
> ],  
> “status”: “ERROR”  
> },  
> “reportingStatus”: “NOT\_REPORTED”,  
> “clearanceStatus”: null,  
> “qrSellertStatus”: null,  
> “qrBuyertStatus”: null  
> }

Kindly help to resolve this problem

---

<div class="post-metadata">

**Author:** ![Embro](https://avatars.discourse-cdn.com/v4/letter/e/bc79bd/32.png) [@Embro](https://zatca1.discourse.group/u/Embro)\
**Post date:** [July 28, 2024, 11:15am UTC](https://zatca1.discourse.group/t/invoice-hashing-errors/2072/2 "2024-07-28T11:15:48Z")

</div>

after hashing  
your are signing the XML & insert sign & Qr

when you do this any space added or removed will cause this error  
so as advice “if you don’t discover the error” remove spaces from your xml  
something like " …\</cac:Item\>cac:Price\<cbc:PriceAmount currencyID=“SAR”\>0\</cbc:PriceAmount\>cbc:BaseQuantity1\</cbc:BaseQuantity\>\</cac:Price\>\</cac:InvoiceLine\>"  
and try again
