I've been struggling with error reporting from VC for some time and still cannot get the errors reporting out into emails. I have a job that is called On Error that resets a coulle database objects then sends error emails. I am having trouble pulling the error details from the job that is called. I also tried to set variables but I cannot seem to get variables to work either. I would appreciate any assistance...
"[Error in SetVariables, string: Job {JOB(Active|Name)}
Ran: {JOB(Active|LastRun|M/d/yyyy h:mm tt)}
Failed On Step: {TASK(Active,Name)}
Result: "{TASK(Active,Result)}"
Last run: {TASK(Active,LastRun,M/d/yyyy h:mm:ss.ff tt)}
Last exited: {TASK(Active,LastExited,M/d/yyyy h:mm:ss.ff tt)}
Execution time: {TASK(Active,ExecutionTime)} seconds
PrevTask Result: "{TASK(PrevTask,Result)}", err: Object reference not set to an instance of an object.]"
Derek Randles
Dell Services