Exchange WS 'The specified object was not found in the repository.' mistake

We use Exchange 2007 WS to process mail folders and encounter various problems if we try to send a message that we have already received. Our process:

  • The Windows service monitors the mailbox folder, when searching for new mail, we process this information and move the item to the "Processed folder" and save the message identifier of the Exchange.
  • Users can redirect mail from the outside. We use the Exchange API to find the item using the message identifier that we saved earlier, and then use the API again to forward it.

In addition, the mail search again turns out to be pretty flaky. We regularly get the following error:

The specified object was not found in the repository.

Is there a better / more reliable way to achieve the same? The documentation for Exchange WS is pretty scarce.

+5
source share
4 answers

This is a bug in the Microsoft Exchange Management API. here is a link for more information http://maheshde.blogspot.com/2010/09/exchange-web-service-specified-object.html

+3
source

Do you save the message identifier of the message you just found or the message after moving it to the Processed folder? The identifier will change when it moves to a new folder.

, - Microsoft Exchange Server 2007 PR_SEARCH_KEY (0x300B, Binary) "". PR_SEARCH_KEY .

+3

, , , , - .

, try catch , == , , . .

+2

, "", , , , . Windows. . , . , , , , . 2 , , . , , .

+1

All Articles