Too many opportunities for batches

will look like this in Apex Jobs: (/lightning/setup/AsyncApexJobs/)

First error: [null] AsyncApexExecutions Limit exceeded.

for the class CampaingnInfluenceRetroFit_MP

 

Reduce the number of Opportunities being analyzed by changing the global setting for date of Opportunities to something more recent.

Once the application has run one time through you have several options on how to produce the data.  Update an Opportunity field with DataLoader, for example — or insert MagicRobot Camp_Inf__Id_to_Examine__c for the ids and the application will analyze those the next time it runs.

Additionally, you will want to consider whether you need these analyzed.  You likely should rreduce the number of opportunities in scope for MagicRobot, too.

Likely you have tens of thousands of bookkeeping opportunities you don’t want or need fully analyzed and you wouldn’t want them cluttering your reports.

The solution to the clutter / noise issue is to create a formula field to omit some of your transactional opportunities.

Go to the MagicRobot explore data dashboard and click on opportunities from last 365 by type.  From there find a drill down.

For example – lets say you want to include renewals.  The ones you really care about are ones that you lose or that you lose products on.  So we want to omit any of the non-special renewals and then analyze the renewals that you care about.

Now, on the opportunity, write this Opportunity-based Checkbox / boolean formula field and then reference it in yourMagicRobot settings to omit opportunities.