Here’s the code (couldn’t be any simplier):Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Dim outline As NotesOutline
Set outline = db.CreateOutline("OutlineName")
Call outline.Save()
End Sub
Here’s the error message (on the outline.Save line):
05/18/2005 11:10:13 AM Agent ‘InitializeOutline’ error: Error accessing product object method
I’m trying to run this over the web. On the Notes client, everything works as expected (my outline is created without any error message).
One thing I don’t understand is that I have other agents creating outlines (on the same server and over the web), and they’re all working fine. I took the same code… and I receive this error.
Is there something I can do?
Thanks!
Pascal
Subject: Entries?
Does it make a difference if there are entries in the Outline instead of just the object?
Just wondering,
Dave
Chub Toad, LLC
Subject: RE: Entries?
No, it had entries before… and I had the same error. I just tried to keep the code as small as possible when I discovered this error.
Thanks!
Pascal
Subject: Same error here
Pascal,
Dang. I run into the same problems on 6.5.3 using Internet Explorer. I tried changing the agent properties, trigger, target and security (2nd tab). Nothing worked. Even bumped the user up to Manager. It works in Notes, but not in the web client…
I know the outline exists before the Save because I had it…
Print outline.Name
At least it means you’re not crazy,
Dave
Chub Toad, LLC
Subject: RE: Same error here
Glad to know I’m not crazy… but what I do not understand is that I have another agent doing the same thing and it has worked for two years. The only difference is that this agent is creating an outline into another database… instead of using “session.CurrentDatabase”.
Really strange…
Thanks!
Pascal
Subject: RE: Same error here
I get the same problem.When i adjust agent to TimeAgent,it work perfect.