none
Unable to delete emails

    Question

  •  

    On our SBS2003 box, we have a service account that shows that it has 9 emails in its Outlook web access inbox.

     

    When I try to view any of them, I receive a page cannot be found error.  When I try to delete any of them, it says "Some Items can't be deleted. They were either moved, already deleted, or access was denied."

     

    I tried using ExMerge.exe to extract and archive the emails to a .pst file on the server, and it showed that the operation completed successfully. Unfortunatly, the emails still show up in web access.

     

    I have also tried logging in as the user on a domain workstation to attempt to clear the emails from Outlook 2007.  The inbox shows up empty, however there was a sync issue.  The sync log showed:

    9:19:35     The following message had an error and synchronization of it was skipped (0xfffff9bf):

    9:19:35     The following message had an error and synchronization of it was skipped (0xfffff9bf):

    9:19:35     The following message had an error and synchronization of it was skipped (0xfffff9bf):

    9:19:35     The following message had an error and synchronization of it was skipped (0xfffff9bf):

    9:19:35     The following message had an error and synchronization of it was skipped (0xfffff9bf):

    9:19:35     The following message had an error and synchronization of it was skipped (0xfffff9bf):

    9:19:35     The following message had an error and synchronization of it was skipped (0xfffff9bf):

    9:19:35     The following message had an error and synchronization of it was skipped (0xfffff9bf):

    9:19:35     The following message had an error and synchronization of it was skipped (0xfffff9bf):

     

    It appears that there is an error for each of the 9 emails.

     

    The real annoyance is that this account is our Micrsoft CRM user account. Therefore, I receive around 4,000 critical errors in the server application log every day.  The error is:

    Source:

    MSCRMExRouterService

    Event ID:

    0

    Description:

    Microsoft.Crm.Tools.ExchangeConnectorService.ExchangeSinkServiceException: Opening a message in mailbox: CRMUser failed (System.Runtime.InteropServices.COMException (0x80040E19): Object or data matching the name, range, or selection criteria was not found within the scope of this operation......

     

     

    Any ideas?

     

     

    Wednesday, June 18, 2008 6:37 PM

Answers

  • Looks like mailboxes has corruption so at last you can delete the mailbox and re-create it since it is empty.

    Remove the exchange attributes from AD user, go to Exchange System Manager and right click on mailbox and purge it, then go to AD users and re-create mailbox. This will create a fresh mailbox but make sure that new mailbox stamps the correct email address, if not then you need to correct it.

    Note that during this mailbox recreation, application will not be able to access mailbox.

    Saturday, June 21, 2008 1:31 PM

All replies

  • Hello,

     

    You can try by deleting those 9 mails with MFCMapi.

     

    Here is the procedure to delete it: ESM shows size & count… but mails in outlook is zero

     

    In this link instead of double click on “Top of the Information store”, expand it and double click on “Inbox” & delete culprit mails.

    Thursday, June 19, 2008 2:39 AM
  • Amit Tank,

     

    I did not have an option named "Top of the Information store".  I did have one named "IPM_SUBTREE" with one called "inbox" under it.  However, neither of those had any messages.  The only message I did find was the sync error log in "All Messages" under "Finder".

     

    Any other suggestions?

    Thursday, June 19, 2008 11:45 PM
  • You are not able to see "Top of the Information store" because outlook is configured with cache mode, remove the cache mode from outlook profile and proceed for it.

    Friday, June 20, 2008 1:02 AM
  • Hi,

     

    To use MFCMAPI to delete it, please follow the steps below:

     

    1, download MFCMAPI using the following link:

     

    http://www.microsoft.com/downloads/details.aspx?FamilyID=55fdffd7-1878-4637-9808-1e21abb3ae37&DisplayLang=en

     

    2, Launch MFCMAPI tool on the user’s client.

     

    3, Go to Session -> Logon and Display Store Table

     

    4, Select the outlook profile of the suer and double-click “Mailbox - your user name”

     

    5, Expand "Root Container"

    6, Expand "Top of Information Store"

     

    Note: if the user has configured the outlook profile to use cached mode, we need to expand “IPM_subtree” under root container

     

    7, Select on "Inbox", double click to open it

    8, select the problem message and right click it. then please select “Delete message”

    9, then please select “permanent deletion (deletes to deleted item retention if supported)” and click OK.

    10, Close MFCMAPI dialog boxes, and click Session -> Logoff in the MFCMAPI main window. Close MFCMAPI main window.

     

    Thanks

     

    Allen

    Friday, June 20, 2008 5:59 AM
  •  

    I disabled cached mode, and can now see the bad email under "Inbox" in "Top of Information Store".

     

    When I click any of the email, I get 3 error notification boxes in a row:

     

    Error:
    Code: MAPI_E_CALL_FAILED == 0x80004005
    Function DefaultOpenItemProp( iItem, mfcmapiDO_NOT_REQUEST_MODIFY, lppProp)
    File f:\df7830\extest\src\mfcmapi\contentstablelistctrl.cpp
    Line 1416

     

    Error:
    Code: MAPI_E_CALL_FAILED == 0x80004005
    Function m_lpContentsTableListCtrl->DefaultOpenItemProp( iSelectedItem, bModify, lppMAPIProp)
    File f:\df7830\extest\src\mfcmapi\contentstabledlg.cpp
    Line 917

     

    Error:
    Code: MAPI_E_CALL_FAILED == 0x80004005
    Function m_lpHostDlg->OpenItemProp(pNMListView->iItem, mfcmapiREQUEST_MODIFY, &lpMAPIProp)
    File f:\df7830\extest\src\mfcmapi\contentstablelistctrl.cpp
    Line 1490

     

    Then, I am able right-click the message and follow the deleting instructions. it is followed by the warning:

     

    Warning:
    Code: MAPI_W_PARTIAL_COMPLETION == 0x00040680
    Function ((LPMAPIFOLDER) m_lpContainer)->DeleteMessages( lpEIDs, lpProgress ? (ULONG_PTR)m_hWnd : NULL, lpProgress, ulFlag)
    File f:\df7830\extest\src\mfcmapi\folderdlg.cpp
    Line 702

     

    The screen refreshes, but the email are still there.

    I tried logging out and back in.

    These email just won't go away.

    What's next?

    Friday, June 20, 2008 11:36 PM
  • Looks like mailboxes has corruption so at last you can delete the mailbox and re-create it since it is empty.

    Remove the exchange attributes from AD user, go to Exchange System Manager and right click on mailbox and purge it, then go to AD users and re-create mailbox. This will create a fresh mailbox but make sure that new mailbox stamps the correct email address, if not then you need to correct it.

    Note that during this mailbox recreation, application will not be able to access mailbox.

    Saturday, June 21, 2008 1:31 PM