OL98: Restrict May Not Work with Uncached Properties (222484)
This article was previously published under Q222484
SYMPTOMS
You use the Restrict and IncludeRecurrences methods in the Outlook object model and Outlook appears to hang or the collection of items does not appear to be functioning correctly.
CAUSE
This may happen if all of the following are true:
- You have items that recur and do not have an end date.
- In the filter of the Restrict method, you used a property that Outlook does not cache by default.
- In the filter of the Restrict method, you did not specify an end date, so the number of items in the collection is infinite.
RESOLUTION
Use one of the following workarounds: - Use the SetColumns method to cache the property you wish to Restrict on. As an example, uncomment the SetColumns line in the "Steps to Reproduce the Problem" section.
- Alter the filter of the Restrict method so that the method will not return an infinite collection.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
REFERENCES
For more information about creating solutions with Microsoft Outlook 98,
please see the following articles in the Microsoft Knowledge Base: 180826 OL98: Resources for Custom Forms and Programming
182349 OL98: Questions About Custom Forms and Outlook Solutions
Modification Type: |
Major |
Last Reviewed: |
5/13/2002 |
Keywords: |
kbprb KB222484 |
|