Microsoft KB Archive/249156

= OL2000: ItemAdd Event Doesn't Fire in Some Scenarios =

Article ID: 249156

Article Last Modified on 9/29/2003

-

APPLIES TO


 * Microsoft Outlook 2000 Standard Edition

-



This article was previously published under Q249156



SYMPTOMS
You implement the ItemAdd event in your custom solution, but the event does not fire 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 fire in those cases.



RESOLUTION
To work around this problem, your solution will need 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. This functionality will have to be done with some external component, such as an Exchange Server Scripting Agent which does have a timer-based event, a Timer control in Visual Basic, or by using the Windows Task Scheduler to run a standalone Visual Basic application at a certain interval.



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.

