You need to sign in to do that
Don't have an account?
Vee_R
Batch class issue
Hi All,
We have a batch class which runs daily. Issue is that sometimes batch is not processing records. We have something like this-
Start(){
query
create batch log record with status='processing'- say BL1
}
Execute(){
try{
some DML operation on the list in the scope
}
catch(exception){
Update Batch Log record BL1 with status='Failed in execute'
}
Update Batch Log record BL1 with status='Completed'
}
This year batch has run daily except three times. We can see BL1 has status='processing'. It was never updated to either completed or failed in execute. Please let me know on how to track exact error.
Thanks in advance!
We have a batch class which runs daily. Issue is that sometimes batch is not processing records. We have something like this-
Start(){
query
create batch log record with status='processing'- say BL1
}
Execute(){
try{
some DML operation on the list in the scope
}
catch(exception){
Update Batch Log record BL1 with status='Failed in execute'
}
Update Batch Log record BL1 with status='Completed'
}
This year batch has run daily except three times. We can see BL1 has status='processing'. It was never updated to either completed or failed in execute. Please let me know on how to track exact error.
Thanks in advance!