Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scheduled task runs -- SOMETIMES

Status
Not open for further replies.

Goot

Programmer
Aug 4, 2005
86
US
I set up a scheduled task in the scheduled tasks within the control panel. I am running XP.
The task ran fine yesterday, but today it did not run.
I checked the properties....Anything else I can use.
 
Goot,
on the menu select tools then view log. any entry? password set? 'user' running the task has sufficient rights?
was the task supposed to run?
regards,
longhair
 
Which menu are you talking about, i dont see view log from within the task scheduler....i will look again
 
Goot,
when you open the task scheduler on the menu for it you should see tools, then after selecting that you should see view log.
regards,
longhair
PS should probably be posted in teh windows XP forum
 
Hi

THis is from the log file. It should run at 7:45 for 4 seconds. At 9:33 I actually clicked the icon...
What is the exit code of 1 represent.


Settled Balance Report.job" (Settled Balance report.mdb)
Started 9/1/2005 7:45:00 AM
"Settled Balance Report.job" (Settled Balance report.mdb)
Finished 9/1/2005 9:33:34 AM
Result: The task completed with an exit code of (1).
[ ***** Most recent entry is above this line ***** ]
 
Goot,

the exit code of (1) is a failure. yuo want an exit code of (0). but failure is not always for the entire job - for example:
a scheduled task that calls a batch job that deletes 10 files. one of the files does not exist. the log entry will show an exit code of (1) because the 'entire' job did not complete.
it seems to me that the scheduled task could not complete. can you run it manually?
do you need exclusive access to the db? perhaps someone had it open when your task ran and that is why it could not complete.
regards,
longhair
 
Its possible. It ran file yesterday, and it runs when I run manually...So, it started to run, but then failed....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top