- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2020 08:19 PM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2020 02:10 AM
Hi Priti,
Refer this article; it talks on same thing
If this is for client instance raise HI ticket with ServiceNow
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2020 10:58 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2020 11:19 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2020 11:28 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2020 11:43 PM
Hi,
Possibly because system scheduler has not queued it yet as it is busy
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2020 12:41 AM
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.