Skip to main content
added 22 characters in body
Source Link
summer
  • 118
  • 1
  • 8

What is the batch size? If its default thenTry reducing it. The problem can also be in Opportunity trigger if its not bulkified. Try to run this in execute anonymous and see the number of soql you reach:

List<Opportunity> opp = [SELECT id from Opportunity limit 200];
update opp;

What is the batch size? If its default then problem can also be in Opportunity trigger. Try to run this in execute anonymous and see the number of soql you reach:

List<Opportunity> opp = [SELECT id from Opportunity limit 200];
update opp;

What is the batch size? Try reducing it. The problem can also be in Opportunity trigger if its not bulkified. Try to run this in execute anonymous and see the number of soql you reach:

List<Opportunity> opp = [SELECT id from Opportunity limit 200];
update opp;
Source Link
summer
  • 118
  • 1
  • 8

What is the batch size? If its default then problem can also be in Opportunity trigger. Try to run this in execute anonymous and see the number of soql you reach:

List<Opportunity> opp = [SELECT id from Opportunity limit 200];
update opp;