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
Ashok0572Ashok0572 

plz help,when i'm calling the batch calss in Schedule Apex.

 Getting error: Compile Error: Constructor not defined: [batchupdate].<Constructor>() at line 6 column 20

CODE:
global class Schedulebatchupadte  implements Schedulable 

{
    global void execute(SchedulableContext sc) 
    {
    
    batchupdate bu=new batchupdate();    
   
    Database.executeBatch(bu);
    } 
}
Best Answer chosen by Ashok0572
Shingo YamazakiShingo Yamazaki
Hello Anji,

I'm Shingo.

Does the batch class "batchupdate" have constructors which take some arguments?
If so, maybe you need to add another constructor which takes no arguments.

All Answers

Shingo YamazakiShingo Yamazaki
Hello Anji,

I'm Shingo.

Does the batch class "batchupdate" have constructors which take some arguments?
If so, maybe you need to add another constructor which takes no arguments.
This was selected as the best answer
Ashok0572Ashok0572
Thank you so muuch Shingo,its working now.