Home > Lotus Notes Tutorial, Notes Designer > How to make Local schedule agents can run on schedule

How to make Local schedule agents can run on schedule

If you have created a scheduled agent and want run scheduled on locally. However, the agent does not run according to schedule. You are able to run the agent manually.

1. For scheduled agents to run locally, you must enable the User Preference “Enable scheduled local agents.” The exact steps to enable this option are as follows:

    a. From the Notes menu,
    – Notes 8.0 and later: Select File -> Preferences -> Basic Notes Client Configuration.
    – Notes 5.x -7.x: Select File -> Preferences -> User Preferences (-> Basic [default]).
    b. Under Startup Options, select the option to “Enable scheduled local agents”.
    c. Exit, and then restart Notes.

2. For scheduled background agents to execute, the agents must reside in the default directory or within a subdirectory below the default directory. Confirm that this directory structure is in place.

3. For locally scheduled agents to run, the agents must be signed by the user ID that will be in use when the agent runs. If the agent is signed by an ID other than the ID that is currently in use when the agent runs, the following error will appear in the log:

    “AMgr: Agent ‘<agent name>’ in ‘<database name>’ does not have proper execution access, cannot be run.”

To address this issue, edit the agent and reset the server to run on. Set the parameter to ‘Local’. Alternately, you can write a LotusScript agent to set the server parameter to the user’s ID.

Sample Script:

Dim s As New notessession
Dim db As notesdatabase
Dim agent As notesagent
Set db=s.getdatabase(“”,”<database name>”)
Set agent=db.getagent(“<agent name>”)
agent.isenabled=True
agent.servername=”CN=<common name>/OU=<org unit>/O=<org>”
Call agent.save()

Viewed 8499 times by 3028 viewers

  1. No comments yet.
  1. No trackbacks yet.