function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vamsee KaramchetiVamsee Karamcheti 

Why control is directly going to finish method in salesforce batch apex ?

Hi Friends, I am new to SFDC development.

I wrote a batch apex class. When I try to run it from developer console. It's not printing debug statements of start and execute methods. directly it's going to finish method.

Can any one help me in this?
Alex EzhilarasanAlex Ezhilarasan
Hi Vamsee,

Can you post how you are calling your batch class and also start method of batch class
Vamsee KaramchetiVamsee Karamcheti
I am calling batch from developer console like Database.executebatch(new BulkArchiveIdeas());
Alex EzhilarasanAlex Ezhilarasan
Which format you are returning from start? Query locator or iterable sObject? Is Start method is like this?
 
global (Database.QueryLocator | Iterable<sObject>) start(Database.BatchableContext bc) {}

 
Vamsee KaramchetiVamsee Karamcheti
Hi Alex, It's working fine now. I misunderstood the concept.