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
AlexanderDevAlexanderDev 

Unable to run batches because of AsyncApexExecutions Limit exceeded

Hi,

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?
MKRMKR
Hi,

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.

Regards,
MKR
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
www.kdeepali.com