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
Mohammed AyyubMohammed Ayyub 

Batch Class not processing any batch while executing from Post Install Script Class that implements InstallHandler Interface

Hi,

I am executing a batch class from post install script class that implement Installhandler interface, it executes successfully, but no batches are processed even there exists a lot of relavant records.

When I execute this batch class from elsewhere (developer console) rather than post install script class, its working fine and processing all of the records.

Also, note that both apex class are marked as "without sharing".

Any good answer would be greatly appreciated.

Thanks,
Avidev9Avidev9
Debugging this can be a real pain, because you wont be able to see debug logs while installing. I found a old thread probably that can help you out https://developer.salesforce.com/forums/ForumsMain?id=906F00000008r4mIAA .

It mostly talks about "without sharing" , can you post a bit of code here ?
David Torres 15David Torres 15
hi Mohammed, how are you? i am suffering the same issue, did you find a solution? please would be really helpfull for us a feedback from you. best regards