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
VJayVJay 

System.AsyncException: Rate Limiting Exception in Salesforce SalesCloud

Getting error in salesforce. Could you please help here. 

Apex script unhandled trigger exception by user/organization: ********000009**/****000000***

OpportunityTrigger: execution of AfterUpdate

caused by: System.AsyncException: Rate Limiting Exception : AsyncApexExecutions Limit exceeded.

()
 
SwethaSwetha (Salesforce Developers) 

HI VJay,
AsyncApexExecutions Limit Exception means you are hitting the org-wide 24 hours rolling limit on asynchronous Apex.
Per the doc ,

"The maximum number of asynchronous Apex method executions (batch Apex, future methods, Queueable Apex, and scheduled Apex) per a 24-hour period"  is 250,000 or the number of user licenses in your org multiplied by 200, whichever is greater.


The below snippet should fetch you the usage

Map<String,System.OrgLimit> limitsMap = OrgLimits.getMap();
System.OrgLimit asyncLimit = limitsMap.get('DailyAsyncApexExecutions');
System.debug('Usage Value: ' + asyncLimit.getValue() + '/' + asyncLimit.getLimit());

You can also use REST call 
/services/data/v51.0/limits

or SFDX command
sfdx force:limits:api:display -u <username or alias>
The suggested solution is to make the batch size bigger (like the default of 200).

Reference: https://salesforce.stackexchange.com/questions/63858/asyncapexexecutions-limit-exceeded-error-for-apex-batch

https://salesforce.stackexchange.com/questions/63858/asyncapexexecutions-limit-exceeded-error-for-apex-batch

If this information helps, please mark the answer as best. Thank you
Suraj Tripathi 47Suraj Tripathi 47
Hi VJay,
Greetings!

The most amount of asynchronous Apex method executions (batch Apex, future methods, Queueable Apex, and scheduled Apex) per a twenty-four-hour period = 250,000 or the number of user licenses in your org aggregated by 200, whichever is over limit.

Thank you!
Regards,
Suraj Tripathi