You need to sign in to do that
Don't have an account?
System problems with stateful, batchable Apex?
On at least two different occassions I've seen sporadic errors running stateful, batchable Apex jobs. Yesterday I was able to observe the problem in debug logs in my dev org.
The errors I've seen so far, have included:
* Unable to write to any FileForce Server within the specified timeout
* Unable to fetch <<long key containing pathname and three different SFID's>> from any FileForceServer
* Read Timed Out
I have a screen shot of the debug log listing showing error batches mixed with successful batches and screen shots of a sampling of the logs for error batches.
Today the code has been running error-free in my dev org.
Thanks for your help,
Think & Enjoy -- Joe Krutulis
Hi,
While running the test method for the batch apex class, I am facing the error: Unable to write to Fileforce server within specified timeout .
The functionality is working fine and this error appears only in the test methods. What is the reason for this error?
Please help me out in this.
Hello,
I have continued to receive this and other similar errors and have no information yet on why this is so. These errors have been sporadic for me -- sometimes the class works fine, sometimes I see an error or two, and sometimes every single batch in the job fails. The errors seem to be most easily triggered on tapp0 cluster -- but this might be coincidental. Diagnostic information is not easily available.
So far all my occurrences of the errors have been with stateful batchable interface running on a custom iterator. The errors I have seen have *not* been on test methods.
I've built some classes that I believe recreate the errors under more controlled circumstances, and am getting ready to submit these to salesforce.
Think & Enjoy -- JoeK
thanks Joek, if you have any more updates on this, please let me know.
And today morning when I run the same test class it was not showing the error and it is working fine. I dont know how it happened.
Hello, Sorna,
Thanks for the update. According to Developer Support, SF installed a patch last night that is expected to correct at least some of these problems -- so your news is good news indeed!
I will be running my own test cases later today and will report back on the results.
T&E --JoeK