Invalid signed properties hashing, SignedProperties with id='xadesSignedProperties' using Lastest version 3.3.5. .net 4.8 framework

i am using the latest sdk to sign the simplified invoice… but after signing the invoice and generating the xml and using the simualation reporting api. i am getting the below 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"
    },

and the signed invoice i am generating is generated directly using the latest SDK 3.3.5 version… earlier when i was using the 3.2.6 version i did not face any issue in this process. also the onboarding process was done using the earlier version, therefore i didnot get any errors while doing the complaince checks.

the below is the strucuture of the signed xml that i am receiving using the latest sdk, can u point out if the xml misses any value in it

<?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:sig="urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2" xmlns:sac="urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2" xmlns:sbc="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-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:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256" />
                            <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:DigestValue>5KhG5N00v2H4T0jBY4ZB+iWEBKofo+BU5WT3wqI4MnU=</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>MDkyYjhlOTMyNjVhMTU3YmViMDZkY2FmNDlmZjUzYjZmZDEwNWZhMTFkNGUwOTk1ZGYyNzBhYzJlOWQ2ZjdiNA==</ds:DigestValue>
                            </ds:Reference>
                        </ds:SignedInfo>
                        <ds:SignatureValue>MEUCIDT5/WPOI4SEE2j+wpWfRMHswfcM9PfXv47PwGmqVmg5AiEAx1c87m+bTriFgpeYAI0BMuIc4A5uZuPnQeEi98Q3n9M=</ds:SignatureValue>
                        <ds:KeyInfo>
                            <ds:X509Data>
                                <ds:X509Certificate>MIIE8zCCBJigAwIBAgITeAAASY8IuivLIe5CXAABAABJjzAKBggqhkjOPQQDAjBiMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxEzARBgoJkiaJk/IsZAEZFgNnb3YxFzAVBgoJkiaJk/IsZAEZFgdleHRnYXp0MRswGQYDVQQDExJQRVpFSU5WT0lDRVNDQTQtQ0EwHhcNMjQwODIyMDkwNjI0WhcNMjYwODIyMDkxNjI0WjBRMQswCQYDVQQGEwJTQTEWMBQGA1UEChMNT0xBWUEgQ09NUEFOWTETMBEGA1UECxMKMzAwMDU2NzY5MzEVMBMGA1UEAxMMMTkyLjE2OC4wLjEyMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEwrLyjn0EhYP95C/J3/WeP9I4MymoQOlNguhdE+LrqRzcDM3HqByQFNSEqz0Uha6YaGGKBBFHJtXLFcMfWD8C06OCAz8wggM7MIGpBgNVHREEgaEwgZ6kgZswgZgxPTA7BgNVBAQMNDEtREFYfDItVlRlc3R8My0zNDUwMzg0Qi00MTMyLTVBNDMtNEEzNS0zMTMxMzAzMDM5NDIxHzAdBgoJkiaJk/IsZAEBDA8zMDAwNTY3NjkzMDAwMDMxDTALBgNVBAwMBDExMDAxETAPBgNVBBoMCFJIWUEzNTU0MRQwEgYDVQQPDAtSZWFsIEVzdGF0ZTAdBgNVHQ4EFgQUPPlqaOivbCwB9NwLAJCJB2qQF6wwHwYDVR0jBBgwFoAUx8Dmt6ndEspPPW1ogpYhRfMBdaQwgeUGA1UdHwSB3TCB2jCB16CB1KCB0YaBzmxkYXA6Ly8vQ049UEVaRUlOVk9JQ0VTQ0E0LUNBKDEpLENOPVBSWkVJTlZPSUNFUEtJNCxDTj1DRFAsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz1leHR6YXRjYSxEQz1nb3YsREM9bG9jYWw/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdD9iYXNlP29iamVjdENsYXNzPWNSTERpc3RyaWJ1dGlvblBvaW50MIHOBggrBgEFBQcBAQSBwTCBvjCBuwYIKwYBBQUHMAKGga5sZGFwOi8vL0NOPVBFWkVJTlZPSUNFU0NBNC1DQSxDTj1BSUEsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz1leHR6YXRjYSxEQz1nb3YsREM9bG9jYWw/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwDgYDVR0PAQH/BAQDAgeAMDwGCSsGAQQBgjcVBwQvMC0GJSsGAQQBgjcVCIGGqB2E0PsShu2dJIfO+xnTwFVmgZzYLYPlxV0CAWQCARAwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMDMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwMwCgYIKoZIzj0EAwIDSQAwRgIhAL4lDCvwZNiswUiF/XG5R9MkE0PFgAWLss2UtpqNBdhuAiEA5nAXr76HyZnnAksmcMfi0rsQh4SNA0cNxHVqq5iTJok=</ds:X509Certificate>
                            </ds:X509Data>
                        </ds:KeyInfo>
                        <ds:Object>
                            <xades:QualifyingProperties Target="signature" xmlns:xades="http://uri.etsi.org/01903/v1.3.2#">
                                <xades:SignedProperties Id="xadesSignedProperties">
                                    <xades:SignedSignatureProperties>
                                        <xades:SigningTime>2024-10-09T16:41:49</xades:SigningTime>
                                        <xades:SigningCertificate>
                                            <xades:Cert>
                                                <xades:CertDigest>
                                                    <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
                                                    <ds:DigestValue>NTVmNWI2YWVjZDIxNDIxY2I5MTFiYmM5MmRmYWIyOWJjN2M2MGEyZjA5YzRiN2E1ZGMzNWZlOTVmYzIxY2QxZQ==</ds:DigestValue>
                                                </xades:CertDigest>
                                                <xades:IssuerSerial>
                                                    <ds:X509IssuerName>CN=PEZEINVOICESCA4-CA, DC=extgazt, DC=gov, DC=local</ds:X509IssuerName>
                                                    <ds:X509SerialNumber>2676089521599993929322109729006092560898214287</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>POS_Inv_15</cbc:ID>
  <cbc:UUID>7d56b674-ef6f-44ba-aa15-15ed3736f5a9</cbc:UUID>
  <cbc:IssueDate>2024-10-09</cbc:IssueDate>
  <cbc:IssueTime>04:41:00Z</cbc:IssueTime>
  <cbc:InvoiceTypeCode name="0200000">388</cbc:InvoiceTypeCode>
  <cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
  <cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>
  <cac:AdditionalDocumentReference>
    <cbc:ID>ICV</cbc:ID>
    <cbc:UUID>15</cbc:UUID>
  </cac:AdditionalDocumentReference>
  <cac:AdditionalDocumentReference>
    <cbc:ID>PIH</cbc:ID>
    <cac:Attachment>
      <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">ffLmjOiIemMUseTozxoA1XkyO600KPEXKD06M3YG5NI=</cbc:EmbeddedDocumentBinaryObject>
    </cac:Attachment>
  </cac:AdditionalDocumentReference>
  <cac:AdditionalDocumentReference>
        <cbc:ID>QR</cbc:ID>
        <cac:Attachment>
            <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">AQ1PTEFZQSBDT01QQU5ZAg8zMDAwNTY3NjkzMDAwMDMDEzIwMjQtMTAtMDlUMDc6NDE6MDAEBjEwNS4wMAUFMTMuNzAGLDVLaEc1TjAwdjJINFQwakJZNFpCK2lXRUJLb2ZvK0JVNVdUM3dxSTRNblU9B2BNRVVDSURUNS9XUE9JNFNFRTJqK3dwV2ZSTUhzd2ZjTTlQZlh2NDdQd0dtcVZtZzVBaUVBeDFjODdtK2JUcmlGZ3BlWUFJMEJNdUljNEE1dVp1UG5RZUVpOThRM245TT0IWDBWMBAGByqGSM49AgEGBSuBBAAKA0IABMKy8o59BIWD/eQvyd/1nj/SODMpqEDpTYLoXRPi66kc3AzNx6gckBTUhKs9FIWumGhhigQRRybVyxXDH1g/AtMJSDBGAiEAviUMK/Bk2KzBSIX9cblH0yQTQ8WABYuyzZS2mo0F2G4CIQDmcBevvofJmecCSyZwx+LSuxCHhI0DRw3EdWqrmJMmiQ==</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">4030121675</cbc:ID>
      </cac:PartyIdentification>
      <cac:PostalAddress>
        <cbc:StreetName>العليا</cbc:StreetName>
        <cbc:BuildingNumber>6356</cbc:BuildingNumber>
        <cbc:PlotIdentification>3910</cbc:PlotIdentification>
        <cbc:CitySubdivisionName>العليا</cbc:CitySubdivisionName>
        <cbc:CityName>الرياض | Riyadh</cbc:CityName>
        <cbc:PostalZone>13321</cbc:PostalZone>
        <cac:Country>
          <cbc:IdentificationCode>SA</cbc:IdentificationCode>
        </cac:Country>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <cbc:CompanyID>300056769300003</cbc:CompanyID>
        <cac:TaxScheme>
          <cbc:ID>VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:PartyTaxScheme>
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>OLAYA COMPANY</cbc:RegistrationName>
      </cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingSupplierParty>
  <cac:AccountingCustomerParty>
    <cac:Party>
      <cac:PostalAddress>
        <cbc:StreetName>العليا</cbc:StreetName>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <cac:TaxScheme>
          <cbc:ID>VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:PartyTaxScheme>
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>Farhan Fasih</cbc:RegistrationName>
      </cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingCustomerParty>
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="SAR">13.70</cbc:TaxAmount>
  </cac:TaxTotal>
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="SAR">13.70</cbc:TaxAmount>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="SAR">91.30</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="SAR">13.70</cbc:TaxAmount>
      <cac:TaxCategory>
        <cbc:ID schemeID="UN/ECE 5305" schemeAgencyID="6">S</cbc:ID>
        <cbc:Percent>15.00</cbc:Percent>
        <cac:TaxScheme>
          <cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:TaxCategory>
    </cac:TaxSubtotal>
  </cac:TaxTotal>
  <cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="SAR">91.30</cbc:LineExtensionAmount>
    <cbc:TaxExclusiveAmount currencyID="SAR">91.30</cbc:TaxExclusiveAmount>
    <cbc:TaxInclusiveAmount currencyID="SAR">105.00</cbc:TaxInclusiveAmount>
    <cbc:AllowanceTotalAmount currencyID="SAR">0.00</cbc:AllowanceTotalAmount>
    <cbc:PrepaidAmount currencyID="SAR">0.00</cbc:PrepaidAmount>
    <cbc:PayableAmount currencyID="SAR">105.00</cbc:PayableAmount>
  </cac:LegalMonetaryTotal>
  <cac:InvoiceLine>
    <cbc:ID>1</cbc:ID>
    <cbc:InvoicedQuantity unitCode="PCE">1</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="SAR">2.61</cbc:LineExtensionAmount>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="SAR">0.39</cbc:TaxAmount>
      <cbc:RoundingAmount currencyID="SAR">3.00</cbc:RoundingAmount>
    </cac:TaxTotal>
    <cac:Item>
      <cbc:Name>Pepsi</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">2.61</cbc:PriceAmount>
      <cac:AllowanceCharge>
        <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
        <cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
        <cbc:Amount currencyID="SAR">0</cbc:Amount>
      </cac:AllowanceCharge>
    </cac:Price>
  </cac:InvoiceLine>
  <cac:InvoiceLine>
    <cbc:ID>2</cbc:ID>
    <cbc:InvoicedQuantity unitCode="PCE">1</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="SAR">15.65</cbc:LineExtensionAmount>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="SAR">2.35</cbc:TaxAmount>
      <cbc:RoundingAmount currencyID="SAR">18.00</cbc:RoundingAmount>
    </cac:TaxTotal>
    <cac:Item>
      <cbc:Name>Veg Biryani</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">15.65</cbc:PriceAmount>
      <cac:AllowanceCharge>
        <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
        <cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
        <cbc:Amount currencyID="SAR">0</cbc:Amount>
      </cac:AllowanceCharge>
    </cac:Price>
  </cac:InvoiceLine>
  <cac:InvoiceLine>
    <cbc:ID>3</cbc:ID>
    <cbc:InvoicedQuantity unitCode="PCE">4</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="SAR">73.04</cbc:LineExtensionAmount>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="SAR">10.96</cbc:TaxAmount>
      <cbc:RoundingAmount currencyID="SAR">84.00</cbc:RoundingAmount>
    </cac:TaxTotal>
    <cac:Item>
      <cbc:Name>Supreme Veg Biryani Pack</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">18.26</cbc:PriceAmount>
      <cac:AllowanceCharge>
        <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
        <cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
        <cbc:Amount currencyID="SAR">0</cbc:Amount>
      </cac:AllowanceCharge>
    </cac:Price>
  </cac:InvoiceLine>
</Invoice>

if u could help me out in this regard it will be very help.

Can you please share the code of Signing?

1 Like

Dear @Mudassir

Thank you for reaching out and welcome to the community.

Kindly note that your invoice is not compliant with XML implementation standards, please refer to E-Invoice specifications for the XML implantation standards and Data Dictionary.

Thank you.

1 Like

Thank u for ur reply, can u please specify which part of my xml is not complaint with the standards?

@Mudassir
Modify this and try.

<Invoice 
xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" 
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" 
xmlns:ccts="urn:un:unece:uncefact:documentation:2" 
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" 
xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" 
xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" 
xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2"
>

@Mudassir

I dont see any error in your eInvoice,

"message": "Complied with UBL 2.1 standards in line with ZATCA specifications",

that mean your invoice is OK.

About signed-properties-hashing, your Diggest Value is Good

Enter X509CertificateContent:
MIIE8zCCBJigAwIBAgITeAAASY8IuivLIe5CXAABAABJjzAKBggqhkjOPQQDAjBiMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxEzARBgoJkiaJk/IsZAEZFgNnb3YxFzAVBgoJkiaJk/IsZAEZFgdleHRnYXp0MRswGQYDVQQDExJQRVpFSU5WT0lDRVNDQTQtQ0EwHhcNMjQwODIyMDkwNjI0WhcNMjYwODIyMDkxNjI0WjBRMQswCQYDVQQGEwJTQTEWMBQGA1UEChMNT0xBWUEgQ09NUEFOWTETMBEGA1UECxMKMzAwMDU2NzY5MzEVMBMGA1UEAxMMMTkyLjE2OC4wLjEyMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEwrLyjn0EhYP95C/J3/WeP9I4MymoQOlNguhdE+LrqRzcDM3HqByQFNSEqz0Uha6YaGGKBBFHJtXLFcMfWD8C06OCAz8wggM7MIGpBgNVHREEgaEwgZ6kgZswgZgxPTA7BgNVBAQMNDEtREFYfDItVlRlc3R8My0zNDUwMzg0Qi00MTMyLTVBNDMtNEEzNS0zMTMxMzAzMDM5NDIxHzAdBgoJkiaJk/IsZAEBDA8zMDAwNTY3NjkzMDAwMDMxDTALBgNVBAwMBDExMDAxETAPBgNVBBoMCFJIWUEzNTU0MRQwEgYDVQQPDAtSZWFsIEVzdGF0ZTAdBgNVHQ4EFgQUPPlqaOivbCwB9NwLAJCJB2qQF6wwHwYDVR0jBBgwFoAUx8Dmt6ndEspPPW1ogpYhRfMBdaQwgeUGA1UdHwSB3TCB2jCB16CB1KCB0YaBzmxkYXA6Ly8vQ049UEVaRUlOVk9JQ0VTQ0E0LUNBKDEpLENOPVBSWkVJTlZPSUNFUEtJNCxDTj1DRFAsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz1leHR6YXRjYSxEQz1nb3YsREM9bG9jYWw/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdD9iYXNlP29iamVjdENsYXNzPWNSTERpc3RyaWJ1dGlvblBvaW50MIHOBggrBgEFBQcBAQSBwTCBvjCBuwYIKwYBBQUHMAKGga5sZGFwOi8vL0NOPVBFWkVJTlZPSUNFU0NBNC1DQSxDTj1BSUEsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz1leHR6YXRjYSxEQz1nb3YsREM9bG9jYWw/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwDgYDVR0PAQH/BAQDAgeAMDwGCSsGAQQBgjcVBwQvMC0GJSsGAQQBgjcVCIGGqB2E0PsShu2dJIfO+xnTwFVmgZzYLYPlxV0CAWQCARAwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMDMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwMwCgYIKoZIzj0EAwIDSQAwRgIhAL4lDCvwZNiswUiF/XG5R9MkE0PFgAWLss2UtpqNBdhuAiEA5nAXr76HyZnnAksmcMfi0rsQh4SNA0cNxHVqq5iTJok=

Enter Signature TimeStamp ["yyyy-MM-dd'T'HH:mm:ss"]: 
2024-10-09T16:41:49

Issuer Name: CN=PEZEINVOICESCA4-CA, DC=extgazt, DC=gov, DC=local
Serial Number: 2676089521599993929322109729006092560898214287
Signed Properties Hash: MDkyYjhlOTMyNjVhMTU3YmViMDZkY2FmNDlmZjUzYjZmZDEwNWZhMTFkNGUwOTk1ZGYyNzBhYzJlOWQ2ZjdiNA==

Posible error is in your certificate, try creating csr and privatekey using SDK.
Replace VAT Number with your VatNumber in csr-config-example-EN.properties from SDK

Even after modifying the Invoice tag i am getting the same error of Invalid signed properties hashing, SignedProperties with id='xadesSignedProperties.

is there any other part in my xml that i am not generating as per the standards

I Have created the CSR and private Key using the openssl commands. is it because of that we are facing the issue. i mean i have followed the exact step by step rules mentioned in the documentation provided by zatca.

@Mudassir did you fix this problem ?
if yes can you tell me how ?

Yes we were able to fix the problem thanks to help from @Ather
this was the solution i followed and was able to resolve the issue