Scheduled Agent Not Working

Greetings!

I'm trying to understand possible reasons why this scheduled agent is not working.  I have it scheduled to run every hour.   I have visually verified that there are documents in the database that meet the criteria.  This doclink should be sent to the users shown when today is one day past the due date.
The only relevant field is DueDate

============================================================
SELECT Form = "Issues" & (@Now - DueDate > 84600);

@MailSend("John Smith" : "Anita Jones" ;"";"";"Unresolved Past Due Issue: "; "This issue is now 1 day past due.";"";[IncludeDoclink])

============================================================
Any help is appreciated.  Thanks!
Jeff VolkhammerConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

qwaleteeCommented:
First try setting it up to run from Action menu, and see if it works correctly when run manually.

Another plan of debug attack:
On scheduled agent, instead of @MailSend, have it set a dummy field on the document, so you can see if it ran.  Verify that it works, change the dummy field to another value, Or, do both -- first have it set the dummy field, then have it @MailSend.  MailSend shoudl eb second, in case only the MailSend fails, and the dummy value shoudl be changed form teh first run (where there was no MailSend attempted) so you can distinguish between them.

Note: If you set this to run every hour, it will send duplicate messages every hour, because the same document that macthed an hour ago will also match now.  Did you really want to do this?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mssturgeonCommented:
From the designer, right-click on the agent name and select "Log...". does it indicate that the agent has run before?  (Note: Each time you re-save the agent, this log is cleared).

If not, make sure your agent is set to run on the proper server, and check that the signer of the agent is permitted to run agents on that server.

You can also run 'tell amgr schedule' at the server console to see what the agent manager is running and has scheduled.


-----
Regarding your code:
Why not use @Adjust?

SELECT Form = "Issues" & (@Now - DueDate > 84600);

becomes

SELECT Form = "Issues" & (@Now > @Adjust(DueDate;0;0;1;0;0;0);
qwaleteeCommented:
mssturgeon,

> Why not use @Adjust?
Yes, why not? Well, he could also use any of:
SELECT Form = "Issues" & (@Now > @Adjust(DueDate;0;0;0;24;0;0);
SELECT Form = "Issues" & (@Now > @Adjust(DueDate;0;0;0;0;1440;0);
SELECT Form = "Issues" & (@Now > @Adjust(DueDate;0;0;0;0;0;86400);

ALl five are the same, so no need to change! Just a matter of style.


- qwaletee
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.