Invoice hashing errors

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

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