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
koti senagalkoti senagal 

how to solve this error

hi this is koti 
 i will  get this type of "Argument must be an object that implements Database.Batchable " in shedule apex program 
 how to solve this error pls give me the answer
Hi Koti,

Please check whether your batch class name is in below format or not.
global class BatchClassName implements Database.Batchable<sObject>{}
praveen sonepraveen sone

Follow the procedure explained in the below link.
Also make sure, to have a batch class initialized before you call it in schedule class execute method.

global void execute(SchedulableContext sc) {
     batchable b = new batchable();
    database.executebatch(b);  // This must be the place where you would currently see this error.