B2C xadesSignedProperties Error

{“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”:“signed-properties-hashing”,“category”:“CERTIFICATE_ERRORS”,“message”:“Invalid signed properties hashing, SignedProperties with id=‘xadesSignedProperties’”,“status”:“ERROR”}],“status”:“ERROR”},“reportingStatus”:“NOT_REPORTED”}

<xades:SignedProperties Id=“xadesSignedProperties”>

xades:SignedSignatureProperties

xades:SigningTime2025-02-28T23:53:03Z</xades:SigningTime>

xades:SigningCertificate

xades:Cert

xades:CertDigest

<ds:DigestMethod Algorithm=“XML Encryption Syntax and Processing”/>

ds:DigestValueM2FmMjliZjdiODc5OTJkMjIyMzYyMDUwYThiNDNiODNlNWVkZmYyZTU3MWFjZjI3ZWM4MmMyNGMzMDA5NTJhZg==</ds:DigestValue>

</xades:CertDigest>

xades:IssuerSerial

ds:X509IssuerNameCN=PEZEINVOICESCA4-CA, DC=extgazt, DC=gov, DC=local</ds:X509IssuerName>

ds:X509SerialNumber2676089554267639865533957381521035607142326818</ds:X509SerialNumber>

</xades:IssuerSerial>

</xades:Cert>

</xades:SigningCertificate>

</xades:SignedSignatureProperties>

</xades:SignedProperties>

Morning @sureshsami

Thanks for reaching out, Welcome to our community.

To provide comprehensive support as usual, Kindly mention all the steps you followed from the beginning along with some screenshots to the end point that you are using with response?

Thanks,
Ibrahem Daoud.

Dear Sir,

Thank you for messaging us,We already resolved the issue. Please close the support request.

Regards
Suresh

@sureshsami
We’re currently facing the same issue and would really appreciate any insights. Could you explain how you managed to fix it? Any details or steps you followed would be helpful. Looking forward to your response !

Hello,

You should apply the following in the final invoice which is supposed to be sent to ZATCA for reporting , else it will raise the error. this will not happen in case of clearance.
(PHP)
$dom->loadXML($invoice);
$dom->preserveWhiteSpace = true;
$dom->formatOutput = true;