"cannot read one instance of this recurring appointment...." when calling GetOccurrence with a valid

  • Thread starter Thread starter Josh
  • Start date Start date
J

Josh

I am trying to access instances and exceptions of an appointment. When
I call GetOccurrence outlook pops up a message box with the message
mentioned in the subject. When debugging the code, after the user
dismisses the message box, the appointmentitem variable is still
populated with the correct item. Why is this message coming up? In
Outlook 2000 an error would be thrown that I could catch, but there is
no way to surpress this message box in 2002. The same message is shown
when I try to access the items of the exception in my watch window,
but then the object is expanded so I can see the properties.

One thing I have found is that if I save the appointment by doing a
..save before I call GetOccurrence, the problem is gone. But this
method will kick off another item change event on the calendar and
causes some other issues.

Any ideas?

Thanks in advance for the help,

Josh
 
Back
Top