+ Start a Discussion
luckymeluckyme 

Batch Apex issue

I am using Batch Apex and found the following behavior: if execute() method is never called (the query returns no records), the finish() method is not called at all. I think this is wrong. The finish() method should always be called. What do you guys think?
pinkelk3pinkelk3
I agree.  I need the finish method to be called, even if no records are processed