Clearance and Reporting API - 404 & 500 Errors

Dear ZATCA team,

We are facing 500 & 404 errors in production reporting and clearance apis.
For today, the count of errors has already reached to 2000 failed invoices and its increasing continuously.

For the month of December 2023, Almost 46000+ records are failed due to 500 & 404 errors.

Please resolve this issue as soon as possible as our customers are facing business downtime. Below are the HTTP Status codes with errors that we are facing.

404 {
“httpCode”: “404”,
“httpMessage”: “Not Found”,
“moreInformation”: “The requested URL was not found on this server”
}

500 (Blank response body)

@jiri @Ankit_Tiwari

This is the duplicate of these issues:

Dear @sergei.shishov,

Since you marked this query as duplicate, can you please share RCA of this and when this issue will be resolved? As, these errors are occurring since the start of December 2023.

@dev.cksatc and @sergei.shishov when you receive a 404 or 500 error, you can resubmit same XML again without making any change and it will be successfully reported or cleared. 404 and 500 are uncontrolled errors and ZATCA developers are investigating the root cause. In the interim, kindly resubmit the same XML without any change and these should go through successfully upon resubmission.

Thanks @Ankit_Tiwari,

Problem is volume, we are already doing retry and those mechanism by which we can make that particular transaction successful but due to large volume of our customers, it is getting queued & they are facing difficulty in doing transaction real time at their end. Please let us know once this issue gets permanently resolved as this has been occurring since last 1 month & since last 1 week happening too frequently for a longer time.

Even we are also facing the same issue and since last week the frequency has increased considerably and this is causing a disrupt in the business activity. A quick resolution from ZATCA is requested.

Dear ZATCA Team,

We are again facing 500 Internal server error from ZATCA APIs.

We have received failure response for 50% of the requests between 2024-03-10 19:30 to 2024-03-10 20:10 time frame.

Kindly let us know if any update on the resolution. Multiple customers are raising this issue repeatedly.

Dear ZATCA Team,

We are again facing 500 Internal server error from ZATCA APIs.

We have received failure response for 90% of the requests on 2024-03-18.

Kindly let us know if any update on the resolution. Multiple customers are raising this issue repeatedly.

Dear ZATCA Team,

We are again facing 500 Internal server error from ZATCA APIs.

We have received failure response for 14% of the requests on 2024-06-01.

Kindly let us know if any update on the resolution. Multiple customers are raising this issue repeatedly.

First: Try to give hint to server while looping … let system (take breath and do events) every 100 or 200 records … somthing like this

Second: Once you have a larg no of trans, my advice to you, is to icrease your no of sending servers

for Example: if You have daily 100,000 or more record in one server
Try to re-distribure your POS into two servers …

I hope this help

We are encountering a critical issue with our client’s simplified invoices not being reported to the government. Specifically, there is no response being received, resulting in what appears to be an infinite loop in the request process. We urgently need to confirm whether simplified invoices must be reported within 24 hours and to find a solution to resolve this issue promptly

Dear ZATCA Team,

We are again facing 500 Internal server error from ZATCA APIs.

We have received failure response for 12%+ of the requests on 2024-06-02.

We have multiple server instances pushing the records and all instances are facing the same issue.

Kindly let us know if any update on the resolution. Multiple customers are raising this issue repeatedly.

Dear @Ankit_Tiwari please see, all clients are facing issues with the E-invoice submission.

@dev.cksatc @Sanjay @integration ZATCA teams are working to find the root cause for this issue. We will keep you updated here.

Dear @Ankit_Tiwari ,

Thank you. Please share if any update on the resolution.

Yesterday failure count is more than 4,000.

We have received failure response for 6%+ of the requests today morning it self on 2024-06-03.

Dear @Ankit_Tiwari
We are facing 500 Internal server error from ZATCA APIs.
“Could not obtain Compliance CSID: HTTPSConnectionPool(host=‘gw-fatoora.zatca.gov.sa’, port=443)”

Is there any update on this? We seem to be facing a similar issue

Dear @Ankit_Tiwari

We are again facing the same issue with clearance endpoint. More than 6000 transactions are getting failed which is majorly impacting the business. We are facing this issue since January 2024, it has been 6 months.

We have shared logs over email again for the incident today. Your prompt response would be greatly appreciated.

Dear Zatca team,

We are facing the same issue with very frequent 500 error status that is making reporting thousands of invoices extremely slow. We appreciate your assistance.

Hi ZATCA Team,

Informing the same here as well. We have seen at least 50 documents in an error continuously from the past 2 days. Please provide an RCA for this, our restart flow is handling resends of invoices incase there are any server errors but several clients have raised concerns regarding transaction time.