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
Hari N 20Hari N 20 

Error in Batch Apex running manually

Hi,
I am getting following error while running batch apex manuaaly.

Line: 5, Column: 3
expecting a semi-colon, found '707'

Code is : Id 807N000000i4ljj= Database.executeBatch(new BatchClassName(), 200);

Please help me
NagendraNagendra (Salesforce Developers) 
Hi Hari,

The error is pretty simple but have to troubleshoot where exactly it is.Please post your complete code snippet of what you have tried,which results to help us in easy troubleshooting.

Best Regards,
Nagendra.P

 
Dilip_VDilip_V
Hi hari,

THe variable declaration should not start with number.

try something like this.

 Id BatchId= Database.executeBatch(new BatchClassName(), 200);


Let us know if you have any issues.

Mark it as best answer if it works.

Thanks.