Groundwire / Campaign-Combiner

Groundwire's Campaign Combiner Salesforce app
3 stars 2 forks source link

handle "too many concurrent batch jobs" error #3

Open groundwired opened 12 years ago

groundwired commented 12 years ago

Because of the Apex limit for batches, it is possible for an org with a lot of records to hit a batch error by running five big CC jobs in a row. Here is the error that they get, and we get it too.

Apex script unhandled exception by user/organization: 00530000006NZCU/00D30000001FZ8R Visualforce Page: /apex/gwcc__campaignCombiner caused by: System.LimitException: Attempted to schedule too many concurrent batch jobs in this org (limit is 5). Class.GWCC.GW_CTRL_CampaignCombiner.combine: line 397, column 1

Ideally, we would handle this error and present a decent explanation to the end user.

dbrownjr commented 11 years ago

And???