Agent not running on schedule

I created a very simple agent that checks the documents in my database and if their status is not closed and they have been idle without update for x number of days, it should send an email to the document owner. The agent works when I run it manually as I expect it to. However, when I set it to run on schedule it never runs. When I check the notes log I see the following entries:

04/20/2010 22:40:06 AMgr: Start executing agent ‘Topic Idle’ in ‘s_dir/SCMAPARDatabase.nsf’ by Executive ‘2’

04/20/2010 22:40:06 AMgr: ‘Steven Runyon/Raleigh/IBM’ is the agent signer of agent ‘Topic Idle’ in ‘s_dir/SCMAPARDatabase.nsf’

04/20/2010 22:40:06 AMgr: 'Agent ‘Topic Idle’ in ‘s_dir/SCMAPARDatabase.nsf’ will run on behalf of ‘Steven Runyon/Raleigh/IBM’

04/20/2010 22:41:05 AMgr: Agent ‘Topic Idle’ in ‘s_dir/SCMAPARDatabase.nsf’ did not process all documents successfully. Check the Agent Log for more information: Unable to send mail; no match found in Name & Address Book(s)

Its unclear to me why this agent fails to run. The error about not match found in Name and Address Book seems to be misleading as this database currently sends out emails just fine everytime a document is updated. So I am stuck on what to check next. Any one have any ideas? :slight_smile:

Subject: personal address book?

you should always post your code so we can see what your agent is trying to do.

when run locally by you it may work because an address you are sending to may exist in your personal address book or your recent contacts so the mailer is able to resolve (find) the address but when run on the server the address cannot be resolved. You could code the agent to trap the specific error and skip the address if it cannot be resolved. You could also “trick” the agent into sending the e-mail regardless by appending your Domino domain name to the end of the address. This will allow the agent to bypass the address resolution and send the e-mail to your server’s mail.box. Then the server, not the agent, will try and resolve the address and if it’s not found it will generate a delivery failure message back to the sender (agent owner).