+ Start a Discussion
Hari N 20Hari N 20 

Error in Batch Apex running manually

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,

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.