Error: Execution error code : (object has no valid runable code in method

Hi All,

I am trying to insert record in a table in AX2012 with x++ code but i am getting error.

This is the code

static void InsertCars(Args _args)
{
CarsTable cursTable;
;
cursTable.initValue();
cursTable.CarId=“100012”;
if(cursTable.validateWrite())
cursTable.insert();

}

Error: Execution error code : (object has no valid runable code in method
‘InsertCars’. Stack trace (C)\jobs\InsertCars

Please give me solution for this.

Thanks,

Srinivasulun.

Compile the job. If you get compilation errors, you have to fix them. If you don’t get any error, try to run the job again.