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

Script not working in scheduled reports

Sireesha7
Tera Contributor

Hi Team,

 

Good Day !

 

I wrote a script in Scheduled report and it's not working and when I run same script in background script it's working fine.

 

The scenario is a scheduled report that is supposed to run on the second Monday of each quarter . However, it is incorrectly triggering on the first Monday of every week. 

 

I am attaching the script and background script executions as well.

Please check and do the needful !

 

image (9).pngimage (10).png

 

 

Thanks & Regards,

Sai Sireesha G

 

20 REPLIES 20

Anil Nemmikanti
Giga Guru
Giga Guru

Hi @Sireesha7 ,

As others mentioned first please try using all DateTime() methods related to scope. And try to execute on a weekly basis.