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

Test case does not run batch for account but for lead it works
I have a test case where I run batch process for account and lead records
The batch process for account does not run.
Here is the debug log for account
10:10:32.921|CODE_UNIT_STARTED|[EXTERNAL]|01pA0000001ORii|sds.AccountUpdaterBatch
10:10:32.923|METHOD_ENTRY|[19]|Database.getQueryLocator(String)
10:10:32.924|SOQL_EXECUTE_BEGIN|[19]|Aggregations:0|select id ,Name,SLASerialNumber__c from account
10:10:32.987|SOQL_EXECUTE_END|[19]|Rows:6
10:10:32.987|METHOD_EXIT|[19]|Database.getQueryLocator(String)
10:10:33.023|FATAL_ERROR|Internal Salesforce.com Error
10:10:33.023|CUMULATIVE_LIMIT_USAGE
10:10:33.023|LIMIT_USAGE_FOR_NS|sds|
Number of SOQL queries: 0 out of 200
Number of query rows: 0 out of 10000
Number of SOSL queries: 0 out of 20
Number of DML statements: 0 out of 100
Number of DML rows: 0 out of 10000
Number of script statements: 1 out of 1000000
Maximum heap size: 0 out of 6000000
Number of callouts: 0 out of 1
Number of Email Invocations: 0 out of 10
Number of fields describes: 0 out of 100
Number of record type describes: 0 out of 100
Number of child relationships describes: 0 out of 100
Number of picklist describes: 0 out of 100
Number of future calls: 0 out of 0
Number of find similar calls: 0 out of 10
Number of System.runAs() invocations: 0 out of 20
10:10:33.023|TOTAL_EMAIL_RECIPIENTS_QUEUED|0
10:10:33.023|CUMULATIVE_LIMIT_USAGE_END
10:10:33.023|CODE_UNIT_FINISHED|sds.AccountUpdaterBatch
Here is the debug log for lead
10:10:33.147|CODE_UNIT_STARTED|[EXTERNAL]|01pA0000001ORii|sds.AccountUpdaterBatch 10:10:33.148|METHOD_ENTRY|[19]|Database.getQueryLocator(String) 10:10:33.149|SOQL_EXECUTE_BEGIN|[19]|Aggregations:0|select id ,FirstName,LastName from lead 10:10:33.210|SOQL_EXECUTE_END|[19]|Rows:47 10:10:33.211|METHOD_EXIT|[19]|Database.getQueryLocator(String) 10:10:33.291|CUMULATIVE_LIMIT_USAGE 10:10:33.291|LIMIT_USAGE_FOR_NS|sds| Number of SOQL queries: 0 out of 200 Number of query rows: 0 out of 10000 Number of SOSL queries: 0 out of 20 Number of DML statements: 0 out of 100 Number of DML rows: 0 out of 10000 Number of script statements: 1 out of 1000000 Maximum heap size: 0 out of 6000000 Number of callouts: 0 out of 1 Number of Email Invocations: 0 out of 10 Number of fields describes: 0 out of 100 Number of record type describes: 0 out of 100 Number of child relationships describes: 0 out of 100 Number of picklist describes: 0 out of 100 Number of future calls: 0 out of 0 Number of find similar calls: 0 out of 10 Number of System.runAs() invocations: 0 out of 20 10:10:33.291|TOTAL_EMAIL_RECIPIENTS_QUEUED|0 10:10:33.291|CUMULATIVE_LIMIT_USAGE_END 10:10:33.291|CODE_UNIT_FINISHED|sds.AccountUpdaterBatch
For accounts I get an error but I don't know why that error is there. The error line is in bold.
Please guide.
Thanks,
Hector....
Hard to help without seeing the code. Try running the query in your favorite salesforce query tool to make sure it is valid.