# Error while try to generate PCSID in Simulation Environment

**URL:** <https://zatca1.discourse.group/t/error-while-try-to-generate-pcsid-in-simulation-environment/8113>\
**Category:** General\
**Created:** [August 20, 2025, 10:54am UTC](https://zatca1.discourse.group/t/error-while-try-to-generate-pcsid-in-simulation-environment/8113 "2025-08-20T10:54:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahmoud2299](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@mahmoud2299](https://zatca1.discourse.group/u/mahmoud2299)\
**Post date:** [August 20, 2025, 10:54am UTC](https://zatca1.discourse.group/t/error-while-try-to-generate-pcsid-in-simulation-environment/8113/1 "2025-08-20T10:54:39Z")

</div>

Hello team,

I have done the invoice checks for all 6 invoices types and received `PASS` status for them.

But when try to generate a production CSID in simulation environment, i got the following error

```auto
{
    "code": "Missing-ComplianceSteps",
    "message": "The compliance certificate is not done with the following compliance steps yet [standard-compliant,standard-credit-note-compliant,standard-debit-note-compliant,simplified-compliant,simplified-credit-note-compliant,simplified-debit-note-compliant]"
}

```

The steps i took as following:-

1- CSR is sent successfully received the following response from `/compliance` API

```auto
{
   “csr”:“XXXXXXXXX”
}

```

Response

```auto
{
“requestID”:XXXXXX,
“dispositionMessage”:“ISSUED”,
“binarySecurityToken”:“XXXXX”,
“secret”:“XXXXXXXXX”,
“errors”:null
}

```

2- Second step, i have complete 6 invoice checks for Simplified and Standard, and i got `PASS` status for them

Here is the .cnf file

```auto
 [req]
  distinguished_name = req_distinguished_name
  req_extensions = v3_req
  prompt = no
  
  [req_distinguished_name]
  C = SA
  O = ${this.escapeOpenSSL(input['csr.organization.name'])}
  OU = ${this.escapeOpenSSL(input['csr.organization.unit.name'])}
  CN = ${this.escapeOpenSSL(commonName)}
  
  [v3_req]
  # Microsoft Certificate Template (for ZATCA compatibility)
  # OID: 1.3.6.1.4.1.311.20.2 (Microsoft Certificate Template)
  1.3.6.1.4.1.311.20.2 = ASN1:UTF8String:PREZATCA-Code-Signing
  
  # Subject Alternative Name with exact ZATCA DirectoryName format
  subjectAltName = @alt_names
  
  [alt_names]
  # DirectoryName with ZATCA-specific fields
  dirName.1 = zatca_section
  
  [zatca_section]
  # Serial Number (SN) - EGS Serial Number
  SN = ${this.escapeOpenSSL(egsSerialNumber)}
  
  # User ID (UID) - Organization Identifier (VAT number)
  UID = ${this.escapeOpenSSL(input['csr.organization.identifier'])}
  
  # Title - Invoice Type (hardcoded as 1100)
  title = 1100
  
  # Registered Address - Location
  registeredAddress = ${this.escapeOpenSSL(input['csr.location.address'])}
  
  # Business Category - Industry
  businessCategory = ${this.escapeOpenSSL(input['csr.industry.business.category'])}

```

```auto
'csr.common.name': 'ABCD',
      'csr.serial.number': this.generateEgsSerialNumber(),
      'csr.organization.identifier': '3000xxxxxxxx00003',
      'csr.organization.unit.name': 'Riyadh Branch',
      'csr.organization.name': 'ABCD',
      'csr.country.name': 'SA',
      'csr.invoice.type': '1100', // 1100
      'csr.location.address': 'RRRD0000',
      'csr.industry.business.category': 'Software Solution',

```

Kindly i need your support for this issue.

---

<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:** [August 20, 2025, 10:56am UTC](https://zatca1.discourse.group/t/error-while-try-to-generate-pcsid-in-simulation-environment/8113/2 "2025-08-20T10:56:49Z")

</div>

@mahmoud2299 please do not post your CSR details in public forum.  
In case you find a PCSID onboarded in the “list of devices” on fatoora.zatca.gov.sa, please revoke it and generate a new one.

---

<div class="post-metadata">

**Author:** ![mahmoud2299](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@mahmoud2299](https://zatca1.discourse.group/u/mahmoud2299)\
**Post date:** [August 20, 2025, 2:08pm UTC](https://zatca1.discourse.group/t/error-while-try-to-generate-pcsid-in-simulation-environment/8113/3 "2025-08-20T14:08:07Z")

</div>

Thanks @Ankit.K.Tiwari , but kindly what could be issue for i cannot create PCSID as i completed all 6 invoices checks.

The PCSID gave me that some compliance checks not done yet. Kindly need your help on this.

---

<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:** [August 20, 2025, 2:08pm UTC](https://zatca1.discourse.group/t/error-while-try-to-generate-pcsid-in-simulation-environment/8113/4 "2025-08-20T14:08:53Z")

</div>

@idaoud request your input.

---

<div class="post-metadata">

**Author:** ![idaoud](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@idaoud](https://zatca1.discourse.group/u/idaoud)\
**Post date:** [August 20, 2025, 2:43pm UTC](https://zatca1.discourse.group/t/error-while-try-to-generate-pcsid-in-simulation-environment/8113/5 "2025-08-20T14:43:39Z")

</div>

Dear @mahmoud2299

Thanks for reaching out. Welcome to our community.

To provide comprehensive support as usual, can I kindly ask you to check and confirm if all the samples XMLs shared on the compliance/invoices endpoint are for the same VAT#? This can be checked inside each XML following this path ( **cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID** )

Thanks,  
Ibrahem Daoud.

---

<div class="post-metadata">

**Author:** ![mahmoud2299](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@mahmoud2299](https://zatca1.discourse.group/u/mahmoud2299)\
**Post date:** [August 21, 2025, 9:19am UTC](https://zatca1.discourse.group/t/error-while-try-to-generate-pcsid-in-simulation-environment/8113/6 "2025-08-21T09:19:58Z")

</div>

Any update please? i need your help to solve this @Ankit.K.Tiwari @idaoud

---

<div class="post-metadata">

**Author:** ![mahmoud2299](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@mahmoud2299](https://zatca1.discourse.group/u/mahmoud2299)\
**Post date:** [August 21, 2025, 9:25am UTC](https://zatca1.discourse.group/t/error-while-try-to-generate-pcsid-in-simulation-environment/8113/7 "2025-08-21T09:25:24Z")

</div>

Thank you @idaoud for reaching out and support.

I checked now, yes all the 6 invoices have the same VAT number registered on the CSR config.

Also the comliance/invoice gave me `PASS` to all invoices.

Standard Response

```auto
{
    "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": [],
        "status": "PASS"
    },
    "reportingStatus": null,
    "clearanceStatus": "CLEARED",
    "qrSellertStatus": null,
    "qrBuyertStatus": null
}

```

Simplified Response

```auto
{
    "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": [],
        "status": "PASS"
    },
    "reportingStatus": "REPORTED",
    "clearanceStatus": null,
    "qrSellertStatus": null,
    "qrBuyertStatus": null
}

```

---

<div class="post-metadata">

**Author:** ![idaoud](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@idaoud](https://zatca1.discourse.group/u/idaoud)\
**Post date:** [August 21, 2025, 9:59am UTC](https://zatca1.discourse.group/t/error-while-try-to-generate-pcsid-in-simulation-environment/8113/8 "2025-08-21T09:59:19Z")

</div>

Dear @mahmoud2299

Can I kindly ask you to share the exact 6 samples along with the CCSID certificate and the CSR to the below email:

Additionally, please share the email address you will use when sending the email to SP mail  
for our tracking.

SP mail: [sp\_support@zatca.gov.sa](mailto:sp_support@zatca.gov.sa)

Thanks,  
Ibrahem Daoud.

---

<div class="post-metadata">

**Author:** ![mahmoud2299](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@mahmoud2299](https://zatca1.discourse.group/u/mahmoud2299)\
**Post date:** [August 21, 2025, 2:31pm UTC](https://zatca1.discourse.group/t/error-while-try-to-generate-pcsid-in-simulation-environment/8113/9 "2025-08-21T14:31:21Z")

</div>

> [@idaoud](#):
>
> Ibrahem Daoud

Thank you for kind response and help, the details sent to the provided email address.

Here is the email i sent from to can trace: [mahmoud.muhammed977@gmail.com](mailto:mahmoud.muhammed977@gmail.com)

Looking forward to your response and help. @idaoud

---

<div class="post-metadata">

**Author:** ![mahmoud2299](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@mahmoud2299](https://zatca1.discourse.group/u/mahmoud2299)\
**Post date:** [August 25, 2025, 1:57pm UTC](https://zatca1.discourse.group/t/error-while-try-to-generate-pcsid-in-simulation-environment/8113/10 "2025-08-25T13:57:52Z")

</div>

Kindly any update on this? @Ankit.K.Tiwari @idaoud
