Locally scheduled agents do not run

I need to do the following:- deploy a local copy of a DB on all users’ workstations

  • run a local agent (inside this DB) on each user’s workstation

  • replicate the db on the server where and admin can collect and analyze all the data.

  • all this must be done SILENTLY without ANY USER intrvention!!!

I suppose that with Desktop Policies you can deploy the DB on each WS and also set the “Enable locally scheduled agents”.

But now (I tested on my own PC) the agent starts but will not run, and logs the error:

" AMgr: Agent ‘xxx’ in ‘yyy.nsf’ does not have proper execution access, cannot be run"

The agent is signed with the admin ID that had all rights… what should I do? Can it be done without users’ intervention?

Any advice will be appreciated, Frank

Subject: Please respond me!!!

I tried avery possible solutions, even putting */domain

in the

Run unrestricted methods and operations

and

Run restricted LotusScript/Java agents

fields on server document, but still have this error… what am I doing wrong? solutions!!!

I also read the tech note that says:

"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’. "

I tried and IT IS selected as LOCAL…

also it says:

"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(“”,“”)

Set agent=db.getagent(“”)

agent.isenabled=True

agent.servername=“CN=/OU=/O=”

Call agent.save()"

But I CANNOT do this, because it should mean that every user will change and save the agent in it’s local copy and replicate on the server?!?!?!

I’m confused: how should I set up the configuration to run this agent on EACH USER’s workstation?

Subject: why not use an event in the mail template

since locally scheduled agents will only run if they are signed by the current id in use (user), why don’t to use an event in a database that all of your users use. for example, the postopen event in the mail template.

Subject: did you figure this out?

The thing that oscar suggests could work, but did you come up with a better solution?

Subject: use mail agent

so, I ended up making the agent I actually wanted to run an agent that was called programmatically from the agent list and the local scheduled agent that called it was in each respective mail file. This works. Only drawback is the users will have to manually enable the agent. You can write a button to do this, but I didn’t bother.