QR Code length > 1000 characters

Buyer / seller name can have up to 1000 characters. The last update to the QR code field was increasing length of QR Code to 1000 characters. However, when I am generating a QR code for a document with Seller’s name of 500 characters length, the SDK signature generates a QR code having more than 1000 chars and the invoice is rejected by ZATCA. Please help us with the QA code length issue.

<?xml version="1.0" encoding="UTF-8"?>

ext:UBLExtensions
ext:UBLExtension
ext:ExtensionURIurn: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:IDurn:oasis:names:specification:ubl:signature:1</cbc:ID>
sbc:ReferencedSignatureIDurn:oasis:names:specification:ubl:signature:Invoice</sbc:ReferencedSignatureID>
<ds:Signature xmlns:ds=“XML-Signature Syntax and Processing” Id=“signature”>
ds:SignedInfo
<ds:CanonicalizationMethod Algorithm=“Canonical XML 1.1”/>
<ds:SignatureMethod Algorithm=“xmldsig-more namespace”/>
<ds:Reference Id=“invoiceSignedData” URI=“”>
ds:Transforms
<ds:Transform Algorithm=“XML Path Language (XPath)”>
ds:XPathnot(//ancestor-or-self::ext:UBLExtensions)</ds:XPath>
</ds:Transform>
<ds:Transform Algorithm=“XML Path Language (XPath)”>
ds:XPathnot(//ancestor-or-self::cac:Signature)</ds:XPath>
</ds:Transform>
<ds:Transform Algorithm=“XML Path Language (XPath)”>
ds:XPathnot(//ancestor-or-self::cac:AdditionalDocumentReference[cbc:ID=‘QR’])</ds:XPath>
</ds:Transform>
<ds:Transform Algorithm=“Canonical XML 1.1”/>
</ds:Transforms>
<ds:DigestMethod Algorithm=“XML Encryption Syntax and Processing”/>
ds:DigestValue3ZZtDhQCYzN+xdTf3nb5dZXzxWJHvv3IaHXi7Uzeq7Y=</ds:DigestValue>
</ds:Reference>
<ds:Reference Type=“XML-Signature Syntax and Processing” URI=“#xadesSignedProperties”>
<ds:DigestMethod Algorithm=“XML Encryption Syntax and Processing”/>
ds:DigestValueYWYxYTlhMWExM2QxYmQyYjE1OGE3OWI2NjAzOTBiOTc2ZWE1MWQ5ZDNkMzY4ZGVmMGQyNWQ2Nzg0ZGRmZWRkMg==</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
ds:SignatureValueMEYCIQDExWJldBnhLuWtRwbmBLXGcBh38Ar2xeJ98rv/vUfUYQIhAPvf4c+pj26UO4UTeI3mS+ONKJwHhhN+CGb4D6TgM1pg</ds:SignatureValue>
ds:KeyInfo
ds:X509Data
ds:X509CertificateMIID3jCCA4SgAwIBAgITEQAAOAPF90Ajs/xcXwABAAA4AzAKBggqhkjOPQQDAjBiMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxEzARBgoJkiaJk/IsZAEZFgNnb3YxFzAVBgoJkiaJk/IsZAEZFgdleHRnYXp0MRswGQYDVQQDExJQUlpFSU5WT0lDRVNDQTQtQ0EwHhcNMjQwMTExMDkxOTMwWhcNMjkwMTA5MDkxOTMwWjB1MQswCQYDVQQGEwJTQTEmMCQGA1UEChMdTWF4aW11bSBTcGVlZCBUZWNoIFN1cHBseSBMVEQxFjAUBgNVBAsTDVJpeWFkaCBCcmFuY2gxJjAkBgNVBAMTHVRTVC04ODY0MzExNDUtMzk5OTk5OTk5OTAwMDAzMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEoWCKa0Sa9FIErTOv0uAkC1VIKXxU9nPpx2vlf4yhMejy8c02XJblDq7tPydo8mq0ahOMmNo8gwni7Xt1KT9UeKOCAgcwggIDMIGtBgNVHREEgaUwgaKkgZ8wgZwxOzA5BgNVBAQMMjEtVFNUfDItVFNUfDMtZWQyMmYxZDgtZTZhMi0xMTE4LTliNTgtZDlhOGYxMWU0NDVmMR8wHQYKCZImiZPyLGQBAQwPMzk5OTk5OTk5OTAwMDAzMQ0wCwYDVQQMDAQxMTAwMREwDwYDVQQaDAhSUlJEMjkyOTEaMBgGA1UEDwwRU3VwcGx5IGFjdGl2aXRpZXMwHQYDVR0OBBYEFEX+YvmmtnYoDf9BGbKo7ocTKYK1MB8GA1UdIwQYMBaAFJvKqqLtmqwskIFzVvpP2PxT+9NnMHsGCCsGAQUFBwEBBG8wbTBrBggrBgEFBQcwAoZfaHR0cDovL2FpYTQuemF0Y2EuZ292LnNhL0NlcnRFbnJvbGwvUFJaRUludm9pY2VTQ0E0LmV4dGdhenQuZ292LmxvY2FsX1BSWkVJTlZPSUNFU0NBNC1DQSgxKS5jcnQwDgYDVR0PAQH/BAQDAgeAMDwGCSsGAQQBgjcVBwQvMC0GJSsGAQQBgjcVCIGGqB2E0PsShu2dJIfO+xnTwFVmh/qlZYXZhD4CAWQCARIwHQYDVR0lBBYwFAYIKwYBBQUHAwMGCCsGAQUFBwMCMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwMwCgYIKwYBBQUHAwIwCgYIKoZIzj0EAwIDSAAwRQIhALE/ichmnWXCUKUbca3yci8oqwaLvFdHVjQrveI9uqAbAiA9hC4M8jgMBADPSzmd2uiPJA6gKR3LE03U75eqbC/rXA==</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
ds:Object
<xades:QualifyingProperties xmlns:xades=“Assigned ETSI XML URIs” Target=“signature”>
<xades:SignedProperties Id=“xadesSignedProperties”>
xades:SignedSignatureProperties
xades:SigningTime2024-11-05T16:29:42</xades:SigningTime>
xades:SigningCertificate
xades:Cert
xades:CertDigest
<ds:DigestMethod Algorithm=“XML Encryption Syntax and Processing”/>
ds:DigestValueZDMwMmI0MTE1NzVjOTU2NTk4YzVlODhhYmI0ODU2NDUyNTU2YTVhYjhhMDFmN2FjYjk1YTA2OWQ0NjY2MjQ4NQ==</ds:DigestValue>
</xades:CertDigest>
xades:IssuerSerial
ds:X509IssuerNameCN=PRZEINVOICESCA4-CA, DC=extgazt, DC=gov, DC=local</ds:X509IssuerName>
ds:X509SerialNumber379112742831380471835263969587287663520528387</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:ProfileIDreporting:1.0</cbc:ProfileID>
cbc:IDSAL-495</cbc:ID>
cbc:UUIDa3c94cb8-4464-4397-8518-f892f27750a9</cbc:UUID>
cbc:IssueDate2024-11-01</cbc:IssueDate>
cbc:IssueTime09:58:13Z</cbc:IssueTime>
<cbc:InvoiceTypeCode name=“0200000”>388</cbc:InvoiceTypeCode>
cbc:DocumentCurrencyCodeSAR</cbc:DocumentCurrencyCode>
cbc:TaxCurrencyCodeSAR</cbc:TaxCurrencyCode>
cac:AdditionalDocumentReference
cbc:IDICV</cbc:ID>
cbc:UUID296</cbc:UUID>
</cac:AdditionalDocumentReference>
cac:AdditionalDocumentReference
cbc:IDPIH</cbc:ID>
cac:Attachment
<cbc:EmbeddedDocumentBinaryObject mimeCode=“text/plain”>JSwOxz40bF1TyPeHQrYtL4z6hv12X6FLqMs5OEmt7oc=</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>
cac:AdditionalDocumentReference
cbc:IDQR</cbc:ID>
cac:Attachment
<cbc:EmbeddedDocumentBinaryObject mimeCode=“text/plain”>AYIDIkNvbnN1bHRpbmcgQ29tcGFueSAg2LTYsdmD2Kkg2K/YqNmE2YrZiCDYpdizINio2Yog2KfZhNi02LHZgiDYp9mE2KPZiNiz2Lcg2YTZhNil2LPYqti02KfYsdin2Kog2KfZhNmH2YbYr9iz2YrYqSBDb25zdWx0aW5nIENvbXBhbnkgINi02LHZg9ipINiv2KjZhNmK2Ygg2KXYsyDYqNmKINin2YTYtNix2YIg2KfZhNij2YjYs9i3INmE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gcqhkjOPQIBBgUrgQQACgNCAAShYIprRJr0UgStM6/S4CQLVUgpfFT2c+nHa+V/jKEx6PLxzTZcluUOru0/J2jyarRqE4yY2jyDCeLte3UpP1R4CUcwRQIhALE/ichmnWXCUKUbca3yci8oqwaLvFdHVjQrveI9uqAbAiA9hC4M8jgMBADPSzmd2uiPJA6gKR3LE03U75eqbC/rXA==</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>cac:Signature
cbc:IDurn:oasis:names:specification:ubl:signature:Invoice</cbc:ID>
cbc:SignatureMethodurn:oasis:names:specification:ubl:dsig:enveloped:xades</cbc:SignatureMethod>
</cac:Signature>cac:AccountingSupplierParty
cac:Party
cac:PartyIdentification
<cbc:ID schemeID=“MLS”>325445454</cbc:ID>
</cac:PartyIdentification>
cac:PostalAddress
cbc:StreetNameلالابابلبلااالبابلالا</cbc:StreetName>
cbc:AdditionalStreetNameىرىاىلاتتاتتالات</cbc:AdditionalStreetName>
cbc:BuildingNumber5289</cbc:BuildingNumber>
cbc:PlotIdentification8956</cbc:PlotIdentification>
cbc:CitySubdivisionNameالابلابلابالباباباا</cbc:CitySubdivisionName>
cbc:CityNameHYD</cbc:CityName>
cbc:PostalZone56985</cbc:PostalZone>
cbc:CountrySubentityاتلاتلتلتلاتبلبلاليبقليل</cbc:CountrySubentity>
cac:Country
cbc:IdentificationCodeSA</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
cac:PartyTaxScheme
cbc:CompanyID325896857812583</cbc:CompanyID>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
cac:PartyLegalEntity
cbc:RegistrationNameConsulting Company شركة دبليو إس بي الشرق الأوسط للإستشارات الهندسية Consulting Company شركة دبليو إس بي الشرق الأوسط للإستشارات الهندسية Consulting Company شركة دبليو إس بي الشرق الأوسط للإستشارات الهندسية Consulting Company شركة دبليو إس بي الشرق الأوسط للإستشارات الهندسية Consulting Company شركة دبليو إس بي الشرق الأوسط للإستشارات الهندسية Consulting Company شركة دبليو إس بي الشرق الأوسط للإستشارات الهندسية Consulting Company شركة دبليو إس بي الشر إس بي الشرق الأوسط للإستشارات الهندسيةw</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
cac:AccountingCustomerParty
cac:Party/
</cac:AccountingCustomerParty>
cac:Delivery
cbc:ActualDeliveryDate2024-11-01</cbc:ActualDeliveryDate>
cbc:LatestDeliveryDate2024-11-01</cbc:LatestDeliveryDate>
</cac:Delivery>
cac:PaymentMeans
cbc:PaymentMeansCode1</cbc:PaymentMeansCode>
</cac:PaymentMeans>
cac:TaxTotal
<cbc:TaxAmount currencyID=“SAR”>150.00</cbc:TaxAmount>
cac:TaxSubtotal
<cbc:TaxableAmount currencyID=“SAR”>1000.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID=“SAR”>150.00</cbc:TaxAmount>
cac:TaxCategory
cbc:IDS</cbc:ID>
cbc:Percent15.00</cbc:Percent>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
cac:TaxTotal
<cbc:TaxAmount currencyID=“SAR”>150.00</cbc:TaxAmount>
</cac:TaxTotal>
cac:LegalMonetaryTotal
<cbc:LineExtensionAmount currencyID=“SAR”>1000.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID=“SAR”>1000.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID=“SAR”>1150.00</cbc:TaxInclusiveAmount>
<cbc:AllowanceTotalAmount currencyID=“SAR”>0.00</cbc:AllowanceTotalAmount>
<cbc:ChargeTotalAmount currencyID=“SAR”>0.00</cbc:ChargeTotalAmount>
<cbc:PayableRoundingAmount currencyID=“SAR”>0.00</cbc:PayableRoundingAmount>
<cbc:PayableAmount currencyID=“SAR”>1150.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
cac:InvoiceLine
cbc:ID1</cbc:ID>
<cbc:InvoicedQuantity unitCode=“NOS”>1.0000000</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID=“SAR”>1000.00</cbc:LineExtensionAmount>
cac:AllowanceCharge
cbc:ChargeIndicatorfalse</cbc:ChargeIndicator>
cbc:AllowanceChargeReasonCode0</cbc:AllowanceChargeReasonCode>
<cbc:Amount currencyID=“SAR”>0.00</cbc:Amount>
</cac:AllowanceCharge>
cac:TaxTotal
<cbc:TaxAmount currencyID=“SAR”>150.00</cbc:TaxAmount>
<cbc:RoundingAmount currencyID=“SAR”>1150.00</cbc:RoundingAmount>
</cac:TaxTotal>
cac:Item
cbc:NameITEM NORMAL</cbc:Name>
cac:ClassifiedTaxCategory
cbc:IDS</cbc:ID>
cbc:Percent15.00</cbc:Percent>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
cac:Price
<cbc:PriceAmount currencyID=“SAR”>1000.00000</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>

when decoding your QR Code Customer Name is repeating

"Consulting Company  شركة دبليو إس بي الشرق الأوسط للإستشارات الهندسية Consulting Company  شركة دبليو إس بي الشرق الأوسط للإستشارات الهندسية Consulting Company  شركة دبليو إس بي الشرق الأوسط للإستشارات الهندسية Consulting Company  شركة دبليو إس بي الشرق الأوسط للإستشارات الهندسية Consulting Company  شركة دبليو إس بي الشرق الأوسط للإستشارات الهندسية Consulting Company  شركة دبليو إس بي الشرق الأوسط للإستشارات الهندسية Consulting Company شركة دبليو إس بي الشر إس بي الشرق الأوسط للإستشارات الهندسيةw3258968578125832024-11-01T15:28:13a1150.00150.00,3ZZtDhQCYzN+xdTf3nb5dZXzxWJHvv3IaHXi7Uzeq7Y=a`MEYCIQDExWJldBnhLuWtRwbmBLXGcBh38Ar2xeJ98rv/vUfUYQIhAPvf4c+pj26UO4UTeI3mS+ONKJwHhhN+CGb4D6TgM1pgX0V0a*H=+�
B�`kDR3$UH)|Tsk16\?'hjj<	{u)?Tx	G0E!�?fePeqr/(WGV4+=e =.8�K9$)Ml/\
1 Like

@Ather

that is what is used for testing purposes.We are looking to uderstand the scenario of the length of the seller name.