imageA few days ago I drove a training for Tier 2 techs at the company devoted to the most common scenarios when we have to rely on mfcmapi heavily to fix the issue.

Being one of the greatest mfcmapi fans around I had a couple of tips to share and now I’d like to share them here as well.

Below are examples of troubleshooting scenarios best performed with MFCMAPI. They are well documented already and I don’t target to cover them in this article. I’d rather go ahead and share less known tips leaving those techniques for the next post.

I refer to the well-known basic operations with MFCMAPI as follows:

a.  Deleting corrupted Junk email rules

b.  Un-hiding hidden folders (or hide them)

c.  Deleting a delegate from mailbox

d.  Troubleshooting BlackBerry Enterprise Activation

e.  Troubleshooting Out Of Office

f.  Checking RefID of a message on BlackBerry

g.  Checking if the messages were marked by AV software or Outlook Junk email filter

 

A couple of tips every mfcmapi fan is aware about –

Always use online mode for a profile and check for a new version occasionally as frequently they contain either new features incorporated or bug fixes or bothSmile

I have selected the following techniques to discuss:
 

1.  Signature Issue and OWA Settings

2.  Autocomplete cache issue

3.  Restore from dumpster

4.  Delete/Create folders

5.  Restore messages/copy messages from folder to folder

6.  Item count

7.  Information about deleted items

Starting Monday I’m going to cover them gradually as I’m pretty certain mfcmapi is invaluable when dealing with low level mailbox problem and it’s second to none in such cases.

Stay tuned!

 

This is a follow up to the article previously posted, already revisited and slightly changed.

As the last update to that revision states the workaround originally offered (previous tricks with switches and mfcmapi’s  doodling with views)  did not work consistently and thus it would be honestly to say it apparently did not uncover the core of the problem.
The problem was dragging, this  dreading issue has been occurring pretty frequently and every time we  ended up recreating the mailbox as per Microsoft solution provided in the case we had with them.

Today I’ve had another case escalated  with the same problem and I felt it was the right time to best the beast finally.
Having spent a decent amount of time I found a really working method to fix such a problem without mailbox recreation.

Here’s the overview of the process and a little bit of explanation:

1.    Key misconception of previous approaches that corruption in such cases is on mailbox level (hence the workable solution was to recreate a mailbox). This is not true as the problem is folder level and we need to remedy the folder in question to fix it (Calendar or Contacts in all cases).
2.    Methods we tried included export the data, scanning it against scanpst, import it back – that did not help as the corruption of data is only part of the problem (scanpst took care of that part) while the other one remained untouched – folder corruption. Sometimes we tried purging folders’ content with mfcmapi and it worked – however, emptying the folder is useless when we talk about folder level corruption, attempts to delete this folder and recreate from the scratch were to no avail as when the folder is corrupted even mfcmapi cannot delete it right away popping up with exception error.
3.    In order to get rid of corrupted folder we need:

a) create a folder named, say, Contacts2 with mfcmapi

b) change PR_CONTAINER_CLASS to something like IPF.Note to make it pretend it is a simple message

c) Empty items using context menu of mfcmapi

d) correctly quit mfcmapi and re-login to Outlook profile again, try to delete corrupted folder with mfcmapi – it should work this time and it can safely be deleted (granted you have a copy of the data from corrupted folder locally of course). In case it does not get deleted we may leave it hidden for a time being (PR_ATTR_HIDDEN set to True). Pre-requisites for successful deletion may include cleaning all ACL entries too.
4.    Once the corrupted folder is gone (or at least hidden) we should import scanned data back, re-grant permissions, re-add shared folder in delegate’s mailbox, re-name newly created folder (I assume it was Contacts2 or something). Important to understand you will not be able to use default folder name as long as the old corrupted folder exists in the mailbox (even if it’s hidden). Without re-adding shared folder to the delegate’s profile you will keep receiving errors like ‘folder cannot be opened’/’folder cannot be displayed’/’you don’t have permissions’ etc. Profile recreation is not needed if the folder is re-added properly.
I believe that’s it. Summarizing the above information that most troublesome part of the process is getting rid of corrupted folder – as it is crippled it does not want to let go easily.
P.S. Quite nice to know MS decided not to bother that much about the same problem when we opened the case regarding this with them. Seems like they also prefer axe rather than scalpel sometimes.

I hope I haven’t skipped anything important and this will be a valuable bit of knowledge.

 

An interesting collision of Outlook views that I’ve lately come across -
sporadically I’ve begun receiving complaints that migrated users (both Exchange 2003 and 2007 to Exchange 2010) are having problems with default view of different shared folders (e.g Contacts or Calendar).

The problem manifested itself in the form of disappearing default view that was replaced by generic Outlook Today view.
The user who shared folders was not able to see such a behavior and only delegates were able to replicate it.

A couple of similar cases ended up with mailboxes recreation that I considered too harsh for such a problem and decided to take a deeper look into it.

The problems outlined in the incidents which ended up with mailbox recreation were lacking a few key troubleshooting techniques that I’d like to engage.
Mailbox recreation apparently is way too brutal and I personally would use it as the last resort only.

This is pretty crucial for successful troubleshooting to figure if this is the global issue for all delegates set for a specific mailbox (I wouldn’t hesitate to add a test one in case there’s only one existing originally) or the problem of view rendering for a specific delegate.

I believe this is a logical must to separate the problem into 2 possible clauses:

1. Shared folder problem
2. Delegate’s problem

I decided to go this way as I’m not that kind of mailbox recreation junkie.

It turned out the problem was not reproducible on other delegates’ accounts and was absolutely isolated to a specific person trying to open a shared folder. Apparently with this in mind you’ll never say ‘go’ to mailbox recreation.

You may find some solutions on the Internet involving running /resetfolders switch that will never help in such issue or rebuilding user account (like this link from Experts Exchange) -

“I resolved the problem for my situation by rebuilding the user account. First I exported the entire mailbox to a .pst then from Exchange
Management Console I removed the mailbox and associated user account. I recreated the account with the same name and after granting access
to the Contacts folder everything works as it should. Note: the profile on the user’s computer will detect a new user account so you will
need to copy user info into the new profile. ”

The right way is to use /cleanviews switch that does its job just fine. This needs to be run against the profile setup with cache mode off. There is a way to take care of views problems with mfcmapi but this requires some more experience with it in order not to destruct the mailbox occasionally. For end users running the switch is absolute no brainer (compared to mfcmapi tricks:)).

As a resume, expediting a bit more on possible way of resolution may help us avoid mailbox recreation unless it’s absolutely necessary. Scalpel is way better than the axe, huh?

UPDATE:

Just had the same issue on other mailbox and the steps outlined above were of no help. The problem persisted even after mailbox move and running the appropriate switches.

Given the repeated nature of the problem the case with Microsoft was opened and here are the brief details -

First off, the recommendation was to run the following cmdlet against the database where the delegate was resided:

Isinteg –s “server name” –fix –test alltests

Secondly if we still have the issue then we have to export the delegate’s mailbox data to a pst file and delete the mailbox. Recreate the mailbox and import the data back.

Since the first step required bringing the entire database online that was not acceptable at that time we proceeded with the second step that did the needful and the problem was resolved.

© 2011 EHLO Me! Suffusion theme by Sayontan Sinha