Scheduled job is not running automatically, Every time i am executing manually.

subbarayudu
Tera Contributor

I want to run the scheduled job automatically but is not doing, every time i have to click execute now button.

Could you let me know the reason why it is behaving it and how to correct it.

 I have created this in scoped application  because third party risk management is the scoped application.

subbarayudu_0-1723044184043.png

var issueGr = new GlideRecord('sn_vdr_risk_asmt_issue');
issueGr.addEncodedQuery('stateNOT IN3,4,7^u_date_identifiedISNOTEMPTY');
issueGr.query();
while (issueGr.next()) {
    var idt1 = new GlideDateTime(issueGr.u_date_identified);
    var idt2 = new GlideDateTime();
    var difference = GlideDateTime.subtract(idt1, idt2);
    days = difference.getDayPart();
    issueGr.u_issue_age_days = days;
    issueGr.update();
}

 

16 REPLIES 16

Hello @Ana de Pinho 
Did you check the KB article did you followed the step? Did it help you?

Also, is this only scheduled job not triggering for you or all?

You mentioned there is record in sys_trigger do you see next run date properly populated there?

Can you deactivate existing one and recreate new scheduled job and see if it works sometimes this silly stuff work like magic or if possible, try to put this scheduled job overflow.

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.


  

Govind VARMA
Tera Contributor

Check the TimeZone in the scheduled Job.