+ Start a Discussion
SirTravSirTrav 

Batch apex "Attempted to schedule too many concurrent batch jobs in this org" when importing records

I have a trigger that populates a number of lookup fields when an item is inserted into salesforce.  That trigger calls a class that runs the logic in batch apex.  The problem I have is that when we import more than 1000 records using dataloader.io it imports them in sets of 200 records each.  The end result is that I get an error that says that I have "Attempted to schedule too many concurrent batch jobs in this org".  Is there any way to get around this?

Best Answer chosen by Admin (Salesforce Developers) 
Vinita_SFDCVinita_SFDC

Hello,

 

Batch Apex can have 5 concurrent (simultaneous) jobs running in parallel. Please refer following help link to over come this error:

 

https://help.salesforce.com/apex/HTViewSolution?urlname=How-can-I-avoid-hitting-the-concurrent-Batch-Apex-limit-which-returns-the-error-Attempted-to-schedule-too-many-concurrent-batch-jobs-in-this-org&language=en_US

All Answers

Vinita_SFDCVinita_SFDC

Hello,

 

Batch Apex can have 5 concurrent (simultaneous) jobs running in parallel. Please refer following help link to over come this error:

 

https://help.salesforce.com/apex/HTViewSolution?urlname=How-can-I-avoid-hitting-the-concurrent-Batch-Apex-limit-which-returns-the-error-Attempted-to-schedule-too-many-concurrent-batch-jobs-in-this-org&language=en_US
This was selected as the best answer
SirTravSirTrav

Thanks that link helps a lot.