473,385 Members | 1,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Scheduled Tasks not running reliably

DFS
I have two nightly scheduled jobs at a client site - one at 2:00am and the
other at 5:00am

Both jobs launch Access 2003, log into the default system workgroup, open a
[different] Access .mdb that collects data, then shuts down.

Except for the scheduled time and file paths, the job settings are
identical. The machine is password-protected, so when each job was created
the password was entered.

The jobs don't start reliably. The 5:00am job runs most nights, but the
2:00am job doesn't run most nights.

Any ideas?

Nov 13 '05 #1
4 5017
DFS wrote:
I have two nightly scheduled jobs at a client site - one at 2:00am and the
other at 5:00am

Both jobs launch Access 2003, log into the default system workgroup, open a
[different] Access .mdb that collects data, then shuts down.

Except for the scheduled time and file paths, the job settings are
identical. The machine is password-protected, so when each job was created
the password was entered.

The jobs don't start reliably. The 5:00am job runs most nights, but the
2:00am job doesn't run most nights.

Any ideas?


Does it even start? Have you done some tests....change the schedule to
a time when you are there. You might want to bypass the collecting of
data part with these new times...you simply want to see if it starts and
runs.

Also, you could either write to a text file or to a table the the steps
to see if it is erroring out. Ex. when the code/form fires write a
line like "Form Opened. " & Now(). Then after initializing something
enter "Init complete " & Now(). Etc. When you come in you can find out
what processes were completed and what processes were not complete. At
least you'll have a place where you can see where the program aborts.
Of course, if you don't see any messages that means the program didn't
even fire.

You might have an event that has an error and with an error routine it
might bypass a whole bunch of stuff...and then the program closes...so
you don't know where the problem is.
Nov 13 '05 #2
DFS
Salad wrote:
DFS wrote:
I have two nightly scheduled jobs at a client site - one at 2:00am
and the other at 5:00am

Both jobs launch Access 2003, log into the default system workgroup,
open a [different] Access .mdb that collects data, then shuts down.

Except for the scheduled time and file paths, the job settings are
identical. The machine is password-protected, so when each job was
created the password was entered.

The jobs don't start reliably. The 5:00am job runs most nights, but
the 2:00am job doesn't run most nights.

Any ideas?

Does it even start? Have you done some tests....change the schedule
to a time when you are there. You might want to bypass the
collecting of data part with these new times...you simply want to see
if it starts and runs.

Also, you could either write to a text file or to a table the the
steps to see if it is erroring out. Ex. when the code/form fires
write a line like "Form Opened. " & Now(). Then after initializing
something enter "Init complete " & Now(). Etc.


I do all those things. I write messages at checkpoints to a text file.

When the job kicks off, it has always run all the way through. The problem
is it won't kick off. I'll sit there at the machine and test it - say at
3:00pm schedule it for 3:01pm and watch it run just fine. Then change the
scheduled time back to 2:00am (reenter the password if asked) and leave.
Next day - job didn't run.

It's very irritating.

Thanks
When you come in you
can find out what processes were completed and what processes were
not complete. At least you'll have a place where you can see where
the program aborts. Of course, if you don't see any messages that
means the program didn't even fire.

You might have an event that has an error and with an error routine it
might bypass a whole bunch of stuff...and then the program closes...so
you don't know where the problem is.


Thanks
Nov 13 '05 #3
Pat
I've had great luck with Schedule Tasks.
A shot in the dark here, but, have you checked the Settings Tab and try to
check the "Wake the computer to run this task" box.

Worth a try, I suppose.
HTH,
Pat
"DFS" <no****@nospam.com> wrote in message
news:10*************@corp.supernews.com...
Salad wrote:
DFS wrote:
I have two nightly scheduled jobs at a client site - one at 2:00am
and the other at 5:00am

Both jobs launch Access 2003, log into the default system workgroup,
open a [different] Access .mdb that collects data, then shuts down.

Except for the scheduled time and file paths, the job settings are
identical. The machine is password-protected, so when each job was
created the password was entered.

The jobs don't start reliably. The 5:00am job runs most nights, but
the 2:00am job doesn't run most nights.

Any ideas?

Does it even start? Have you done some tests....change the schedule
to a time when you are there. You might want to bypass the
collecting of data part with these new times...you simply want to see
if it starts and runs.

Also, you could either write to a text file or to a table the the
steps to see if it is erroring out. Ex. when the code/form fires
write a line like "Form Opened. " & Now(). Then after initializing
something enter "Init complete " & Now(). Etc.


I do all those things. I write messages at checkpoints to a text file.

When the job kicks off, it has always run all the way through. The

problem is it won't kick off. I'll sit there at the machine and test it - say at
3:00pm schedule it for 3:01pm and watch it run just fine. Then change the
scheduled time back to 2:00am (reenter the password if asked) and leave.
Next day - job didn't run.

It's very irritating.

Thanks
When you come in you
can find out what processes were completed and what processes were
not complete. At least you'll have a place where you can see where
the program aborts. Of course, if you don't see any messages that
means the program didn't even fire.

You might have an event that has an error and with an error routine it
might bypass a whole bunch of stuff...and then the program closes...so
you don't know where the problem is.


Thanks

Nov 13 '05 #4
DFS
Pat wrote:
I've had great luck with Schedule Tasks.
A shot in the dark here, but, have you checked the Settings Tab and
try to check the "Wake the computer to run this task" box.

Worth a try, I suppose.
HTH,
Pat
Pat,

I have tried it, to no avail. As far as I can tell, the computer doesn't
ever go into power hibernation. I'll look at it again, though.

The task ran fine for the first 7 days it was deployed, but no longer. I'll
recreate the task - maybe that's the ticket.

Thanks

"DFS" <no****@nospam.com> wrote in message
news:10*************@corp.supernews.com...
Salad wrote:
DFS wrote:

I have two nightly scheduled jobs at a client site - one at 2:00am
and the other at 5:00am

Both jobs launch Access 2003, log into the default system
workgroup, open a [different] Access .mdb that collects data, then
shuts down.

Except for the scheduled time and file paths, the job settings are
identical. The machine is password-protected, so when each job was
created the password was entered.

The jobs don't start reliably. The 5:00am job runs most nights,
but the 2:00am job doesn't run most nights.

Any ideas?
Does it even start? Have you done some tests....change the schedule
to a time when you are there. You might want to bypass the
collecting of data part with these new times...you simply want to
see if it starts and runs.

Also, you could either write to a text file or to a table the the
steps to see if it is erroring out. Ex. when the code/form fires
write a line like "Form Opened. " & Now(). Then after initializing
something enter "Init complete " & Now(). Etc.


I do all those things. I write messages at checkpoints to a text
file.

When the job kicks off, it has always run all the way through. The
problem is it won't kick off. I'll sit there at the machine and
test it - say at 3:00pm schedule it for 3:01pm and watch it run just
fine. Then change the scheduled time back to 2:00am (reenter the
password if asked) and leave. Next day - job didn't run.

It's very irritating.

Thanks
When you come in you
can find out what processes were completed and what processes were
not complete. At least you'll have a place where you can see where
the program aborts. Of course, if you don't see any messages that
means the program didn't even fire.

You might have an event that has an error and with an error routine
it might bypass a whole bunch of stuff...and then the program
closes...so you don't know where the problem is.


Thanks

Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Greg Bryant | last post by:
I'm doing some work for a company that has an auction site running in coldfusion. They're not real happy with it, and it needs a major overhaul, so I'm looking at redoing it, and while I'm at it,...
5
by: Bart Simpson | last post by:
Hi, I want to control 'Scheduled Tasks' in Windows 2003 by python program. But I couldn't find any Python module about win32 'Scheduled Tasks'. I could find only Perl module about it. (see...
4
by: Colin Steadman | last post by:
We have a number of scheduled tasks on our IIS server that run daily at some point during the early morning. These tasks run as a specific user that has the correct permissions to perform whatever...
6
by: Iain Hosking | last post by:
I am running a SQL Server 2000 installation with several databases. Each database and log is backed-up using a maintenance plan. The scheduled maintance plan for the latest database does not run,...
6
by: John Bowman | last post by:
Hi, I have a C# app that needs to launch the "Add Scheduled Tasks" wizard found in the control panel "Scheduled Tasks" applet. I realize that this "applet" really just opens the tasks folder,...
11
by: Max | last post by:
I'm writing a program that needs to be able to create custom .job files and add them to the scheduled tasks folder. What I'd like to know is, what is the format of a .job file and how do I go about...
4
by: RSH | last post by:
I have an application that creates an Access version of a SQL Server database and then it moves the resulting database to an ftp server for the client to download and run reports against etc. The...
3
by: kj7ny | last post by:
How can I access and manipulate Scheduled Tasks in Windows using Python? I have a Windows XP workstation running Python 2.4.4 using the win32all modules to control the windows services on...
0
by: BD | last post by:
I'm running 8.2 on Windows. I have a situation where several scheduled tasks were created in Task Center, under an ID of a person who is leaving the organization. This person's ID is to be...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.