Event from a scheduled job is not getting triggred

vtred
Tera Contributor

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:

find_real_file.png

EVENT:

find_real_file.png

NOTIFICATION:

find_real_file.png

Can someone help - am not sure what i am actually missing?

17 REPLIES 17

vtred
Tera Contributor

Under event logs - There are almost 3000 events waiting on Ready State


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


vipinmathew
Mega Guru

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




vtred
Tera Contributor

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.


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