function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sd2008sd2008 

Question: FutureRequests Request Limit exceeded?

I have 5 scheduled job use CronKitBatchTrigger, it calls a webservice everynight.

It used to work fine everyday, but since last 2 weeks, 4 of the 5 jobs always got this problem:

 

"cronKitBatchTrigger: execution of BeforeUpdate

 

caused by: System.AsyncException: Rate Limiting Exception : FutureRequests Request Limit exceeded."

 

I did not change anything in the code, any ideas?

SatgurSatgur

Hi,

It looks like you are using @Future annotations to make the asynchronous Web service callout to an external service.

global class MyFutureClass { @future static void myMethod(String a, Integer i) { System.debug('Method called with: ' + a + ' and ' + i); //do callout, other long running code } }

 

But there are some limitations with the @Future annotations
·    No more than 10 method calls per Apex invocation
·    No more than 200 method calls per Salesforce license per 24 hours
Your error shows that your are exceeding any of above mention limitation for future annotations.
You can monitor your Apex jobs from Setup--> Administration Setup--> Apex Jobs

For more information go to the following link
http://www.salesforce.com/us/developer/docs/apexcode/index.htm


https://na2.salesforce.com/_ui/training/help/HTNavFramePage?loc=help



Hope this will help you.

 


Thanks,

 

Satgur