I have created a scheduled agent, which I now have working. I have it running every 3 hours. If I edit or sign the agent, it runs, then reschedules itself in another 3 hours as it should. It will run up until midnight on that date, but it will not reschedule itself for the next day, and will no longer run unless I re-edit or re-sign the agent.
Originally, I left the boxes unchecked which limit the date range for the agent to run. I now have them checked, with a future ending date of 2014. Either way, my problem is the same.
For specifics, this is an agent which runs on mail.box to delete dead mail.
Anything I am doing wrong?
Subject: Scheduled agent only works for 1 day
You cannot have scheduled agents in mail.box (or any other .box) databases. This restriction has been in effect for many releases. You can find more information and explanations why this restrictoin exists in the Agent FAQ. There is a section on it in the “Troubleshooting agents in R5 and R6” as well as “Troubleshooting agents in 4.6”.
What you can do to deal with dead mail is schedule an agent in some other database, and write to your agent to access mail.box like it would any other database. As long as the agent signer has access you will be able to do it.
Agent FAQ is under resources on the right.
Subject: Scheduled agent only works for 1 day
I created a new database. And I created agents on it, which run on my schedule, and which run the agents in mail.box.
It is working. Thanks for the links and advice. I appreciate it!
Subject: Scheduled agent only works for 1 day
It sounds like you have the agent right in the mail.box database. This is not supported in R6. What you’re seeing is a typical behaviour, where the agent won’t run the next day. You need to create a separate database with a scheduled agent that will either run the delete agent in mail.box(s) or delete dead messages itself. I usually go for the first setup.
Alex.