Still getting error 91 using C&S agents

Hello, running the C&S update agent 4.0.2.6 (admin). I’m getting this error while running the script, causing it to loop. If I remove the mailbox that it occurs on, it doesn’t happen. The technical document on this script mentions the error, but doesn’t give a reason why it’s happening.

2/26/2007 7:38:21 AM: Error number 91 (Object variable not set) occurred at line 284

Subject: Still getting error 91 using C&S agents

Hi,

did you try the remote debugger?

Can you add print statement in the code?

“Error Number 91 (Object variable not set) occurred at line ”
This error can be observed in C&S agents, typically as a secondary error that follows a error 9, 4000 or 4005 that occurred within the UpdateCalProfile or UpdateiNotesProfile subroutines. The line number will coincide with the following code line: “Set viewEntry = viewEntries.GetNextEntry(viewEntry)”. Additional error checking was added in version 4.0.2.5 to provide these subroutines with their own error handling section, which will avoid this error and therefore avoid the loop issue.

JYR

Subject: RE: Still getting error 91 using C&S agents

I haven’t tried the remote debugger yet. I didn’t see any info on that in the C&S document. Is there a document that would show me how to set that up? Sorry for the questions, this is my first foray into LotusScript.

Subject: RE: Still getting error 91 using C&S agents

Hi,

For the remote debugger:

http://www-12.lotus.com/ldd/doc/domino_notes/Rnext/help6_designer.nsf/0/c5acad7698976dda85256c54004ba631?OpenDocument

For the error 91, section : Details on Possible Error Conditions

Agents for updating Calendaring and Scheduling entries and Resource Reservation entries for Daylight Saving Time (DST) 2007

JYR

Subject: RE: Still getting error 91 using C&S agents

Thanks for your help to this question and all the others you have helped me with!

Subject: RE: Still getting error 91 using C&S agents

Update: There’s a fix coming out on this, it will be 4.0.2.7!

Using the 4.0.2.6 admin agent, I also got the error 91, but the errors were:

2/28/2007 11:36:41 AM: Error number 91 (Object variable not set) occurred at line 284

2/28/2007 11:36:41 AM: Error number 91 (Object variable not set) occurred at line 533

(this line 533 one would repeat indefinitely).

None of the solutions I found on the agents page applied, at least not that I could understand. What it turned out to be was that it failed on databases that didn’t have a profile document. It’s obvious when you open the database it doesn’t show a name for whose mail or calendar it is. Here’s where it failed in the script:

In the InitializeMailFile Event -

Call pdocroot.replaceitemvalue(“Owner”, cdoc.getitemvalue(“Owner”)(0))

Subject: RE: Still getting error 91 using C&S agents

Any idea when the fix will be released? Is there a easy way to tell what mail files are missing the profile document?

Thx!

Subject: RE: Still getting error 91 using C&S agents

4.0.2.7 is available

Revision 4.0.2.7 C&S agents

Added a more informative error message when we encounter issues parsing the time zone information inside documents or profiles.

Fixed a problem where an invalid object handle was being accessed in the InitializeMailfile function (admin only).

JYR