You need to sign in to do that
Don't have an account?

Batch Processing: "Read Timed Out" Error
Hey
Periodically when running my batch process from a VisualForce page I get a "Read Timed Out" error.
I am not calling out to any external systems in my batch.
I have gotten this message from code that worked both before and after the problem batch, with no changes to the code in between.
Any explanation for this would be highly appreciated!
Thanks
Dave
Hi all,
The issue should be resolved now. I spoke with support this morning and ran several tests and all have completed successfully.
I've only tested on tapp0 so far, but I'm told this fix is across all servers.
This affects you if your issue stemmed from Batch Apex taking too long to pick up a connection and you were getting a "Read Timed Out" or Connection Could not be established (or a similar message) in your Monitoring > Debug Logs.
If your problem persists, you might want to make sure it isn't something unrelated. As a tip, when doing unit testing make sure to use Test.startTest(); and Test.stopTest(); on anything that calls Batch Apex, which will force it to run synchronously (at the moment stopTest is called). Make sure that you put the Test.stopTest(); before any code that checks the result of the Batch Apex.
Justin
All Answers
Hi,
I am also facing this issue only recently. The code was working properly earlier for me but now get the 'read timed out' error frequently. Any help or hints around this would be appreciated.
Thanks.
We have encountered the same error on the batch process job. The jobs failed at the process that takes >2000ms. Does the server running the batch job matters?
Has anyone try running apex batch in different Salesforce instance that hosted in different server?
Seems like we are constantly getting the error at tapp0.
Anyone has idea??
Hi all, I am also getting the same exception. It is completely weired. i Added my lot off efforts on it but still not able to resolve the issue. The same batch job is running fine on my dev org, it is breaking only in case on test org [with tapp0 in url].
All the contributor are requested to reply on this and that can be a major support to all of us.
I think its high time we are being helped out by SFDC experts. I got this last time on my production instance for 3 or 4 times and after that it started working fine. This is really scary because it doesn't give us a clue of whats going wrong ..... experts please look into this thread and advise us. Batch Apex is a great feature and we wanted to leverage it fully. Help !!!
I seem to be having the same problem. I'm on tapp0 and I've had Batch Apex code not work, be fine for awhile, and then not work again all without code changes in between.
If I use the Monitoring > Debug Logs feature the relevant debug log reads "Read Timed Out" under "Status".
I'm new to Batch Apex but I've looked for everything and looked through the debug logs and I can't find any exception errors or any other indications on why the code would fail.
Justin
We have the same problem,
sometimes our batch process has a failure record but any exception are invoked by batch so we cannot trace error to manage record.
In our Monitoring > Debug Logs feature we have some operation with "Read Timed Out" under "Status".
Why? Any help or hints around this would be appreciated.
Thanks
Simone
Despite my code not working on tapp0 (unit tests failed, real tests failed) I decided to try deploying to production (na4). Unit tests and real world tests have worked so far.
So it really does seem like this issue is isolated to tapp0 which I think everyone else in this forum has been referring to.
Justin
Justin,
Occasionally this happens in prod(na6) too. It happened for me thrice. But occasionally.
For us occasionally happens in prod(emea).
Simone
Hi all,
The issue should be resolved now. I spoke with support this morning and ran several tests and all have completed successfully.
I've only tested on tapp0 so far, but I'm told this fix is across all servers.
This affects you if your issue stemmed from Batch Apex taking too long to pick up a connection and you were getting a "Read Timed Out" or Connection Could not be established (or a similar message) in your Monitoring > Debug Logs.
If your problem persists, you might want to make sure it isn't something unrelated. As a tip, when doing unit testing make sure to use Test.startTest(); and Test.stopTest(); on anything that calls Batch Apex, which will force it to run synchronously (at the moment stopTest is called). Make sure that you put the Test.stopTest(); before any code that checks the result of the Batch Apex.
Justin
Stellar stuff! Thanks for the update.
For complete transparency, I'm still expecting complete resolution after this weekend's maintenance as I just executed the same job with the same data 4 times and got 3 different processing results.
Processing 1: 3 batches failed out of 28
Processing 2: 1 out of 1 batch failed with error: "Unable to write to any of the ACS stores in the alloted time." 10147ms
Processing 3: 0 batches failed out of 28 (100% success)
Processing 4: 0 batches failed out of 28 (100% success)