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
usersfdc21usersfdc21 

System.LimitException: Attempted to enqueue too many concurrent batch jobs in org (limit is 100).

We have 4 batch jobs running. these batch jobs are running with the help of triggers. I got the below error and users are unable to edit lead or opportunity.
Error: System.LimitException: Attempted to enqueue too many concurrent batch jobs in org (limit is 100).
May I know how to resolve this issue.

Thanks in advance.
Anupama SamantroyAnupama Samantroy
Hi Sree,

Please go through the link. https://help.salesforce.com/apex/HTViewSolution?id=000182449

Thanks
Anupama
usersfdc21usersfdc21
Hi Anupama,

Thank you very much for immediately reply.
I will do the changes and update here.
Anupama SamantroyAnupama Samantroy
Hi, You cannot make callout just after inserting a record. Please use the Future method using the @future annotation. Thanks Anupama
usersfdc21usersfdc21
Hi Anupama,

Thanks for your reply.
I have modified the test class and deployed the code it is working fine.
Anupama SamantroyAnupama Samantroy
Hi Srikanth,

Could you please mark the solution.

Thanks
Anupama