Invalid QR code While validate the invoice xml

steps i do is

1- generate basic invoice
2-GenerateInvoiceHash(xmlInvoice);

3-AddUBLExtensions(xmlInvoice, _hash.Hash, );

4- SignGeneratedInvoiceHash(updatedXml.OuterXml);

5-add hash to invoice

XmlNamespaceManager nsmgr = new XmlNamespaceManager(updatedXml.NameTable);
nsmgr.AddNamespace(“ext”, “urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2”);
nsmgr.AddNamespace(“sig”, “urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2”);
nsmgr.AddNamespace(“sac”, “urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2”);
nsmgr.AddNamespace(“ds”, “http://www.w3.org/2000/09/xmldsig#”);
XmlNodeList lst = updatedXml.SelectNodes(“//ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/sig:UBLDocumentSignatures/sac:SignatureInformation/ds:Signature/ds:SignedInfo/ds:Reference[@URI=‘#xadesSignedProperties’]/ds:DigestValue”, nsmgr);

XmlNode dig = lst[0];
dig.InnerText = _Fsign.Steps.Where(x=>x.StepName== “Populate Signed Signature Properties”).FirstOrDefault().ResultedValue;

XmlNode SignatureValue = updatedXml.GetElementsByTagName(“ds:SignatureValue”).Item(0);

SignatureValue.InnerText= _Fsign.Steps.Where(x => x.StepName == “Generate Signature”).FirstOrDefault().ResultedValue;

XmlNode KeyInfo = updatedXml.GetElementsByTagName(“ds:X509Certificate”).Item(0);

KeyInfo.InnerText = _Fsign.Steps.Where(x => x.StepName == “Parse Certificate”).FirstOrDefault().ResultedValue;

6- CreateAdditionalDocumentReferences(updatedXml.OuterXml,bill, _hash.Hash) which contain the QR Generation

7- Generate invoiceRequest

my generated XML


I got error in QR is invalid. Please advice me, what is the problem? I’m using SDK [zatca-einvoicing-sdk-DotNet-238-R3.4.5]

Hi API,

The rollback has been completed, and everything is working as expected now.

Please check now and let us know if you need any support.
Best regards,

thank you for your response but the error still returned to me ```
{
“errors”: [
{
“code”: “”,
“message”: “ZATCA Invoice Compliance API returned error: BadRequest - {"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":"QRCODE_INVALID","category":"QRCODE_VALIDATION","message":"Failed to validate QR code","status":"ERROR"}],"status":"ERROR"},"reportingStatus":"NOT_REPORTED","clearanceStatus":null,"qrSellertStatus":null,"qrBuyertStatus":null}”
}
]
}

Dear Fatoora team , please, I need help in this issue i have been wait for long time to know what is the problem please i need help pass this error thank you