Event and notification is not triggering from the scheduled job

Ram156
Mega Expert

Hello All,

I am facing issue with the scheduled job which is not triggering the Event and notification is not sending. The same script is Working fine from the Background Script. I don't know if it is any setting or not but 'gs.log' is also not printing from the scheduled job. I also tried making Notification, scheduled job, Event, Script include in same scoped application but it is still not working. Note: before making the script include also tried with direct logic written in Scheduled job.

Any suggestion would be great help.  

Scheduled Job:

find_real_file.png

Script Include:

find_real_file.png

Event:

find_real_file.png

Notification:

find_real_file.png

13 REPLIES 13

Aman Kumar S
Kilo Patron

First things first,

Your scheduled job is inactive, can please tell why?

&&

Everything is written in initialize function?

I would suggest writing a different function in the script include, and there add your code.

Also modify  the script include call from scheduled job as:

new script_include_name().functionName();

Best Regards
Aman Kumar

Hi Aman Thanks for the Reply.

I have tried it using function but it is still not triggering the notification. I also checked simple logic of changing one incident description and it working from same function but 'event' is not triggering and same code I checked with Background script and again it is working.

find_real_file.png

Aman Kumar S
Kilo Patron

Ok, few more things to check.

1. Please confirm if you scheduled job is active

2. Your scheduled job, script include, event all in same scope

3. Did you check event logs?

4. Are you getting script logs?

Best Regards
Aman Kumar

yes Aman,

1. job is active. was testing some stuff while taking screenshot so it capture inactive.

2.Yes, all in same scope

3. No not from the job but getting it from background script

4. Umm that was the another issue I am facing, I am not getting any log for any job. But in PDI I found gs.info working fine but not with client instance