Simulation, we are receiving "The provided CurrentCCSID is invalid"

Could you please help us. For most of our customers everything works as expected. But some clients have difficulties to onboard devices.

  • CSR generation is successful
  • generation of compliance CSID is successful
  • compliance checks are successful
  • generation of production CSID is failed with the following response:
{"code":"Invalid-CurrentCCSID","message":"The provided CurrentCCSID is invalid"}

Please note that it is happening not for every client. The error is very cryptic and does not disclose what exactly is wrong. For instance if I change the compliance_request_id to random number, I will get exactly same response.

Could you please clarify the standards, what is allowed, what is not allowed in CSR data and in CSID data, like arabic letters allowed or not etc…

Currently some our customers are stuck and cannot proceed, as this error is not on our side and we do not know how to properly fix it.

Dear @sergei.shishov
Thank you for reaching out

Kindly note that i was a known issue and has been solved could you try again.

o resolve the CSR generation error, follow these steps:

1-Access Fatoora Portal

Click Onboard New Solution Unit/Device to generate the OTP. Use the Simulation environment unless onboarded in Production, where OTP must be obtained from Production.

2-Prepare Config File

Ensure the VAT number in the CSR config file matches the VAT number linked to Fatoora.
3- Use the below COmmands to generate the csr

Java:
Simulation: fatoora -sim -csr -csrConfig <configfile.properties>
Production: fatoora -csr -csrConfig <configfile.properties>
.NET:
Simulation: fatooranet csr -sim -csrConfig <configfile.properties>
Production: fatooranet csr -csrConfig <configfile.properties>

5-Generate The CCSID Using API Endpoints

Simulation: https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/compliance
Production: https://gw-fatoora.zatca.gov.sa/e-invoicing/core/compliance

If you need further assistance, feel free to reach out.

Thanks,