Scheduled task doesn't produce report even it said the task is finished without error in the log.

Avatar
  • updated
Hello,

I am seeing this problem with the scheduled task.
1) Created a profile - make it send the report in pdf format to a list of email
2) Add the profile to schedule task
3) View the schedule task log, the task ran as scheduled, no error shows on the log. However, I didn't receive the report in the email

4) Use the same profile - make it create the pdf report and save in the local drive (default path)
5) Repeat step 2
6) Repeat step 3, check the location where the pdf should be saved, don't see anything. Again, the log still said the task finished without error

7) Use the same profile, ran it manually. The report is produced and saved in the local drive as expected (settings)

8) use the same profile, change it to email the pdf report when done. Ran the profile manually. The report emailed out as expected.

From all the different tries, i can tell if I run the profile manually, it works fine. However, if i schedule it, it doesn't produce the report as settings. Because the log doesn't show error and just shows the task finished without error, i can't tell what went wrong.

I need help to troubleshoot this problem badly. Thanks!
Avatar
Michael
Does the scheduler log contains entries with source "WebLog Expert". There should be entries like "Started with parameters..." and "Finished" from this source, as the scheduler starts the program to perform the analysis.
Avatar
Ve Con
Yes, it does.
It has:

Running task ""
Running Command 'C:\Program Files\weblog Expert\WLEpert.exe" - FromSchedulre ""
Task Finished
Avatar
Michael
It seems that the program itself isn't running, there should be also entries from "WebLog Expert" like "Started with parameters..." as in the screenshot below:



In most cases problems with the schedule appear because the schedule runs the program under the local system account by default, not under a user's account. You should try to set your username and password in the schedule options ("Schedule" dialog, "Options..." button).
Avatar
Ve Con
Thanks, Mike!

I found out the problem. The local user account that I put in the Schedule->Option is not in the Administrators group of the server.

I added that user in local Administrators group, reran the scheduled job, the email sent out as expected.

Thanks so much for look into this