Help and Support

OL2000: ItemAdd Event Doesn't Fire in Some Scenarios

Article ID:249156
Last Review:September 29, 2003
Revision:3.0
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.

Back to the top

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.

Back to the top

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.

Back to the top

STATUS

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

Back to the top

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.

Back to the top

REFERENCES

For additional information about available resources and answersto commonly asked questions about Outlook solutions, click the article number below to view the article in the Microsoft Knowledge Base:
146636 (http://support.microsoft.com/kb/146636/EN-US/) OL2000: Questions About Custom Forms and Outlook Solutions

Back to the top


APPLIES TO
Microsoft Outlook 2000 Standard Edition

Back to the top

Keywords: 
kbbug kbnofix kbprogramming KB249156

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.