Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

PRB: fnevObjectDeleted returns short term entry ID from Exchange


View products that this article applies to.

This article was previously published under Q261172

↑ Back to the top


Symptoms

An Extended Messaging Application Programming Interface (MAPI) program implements the IMAPIAdviseSink interface to be notified on changes in a folder on an Exchange Server. When an fnevObjectDeleted notification event is received, the entry ID contained in the accompanying OBJECT_NOTIFICATION structure is a short term entry ID instead of a long term entry ID.

↑ Back to the top


Cause

All entry IDs that are returned by the Exchange providers in notifications are short term, because short term entry IDs are quicker to compute than long term entry IDs.

↑ Back to the top


Resolution

This is only a problem if you are storing the long term entry IDs of items in another database and need information from the delete event to determine which item to remove. Because the item has already been deleted, it cannot be opened to obtain the long term entry ID. At this point, there is no way, other than rescanning the folder, to identify the deleted item.

If the notification is table-based instead of folder-based, a TABLE_NOTIFICATION structure is returned. This structure contains enough information to identify which row of the table was deleted. For most client applications, this is sufficient to maintain a list of items that are currently in a container.

In general, however, MAPI notification is not a recommended method of synchronizing databases with Exchange. Notifications are not guaranteed by Exchange and may be dropped under high loads.

↑ Back to the top


References

Exchange 2000 supports Store Event Sinks, which can be used to track saves and deletes to any folder in an Exchange 2000 store. For a sample that uses folder notification to keep track of the contents of a folder, click the article number below to view the article in the Microsoft Knowledge Base:
230770� SAMPLE: FrmVwr.exe Extended MAPI Form Viewer

↑ Back to the top


Keywords: KB261172, kbprb, kbmsg

↑ Back to the top

Article Info
Article ID : 261172
Revision : 9
Created on : 2/22/2007
Published on : 2/22/2007
Exists online : False
Views : 325