1
votes

I wrote an agent that runs every 1:00 AM daily, but fails to execute the routine mysteriously. I've checked the agent log and saw that it ran and ends without any error. What I've been thinking about is when I trigger the agent or ran it manually it executes the routine I coded successfully and not when it is scheduled. I really don't know what's the issue there, thanks for help in advance.

1

1 Answers

0
votes

there are a few things to try

  1. Check the trigger property on the agent and set it to run on All documents or change it to None. Test both scenarios. There are some issues with this setting.

  2. When you run an agent manually from the notes client or designer you are running it using the credentials from you id file. When running it scheduled you use the credentials from the server. Make sure your server have enough access to perform what your script does. There is also a setting in the agent for increasing what the script is allowed to perform.

If you have access to the server console you can trigger the agent to run on server using the command: tell amgr run "database.nsf" 'agentname'