You need to sign in to do that
Don't have an account?

unexpceted token where error. in batch apex
hi, i am getting "unexpceted token where error." please solve this.
Date dte = Date.today().addDays(-2);
String Name ='dell ';
String ActName ='Activity ';
return database.getquerylocator('select id,name__c,name__c,Project_Name__c from customerstatus__c where End_date__c staus__c !=\''+Name+'\' and type__c=\''+ActName+'\' where actual_End_date__c =: dte '
Date dte = Date.today().addDays(-2);
String Name ='dell ';
String ActName ='Activity ';
return database.getquerylocator('select id,name__c,name__c,Project_Name__c from customerstatus__c where End_date__c staus__c !=\''+Name+'\' and type__c=\''+ActName+'\' where actual_End_date__c =: dte '
Your query is having syntax error. Could you let us know your requirements?