# Help with errors

**URL:** <https://zatca1.discourse.group/t/help-with-errors/7593>\
**Category:** Signing process\
**Created:** [July 6, 2025, 8:18am UTC](https://zatca1.discourse.group/t/help-with-errors/7593 "2025-07-06T08:18:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aman](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@aman](https://zatca1.discourse.group/u/aman)\
**Post date:** [July 6, 2025, 8:18am UTC](https://zatca1.discourse.group/t/help-with-errors/7593/1 "2025-07-06T08:18:55Z")

</div>

Hi everyone,. Salam I hope everyone is doing well and good! Below are the errors i am facing when tried the web validator and two errros are returnign from API invalid-invoice-hashing and signed-properties-hashing

> ## Errors
> 
> - **category :** QR\_CODE\_ERROR
> 
> - \*\*code :\*\*hashedXml
> 
> - **message :** hashedXml does not match with qr code hashedXml or the hashedXml is missing
> 
> - **category :** SIGNATURE\_ERROR
> 
> - \*\*code :\*\*invoiceSignedDataDigestValue
> 
> - **message :** wrong invoice hashing
> 
> - **category :** SIGNATURE\_ERROR
> 
> - \*\*code :\*\*xadesSignedPropertiesDigestValue
> 
> - **message :** wrong xadesSignedPropertiesDigestValue
> 
> - **category :** SIGNATURE\_ERROR
> 
> - \*\*code :\*\*X509IssuerName
> 
> - **message :** wrong X509IssuerName
> 
> - **category :** SIGNATURE\_ERROR
> 
> - \*\*code :\*\*X509SerialNumber
> 
> - **message :** wrong X509SerialNumber
> 
> - **category :** SIGNATURE\_ERROR
> 
> - \*\*code :\*\*signatureValue
> 
> - **message :** wrong signature Value

```auto
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"><ext:UBLExtensions>
    <ext:UBLExtension>
        <ext:ExtensionURI>urn:oasis:names:specification:ubl:dsig:enveloped:xades</ext:ExtensionURI>
        <ext:ExtensionContent>
            <sig:UBLDocumentSignatures
                    xmlns:sac="urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2"
                    xmlns:sbc="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2"
                    xmlns:sig="urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2">
                <sac:SignatureInformation>
                    <cbc:ID>urn:oasis:names:specification:ubl:signature:1</cbc:ID>
                    <sbc:ReferencedSignatureID>urn:oasis:names:specification:ubl:signature:Invoice</sbc:ReferencedSignatureID>
                    <ds:Signature Id="signature" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
                        <ds:SignedInfo>
                            <ds:CanonicalizationMethod
                                    Algorithm="http://www.w3.org/2006/12/xml-c14n11">
                            </ds:CanonicalizationMethod>
                            <ds:SignatureMethod
                                    Algorithm="http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256">
                            </ds:SignatureMethod>
                            <ds:Reference Id="invoiceSignedData" URI="">
                                <ds:Transforms>
                                    <ds:Transform
                                            Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
                                        <ds:XPath>not(//ancestor-or-self::ext:UBLExtensions)</ds:XPath>
                                    </ds:Transform>
                                    <ds:Transform
                                            Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
                                        <ds:XPath>not(//ancestor-or-self::cac:Signature)</ds:XPath>
                                    </ds:Transform>
                                    <ds:Transform
                                            Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
                                        <ds:XPath>not(//ancestor-or-self::cac:AdditionalDocumentReference[cbc:ID='QR'])</ds:XPath>
                                    </ds:Transform>
                                    <ds:Transform
                                            Algorithm="http://www.w3.org/2006/12/xml-c14n11"/>
                                </ds:Transforms>
                                <ds:DigestMethod
                                        Algorithm="http://www.w3.org/2001/04/xmlenc#sha256">
                                </ds:DigestMethod>
                                <ds:DigestValue>Rusw0zeWDW/pH/VRkQNCiKWNxUZUC6iaKXJk8a5vHaY=</ds:DigestValue>
                            </ds:Reference>
                            <ds:Reference
                                    Type="http://www.w3.org/2000/09/xmldsig#SignatureProperties"
                                    URI="#xadesSignedProperties">
                                <ds:DigestMethod
                                        Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
                                <ds:DigestValue>YmE0MjFkZTAzZjQ0ZTc5ZjMxNmEzOGVkM2JhNzc5YTM5YWM5MzhlNWEyMmZhN2U4Y2EyYWM3YjgxZGE5ZWNkNg==</ds:DigestValue>
                            </ds:Reference>
                        </ds:SignedInfo>
                        <ds:SignatureValue>MEUCIQDSyttVTakjFLCdq3L0OOVjdYMxpLPhF5yPSRI9I/5i4QIgT3Q9NJbeq8q1SrPVxY4UIyoY9Tf1Mm6mCe/WkY1RVGM=</ds:SignatureValue>
                        <ds:KeyInfo>
                            <ds:X509Data>
                                <ds:X509Certificate>MIIE5zCCBI6gAwIBAgITEwAAcuSVP9H4d0MMiwABAABy5DAKBggqhkjOPQQDAjBiMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxEzARBgoJkiaJk/IsZAEZFgNnb3YxFzAVBgoJkiaJk/IsZAEZFgdleHRnYXp0MRswGQYDVQQDExJQRVpFSU5WT0lDRVNDQTItQ0EwHhcNMjUwNzAxMDg1MjEwWhcNMjcwNzAxMDkwMjEwWjBCMQswCQYDVQQGEwJTQTEPMA0GA1UEChMGS2hhdGVtMQ8wDQYDVQQLEwZLaGF0ZW0xETAPBgNVBAMTCEtVQUdDSlozMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEryXYewuqNq9wltKDiPUFsirQoUTP1apddegei9eKw/DrJpZfLpdEpqlIrFmnK5WcziJIZfPZzBrQ6VX+pTFR06OCA0QwggNAMIGuBgNVHREEgaYwgaOkgaAwgZ0xRjBEBgNVBAQMPTEtVGlqYXJhaDM2MHwyLUFuZHJvaWR8My1lNGRjN2M1YS0wZTQwLTQzOGMtOWU5Ny05MTg4Y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c7ofFSB17gIgU1eLsbwpm86o2jDmj+Vcr2nOC23aAX0gd8CuVALWf7E=</ds:X509Certificate>
                            </ds:X509Data>
                        </ds:KeyInfo>
                        <ds:Object>
                            <xades:QualifyingProperties Target="signature"
                                                        xmlns:xades="http://uri.etsi.org/01903/v1.3.2#">
                                <xades:SignedProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Id="xadesSignedProperties">
<xades:SignedSignatureProperties>
<xades:SigningTime>2025-07-04T20:10:51Z</xades:SigningTime>
<xades:SigningCertificate>
<xades:Cert>
<xades:CertDigest>
<ds:DigestMethod xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
<ds:DigestValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">ZjYyOTcxMTg0NDllMmI1YjRmNzFiYjVmOWI5NzI5OGMxZTI0NzFjMzJhYzVjMGM2MjAwMzkwMjc5Y2I1NDAxNg==</ds:DigestValue>
</xades:CertDigest>
<xades:IssuerSerial>
<ds:X509IssuerName xmlns:ds="http://www.w3.org/2000/09/xmldsig#">CN=PEZEINVOICESCA2-CA, DC=extgazt, DC=gov, DC=local</ds:X509IssuerName>
<ds:X509SerialNumber xmlns:ds="http://www.w3.org/2000/09/xmldsig#">423714311490944178303455209438391416985252580</ds:X509SerialNumber>
</xades:IssuerSerial>
</xades:Cert>
</xades:SigningCertificate>
</xades:SignedSignatureProperties>
</xades:SignedProperties>
                            </xades:QualifyingProperties>
                        </ds:Object>
                    </ds:Signature>
                </sac:SignatureInformation>
            </sig:UBLDocumentSignatures>
        </ext:ExtensionContent>
    </ext:UBLExtension></ext:UBLExtensions>
    
    <cbc:ProfileID>reporting:1.0</cbc:ProfileID>
    <cbc:ID>KUAGCJZ3072513</cbc:ID>
    <cbc:UUID>e4dc7c5a-0e40-438c-9e97-9188bf1d0319</cbc:UUID>
    <cbc:IssueDate>2025-07-03</cbc:IssueDate>
    <cbc:IssueTime>21:47:42</cbc:IssueTime>
    <cbc:InvoiceTypeCode name="0211010">388</cbc:InvoiceTypeCode>
    <cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
    <cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>
    
    <cac:AdditionalDocumentReference>
        <cbc:ID>ICV</cbc:ID>
        <cbc:UUID>13</cbc:UUID>
    </cac:AdditionalDocumentReference>
    <cac:AdditionalDocumentReference>
        <cbc:ID>PIH</cbc:ID>
        <cac:Attachment>
            <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">PE7ArvaINvQOWkMUe2NPvEMMzGRDiVRUYDHHY5oT9Oo=</cbc:EmbeddedDocumentBinaryObject>
        </cac:Attachment>
    </cac:AdditionalDocumentReference>
    <cac:AdditionalDocumentReference>
        <cbc:ID>QR</cbc:ID>
        <cac:Attachment>
            <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">AQZLaGF0ZW0CDzMxMTQ2MzkzMDIwMDAwMwMTMjAyNS0wNy0wM1QyMTo0Nzo0MgQENS40OQUEMC43MQYsUnVzdzB6ZVdEVy9wSC9WUmtRTkNpS1dOeFVaVUM2aWFLWEprOGE1dkhhWT0HYE1FVUNJUURTeXR0VlRha2pGTENkcTNMME9PVmpkWU14cExQaEY1eVBTUkk5SS81aTRRSWdUM1E5TkpiZXE4cTFTclBWeFk0VUl5b1k5VGYxTW02bUNlL1drWTFSVkdNPQhYMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEryXYewuqNq9wltKDiPUFsirQoUTP1apddegei9eKw/DrJpZfLpdEpqlIrFmnK5WcziJIZfPZzBrQ6VX+pTFR0wlGMEQCIFRX3Se5I1CLXYKtqcSCsI4GwQwYCsAab9tzuh8VIHXuAiBTV4uxvCmbzqjaMOaP5Vyvac4LbdoBfSB3wK5UAtZ/sQ==</cbc:EmbeddedDocumentBinaryObject>
        </cac:Attachment>
    </cac:AdditionalDocumentReference>
    <cac:Signature>
        <cbc:ID>urn:oasis:names:specification:ubl:signature:Invoice</cbc:ID>
        <cbc:SignatureMethod>urn:oasis:names:specification:ubl:dsig:enveloped:xades</cbc:SignatureMethod>
    </cac:Signature>
    <cac:AccountingSupplierParty>
    <cac:Party>
      <cac:PartyIdentification>
        <cbc:ID schemeID="CRN">43058524833</cbc:ID>
      </cac:PartyIdentification>
      <cac:PostalAddress>
        <cbc:StreetName>Hara</cbc:StreetName>
        <cbc:BuildingNumber>45212</cbc:BuildingNumber>
        <cbc:PlotIdentification>2132343</cbc:PlotIdentification>
        <cbc:CitySubdivisionName></cbc:CitySubdivisionName>
        <cbc:CityName>Riyadh</cbc:CityName>
        <cbc:PostalZone>14512</cbc:PostalZone>
        <cac:Country>
          <cbc:IdentificationCode>SA</cbc:IdentificationCode>
        </cac:Country>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <cbc:CompanyID>311463930200003</cbc:CompanyID>
        <cac:TaxScheme>
          <cbc:ID>VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:PartyTaxScheme>
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>Khatem</cbc:RegistrationName>
      </cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingSupplierParty>
          <cac:AccountingCustomerParty>
            <cac:Party>
                <cac:PartyLegalEntity>
                    <cbc:RegistrationName>Demo Customer</cbc:RegistrationName>
                </cac:PartyLegalEntity>
            </cac:Party>
        </cac:AccountingCustomerParty>

<cac:TaxTotal>
    <cbc:TaxAmount currencyID="SAR">0.71</cbc:TaxAmount>
    <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="SAR">4.78</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="SAR">0.71</cbc:TaxAmount>
        <cac:TaxCategory>
            <cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">S</cbc:ID>
            <cbc:Percent>15.00</cbc:Percent>
            <cac:TaxScheme>
                <cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:TaxCategory>
    </cac:TaxSubtotal>
</cac:TaxTotal>

<cac:TaxTotal>
    <cbc:TaxAmount currencyID="SAR">0.71</cbc:TaxAmount>
</cac:TaxTotal>

<cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="SAR">4.78</cbc:LineExtensionAmount>
    <cbc:TaxExclusiveAmount currencyID="SAR">4.78</cbc:TaxExclusiveAmount>
    <cbc:TaxInclusiveAmount currencyID="SAR">5.49</cbc:TaxInclusiveAmount>
    <cbc:AllowanceTotalAmount currencyID="SAR">0</cbc:AllowanceTotalAmount>
    <cbc:PrepaidAmount currencyID="SAR">0</cbc:PrepaidAmount>
    <cbc:PayableAmount currencyID="SAR">5.49</cbc:PayableAmount>
</cac:LegalMonetaryTotal>

<cac:InvoiceLine>
    <cbc:ID>121324</cbc:ID>
    <cbc:InvoicedQuantity unitCode="PCE">1</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="SAR">4.78</cbc:LineExtensionAmount>
    <cac:TaxTotal>
        <cbc:TaxAmount currencyID="SAR">0.71</cbc:TaxAmount>
        <cbc:RoundingAmount currencyID="SAR">5.49</cbc:RoundingAmount>
    </cac:TaxTotal>
    <cac:Item>
        <cbc:Name>0.5gm</cbc:Name>
        <cac:ClassifiedTaxCategory>
            <cbc:ID>S</cbc:ID>
            <cbc:Percent>15.00</cbc:Percent>
            <cac:TaxScheme>
                <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price>
        <cbc:PriceAmount currencyID="SAR">4.78</cbc:PriceAmount>
    </cac:Price>
</cac:InvoiceLine>

</Invoice>

```

---

<div class="post-metadata">

**Author:** ![sohbisoft](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/sohbisoft/32/1048_2.png) [@sohbisoft](https://zatca1.discourse.group/u/sohbisoft)\
**Post date:** [July 7, 2025, 12:25pm UTC](https://zatca1.discourse.group/t/help-with-errors/7593/2 "2025-07-07T12:25:45Z")

</div>

وعليكم السلام  
This error indicates that the hash value embedded in the QR code (stored in the EmbeddedDocumentBinaryObject under cac:AdditionalDocumentReference with cbc:ID = “QR”) does not match the actual hash of the XML invoice content after applying the required transformations. ZATCA requires the QR code to contain a Base64-encoded TLV (Tag-Length-Value) structure that includes the hash of the canonicalized invoice XML

---

<div class="post-metadata">

**Author:** ![Ankit.K.Tiwari](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Ankit.K.Tiwari](https://zatca1.discourse.group/u/Ankit.K.Tiwari)\
**Post date:** [July 7, 2025, 12:29pm UTC](https://zatca1.discourse.group/t/help-with-errors/7593/3 "2025-07-07T12:29:42Z")

</div>

@aman please check below posts:

The error received from the web-based validator is related to the signature error category, which is due to the difference between the X.509 certificate (PCSID) that you have signed your simplified e-invoice with and the x.509 certificate that is being used in the validation.

The web-based validator has a default certificate in the back-end which differs from the one that you obtained during the API onboarding process, so receiving a signature error while validating a signed simplified tax e-invoice using the web-based validator is a normal behavior, so please don’t worry about this specific error & rely on the API response

> [@Validate EInvoice Signature \[Failed\]](https://zatca1.discourse.group/t/validate-einvoice-signature-failed/1865):
>
> I am using .NET SDK to sign B2C invoice, but it’s showing error as ‘Validate EInvoice Signature [Failed]’. But I checked certificate contents and couldn’t find the problem. Below is my certificate content: MIICjDCCAjGgAwIBAgIGAY/j/FVlMAoGCCqGSM49BAMCMBUxEzARBgNVBAMMCmVJbnZvaWNpbmcwHhcNMjQwNjA0MTYwMTUxWhcNMjkwNjAzMjEwMDAwWjCBnzELMAkGA1UEBhMCU0ExEzARBgNVBAsMCjExMzEwMTUxMDQxJTAjBgNVBAoMHFNBS0FLSVIgQU5EIEFEQU0gVFJBRElORyBDTy4xDTALBgNVBAMMBFJJVFMxFzAVBgoJkiaJk/IsZAEZFgdleHRnYXp0MRgwFgYDVQRhDA8zMTEy…

> [@WRONG SIGNATURE Error (B2C)](https://zatca1.discourse.group/t/wrong-signature-error-b2c/2405/5):
>
> Dear Moainatour validating Simplified Invoice on web-based validator will always show signature error as web validator validates using a certificate different from the one used for signing Simplified Invoice. Therefore, validating Simplified Invoice using web-based validator will give a certificate validation error which is an expected behavior. As you are aware, Simplified Invoices are not required to be shared in XML format with customer, therefore, customers are not expected to validate Simp…

---

<div class="post-metadata">

**Author:** ![Busaeed](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@Busaeed](https://zatca1.discourse.group/u/Busaeed)\
**Post date:** [July 7, 2025, 12:30pm UTC](https://zatca1.discourse.group/t/help-with-errors/7593/4 "2025-07-07T12:30:50Z")

</div>

> [@aman](#):
>
> eb validator and two errros

Have you used Fatoora to sign the invoice? I don’t think so.
