• nkwan
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

1. We are executing batch as follows:-
ID batchprocessid1 = Database.executeBatch(new batchAccountsImport(),8);

2. In batchAccountImport code snippet is as follows:-

global class batchAccountsImport implements Database.Batchable<SObject>,Database.AllowsCallouts { 

  public string soql = 'select id,safariUserId__c, isActive from User where isactive = true and safariUserid__c<>NULL LIMIT 2';
  global Database.queryLocator
                    start(Database.BatchableContext ctx){

        return Database.getQueryLocator(soql);
  }
  global void execute(Database.BatchableContext ctx, List<Sobject> scope){

// code

  }

  global void finish(Database.BatchableContext ctx) {

// code

  }

}


The execute method is not getting called and we are getting the CUMULATIVE_LIMIT_USAGE issue even when the query has been limited to 2 users.

Thanks

  • May 24, 2013
  • Like
  • 0

1. We are executing batch as follows:-
ID batchprocessid1 = Database.executeBatch(new batchAccountsImport(),8);

2. In batchAccountImport code snippet is as follows:-

global class batchAccountsImport implements Database.Batchable<SObject>,Database.AllowsCallouts { 

  public string soql = 'select id,safariUserId__c, isActive from User where isactive = true and safariUserid__c<>NULL LIMIT 2';
  global Database.queryLocator
                    start(Database.BatchableContext ctx){

        return Database.getQueryLocator(soql);
  }
  global void execute(Database.BatchableContext ctx, List<Sobject> scope){

// code

  }

  global void finish(Database.BatchableContext ctx) {

// code

  }

}


The execute method is not getting called and we are getting the CUMULATIVE_LIMIT_USAGE issue even when the query has been limited to 2 users.

Thanks

  • May 24, 2013
  • Like
  • 0