This was posted some time ago and there wasn’t a solution given other than to check the Agent FAQ. I’m experiencing the same issue as below and I have read the faq, checked security, etc. The scheduled Agent was working fine up until a few weeks ago and now it seems everything executes but the Save call. The signer has full administrative & ACL rights and there are no author/reader fields so I’m really at a loss as to what suddenly changed. Please see below and let me know if you have any suggestions. Thanks!
"I have an agent that creates new documents that summarize data from existing (data) docs. When I run the agent manually (from the Actions menu) everything works properly…new summary documents are created. When I schedule the agent, the new summary docs are not saved.
The code looks like this:
'Delete all existing summary docs…
'Get a collection of existing (data) docs…
'For each (data) doc in the collection, gather some stats…
Set newDoc = New NotesDocument(db)
newDoc.Form = “summary”
'Set some more field values…
Call newDoc.Save(True, False)
I have traced the agent during the scheduled run, and the only thing failing is the doc.Save call. I.E. the new document exists in memory (and it’s field values can be referenced), but these new docs are never writen to disk.
I have been assuming this is a permission problem, so I have tried:
-
setting “run on behalf of” to the administrator’s account
-
set runtime security level = 3
-
default access for running this agent = all readers and above
Nothing seems to work…any suggestions?"