The CreatorCon Call for Content is officially open! Get started here.

why the script doesn't working in scheduled job but the same code works in background script.

Pallavi16
Kilo Contributor

The script in schedule job is not working and logs also not printing but the same code works in background script.

11 REPLIES 11

Remove gs.print() and use gs.info() for logging.

 

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Still it is giving error.

what is the error?can you share screenshots?


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

find_real_file.png

can you check if there is any advanced condition written for your scheduled job?

find_real_file.png


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP