+ Start a Discussion

Unable to run batches because of AsyncApexExecutions Limit exceeded


I hit the First error: [null] AsyncApexExecutions Limit exceeded and now I can't start batches on the full sandbox because of It. I read that this is 24h limit so I waited for a day (week atm). Unfortunately, It didn't help. Is there a way to fix the sandbox?

I suggest that you'll be in direct contact with Salesforce support through help.salesforce.com. I am sure they are able to help you with that.

Deepali KulshresthaDeepali Kulshrestha
Hi Alexander,
Greetings to you!

This is a DML Statement, which has a governing limit of 10,000. You are updating your batch at the end, and not on each iteration.

Put "LIMIT 9999" on the end of your query. If this works then this is your issue.

Your solution would be to do a database.executebatch(b, 1) which adds or breaks apart the records into 9999 records or less at a time to a list.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha