The Zurich release has arrived! Interested in new features and functionalities? Click here for more

scheduled script i not executing

Priti18
Tera Expert

hi

I have one scheduled script which sends some kind of report every day but i dont know whats wrong that even though am using execute now ui button it  is not doing anything.

I used log in the first line of my code still not sure  what's the issue?

 

 

 

1 ACCEPTED SOLUTION

Hi Priti,

Refer this article; it talks on same thing

Backlog of jobs in sys_trigger with State: Ready that are not picked up to be processed though there...

If this is for client instance raise HI ticket with ServiceNow

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

18 REPLIES 18

Priti18
Tera Expert

i checked in  sys_trigger.list  and my scheduled job is reflected there also state is in ready and in red color.

does this mean anything and if its script related then at least it should print this line

gs.log("its printed"); // first lien of my code

Hi Priti,

Scheduled Jobs in the Ready state are ready to be picked up by the scheduler when the Next action time arrives.

So if the scheduler is busy then it would pick once it is available.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

i can see its in ready state and the time which has set for the job it is showing but my query is if i kept a single lien as gs.log("hi its printed");

and am clicking on execute ui button then it should simply give that lien in logs why that is not happening

 

also please reply on this if having any idea 

https://community.servicenow.com/community?id=community_question&sys_id=ee3b9306db78a0103daa1ea6689619d5

 

thanks in advance

Hi,

Possibly because system scheduler has not queued it yet as it is busy

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Jaspal Singh
Mega Patron
Mega Patron

As suggested in comments before it seems job is still queued up. Can you try creating another schedule job with same conditions & try executing forcefully for a check.