Event from a scheduled job is not getting triggred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 02:29 PM
Hi,
Am trying to trigger the event from a scheduled job and from there send a notification.
but when i tried yesterday it was working, when i see not - the first step - event is not getting triggred
SCHEDULED JOB:
EVENT:
NOTIFICATION:
Can someone help - am not sure what i am actually missing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 03:53 PM
Under event logs - There are almost 3000 events waiting on Ready State

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 04:04 PM
This means that your event queue is stuck and it's not processing ready state events.
You may need to contact SN support for finding root cause of event stuck issue. They can restart nodes for your instance to provide temporary relief and process your events.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2017 02:29 AM
HI
Scheduled Job :
You passed the GlideRecord Variable (gr) which queries by status == pending.This may contain more than one record. TRY TO QUERY WITH SYS_ID (to get a single record) AND PASS THROUGH gs.eventqueue.
eg:
var gr = new GlideRecord('u_test');
gr.addQuery('sys_id', '579173b2dbc8320061fa793ebf961901'); //change the sysid with your
gr.query();
gs.eventQueue('eventname',gr,'usename','userid');
I think this is the problem
please let me know this fails or works
regards,
Vipin Mathew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2017 08:20 AM
Thank you guys all for the replies.
Vipin - it wouldn't work with sys id, am gathering all the records with pending status - records might differe every day. and my schedule job was working fine, it was the issue from my Instance - there were almost 4000 records waiting in a queue looping around.
1. I tried it in different instance- which worked fine. Event logs are showing up and so as Email logs with Processed status
2. i should figure out why i dint receive any email even my email logs show the request is processed - may be i should trigger the system properties.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2017 08:46 AM
Make your response as correct and it will move out of unanswered list.
If you are viewing this from the community inbox you will not see the correct answer button. If so, please review How to Mark Answers Correct From Inbox View
How To Mark Answers Correct From Community Inbox