# Invoice hash is incorrect when signing the invoice and need to generate the hash again

**URL:** <https://zatca1.discourse.group/t/invoice-hash-is-incorrect-when-signing-the-invoice-and-need-to-generate-the-hash-again/3665>\
**Category:** Clearance and Reporting\
**Created:** [October 15, 2024, 1:33pm UTC](https://zatca1.discourse.group/t/invoice-hash-is-incorrect-when-signing-the-invoice-and-need-to-generate-the-hash-again/3665 "2024-10-15T13:33:20Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![eCloud](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/ecloud/32/629_2.png) [@eCloud](https://zatca1.discourse.group/u/eCloud)\
**Post date:** [October 17, 2024, 3:21pm UTC](https://zatca1.discourse.group/t/invoice-hash-is-incorrect-when-signing-the-invoice-and-need-to-generate-the-hash-again/3665/14 "2024-10-17T15:21:37Z")

</div>

@Hadi  
I agree with you, developers should look into this.

I also think this might be a bug, for documents with linearized XML. InvoiceS ignator seems to change the original Invoice structure of the document when saving the invoice and doesn’t recalculate the InvoiceHash when creating the Invoice Request and causes the InvoiceHash to be incorrect.

---

_[View the full topic](https://zatca1.discourse.group/t/invoice-hash-is-incorrect-when-signing-the-invoice-and-need-to-generate-the-hash-again/3665)._
