How do we find the failures in the sys_trigger table to find that a scheduled job is failed.

Pravitha
Tera Contributor

How do we find the failures in the sys_trigger table to find that a scheduled job is failed.

I have entered into the table 'sys_trigger.LIST' and provided the filter conditions as given in the screen print :

1. Created on today

2. State is Error 

But, I couldn't find any of the scheduled job record which is in the error state.

Is this the correct way I'm looking for ?

Why I'm not getting any error records, is there any other way to find the failed or error scheduled job ?

find_real_file.png

3 REPLIES 3

Pravitha
Tera Contributor

Could any one of you please update the same - to find the failures in the sys_trigger table to find that a scheduled job is failed.

Hi , Were you able to achieve this . I have a similar requirement to display any failed job over a period of time.

Annay Das
Tera Contributor
You need to bring in the columns "error count" and "error message" in sys_trigger table list view. Each time the job fails, error count is incremented and error message stores the details of the error like exception logs. Jobs which fail are not marked as "error", rather they are scheduled again (state=ready) for the next run. Definitely not very intuitive design by ServiceNow.