+ Start a Discussion
Imtiaz PashaImtiaz Pasha 

Hi all for all the users in my salesforce org its showing lead trigger AsyncApexExecutions Limit exceeded error , they are not able to edit any record on lead object plz help

below is the screenshot:

User-added image
SwethaSwetha (Salesforce Developers) 
HI Imtiaz,

'AsyncApexExecutions Limit Exception' means you are hitting an org-wide 24 hour rolling limit on asynchronous Apex.

As per https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm "The maximum number of asynchronous Apex method executions (batch Apex, future methods, Queueable Apex, and scheduled Apex) per a 24-hour period: 250,000 or the number of user licenses in your organization multiplied by 200, whichever is greater"

As it is a rolling 24-hour limit, your limits would be reset within 24hours
You can run the query /services/data/v46.0/limits in Workbench's REST Explorer, open "DailyAsyncApexExecutions "and see where you stand in terms of limits.

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

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
Imtiaz PashaImtiaz Pasha
Hi Shwetha,

Thanks for the Information ,

I have Run the query and checked limits has exceeded numbers exceeded , can you plz me how to resolve this ?User-added image
SwethaSwetha (Salesforce Developers) 
HI Imtiaz,
As mentioned earlier, this is a rolling 24 hours limit. I believe the limits have got reset by now. The approach to fix this would be to identify what operation in your LeadTrigger is causing this limit to be hit.If there is a query, ensure that 200 records are processed in each batch.

If your org is blocked because of this error, you can also reach out to salesforce support by logging a case(https://help.salesforce.com/articleView?id=workcom_contact_support.htm&type=5) for a temporary increase of the limit until the code is optimized. Support will need business impact/ justification for the limit to be increased.

Related: https://salesforce.stackexchange.com/questions/131830/apex-batch-size-error-asyncapexexecutions-limit-exceeded?noredirect=1&lq=1

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you