Microsoft KB Archive/290653

From BetaArchive Wiki

Article ID: 290653

Article Last Modified on 2/27/2007



APPLIES TO

  • Microsoft Outlook 2002 Standard Edition
  • Microsoft Office Outlook 2003



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 more information about how to implement this kind of solution, click the following article number to view the article in the Microsoft Knowledge Base:

290654 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.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

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.
  • You copy or move one item between two folders that have the ItemAdd event enabled several times. Therefore, Outlook may crash.
  • You copy or move one item between two folders. One of the folders has the ItemAdd event enabled. The other folder does not have the ItemAdd event enabled. You may receive an error message that states that Outlook cannot copy or delete the item.

The number of items necesary to reproduce this problem varies depending on the size of the items.

REFERENCES

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

287530 Frequently asked questions about custom forms and Outlook solutions



Additional query words: OutSol OutSol2002

Keywords: kbbug kbnofix KB290653