OL2002: ItemAdd Event Doesn't Run in Some Scenarios (290653)



The information in this article applies to:

  • Microsoft Outlook 2002

This article was previously published under Q290653

SYMPTOMS

You implement the ItemAdd event in your custom solution, but the event does not run when a large number of items are added to the folder at once.

CAUSE

This is due to Microsoft Exchange Server and MAPI using different methods when moving large amounts of data. Outlook does not take this into account and therefore the event fails to run in those cases.

WORKAROUND

Use one of the following methods to work around this limitation:

Method 1: Redesign Your Client-based Solution

You can modify your solution to keep track of the number of items in the folder, and check at a certain interval to see if there are new items.

NOTE: Outlook does not provide any timer-related events in its object model. For additional information about how to implement this kind of solution, click the article number below to view the article in the Microsoft Knowledge Base:

290653 OL2002: How to Create a Solution That Runs at a Specific Time Interval

Method 2: Use Exchange 2000 Store Events

If you are using Exchange 2000 and the folder is stored on the server, you can implement store events using the Exchange 2000 SDK. For additional information on the Exchange 2000 OnSave store event, please see the following page on the MSDN Web site:

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

This problem typically occurs in the following circumstances:

  • The user copies or moves many items into a folder.
  • You programmatically add many items to a folder.
The number of items necesary to reproduce this problem varies depending on the size of the items.

REFERENCES

For additional information about available resources and answersto commonly asked questions about Microsoft Outlook solutions, click the article number below to view the article in the Microsoft Knowledge Base:

287530 OL2002: Questions About Custom Forms and Outlook Solutions


Modification Type:MinorLast Reviewed:3/1/2004
Keywords:kbbug kbnofix KB290653