Error while obtain a CCSID for D365 F&O

Hello,

We are trying to configure e-Invoice for Saudi Arabia for Microsoft product Dynamics 365 Finance and Operation.

As per the document provided by the Microsoft we have followed the same process. Attached the document link in this topic.

Here is the command we are executing.

For CCSID in simulation environment: .\OnboardingScript.ps1 -action getComplianceCSID -otp 123345 -csrconfig .\csr_config.txt -environment simulation

Below error we get from the command output.

We can see the PowerShell script to get a CCSID in the Microsoft link.

Please let me know what could be the issue and what I can make the changes to get the CCSID as a certificate file, CCSID.pfx

Regards,

Santosh

Dear ZATCA Technical Team @Ankit.K.Tiwari @idaoud @Majd_Alawadi @Aturkistani

We are currently facing the same issue while onboarding new clients to the ZATCA e-invoicing platform.

The Compliance CSID is generated successfully, and we are also able to submit/report the required compliance documents successfully.

However, when we proceed to request the Production CSID, the API returns an HTTP 400 Bad Request with the following response:

{
“code”: “Already-Generated”,
“message”: “The production certificate is already generated”
}

This is occurring during the onboarding of new clients, where we expect the Production CSID to be issued after successfully completing the compliance stage.

Dear ZATCA Team,

A few of our customers also encountered the exact same issue in the production environment while obtaining the Production CSID yesterday, 02-Sep-2026.

The error received is as follows:

{
  "code": "Already-Generated",
  "message": "The production certificate is already generated"
}

We have also shared the corresponding request and response details via the SP Support email for your reference and further investigation.

We kindly request you to investigate this issue and advise us on the appropriate resolution.

Thanks Team

The issue has been resolved, I’m able to onboard new clients now

Best Regards all

Can you please share the exact changes is required in csr_config.txt to generate CCSID.pfx. This is related to D365 Finance and Operation.