“CMapiSession::CreateEMSPSTProfile” Error Message When You Use Exmerge

ExMerge is a tool I use when users leave the company. Before deleting and purging the mailbox I create a PST file in which all mail and data will be saved. This can be given to the user in case he/she askes for it.

During an export of a mailbox I got the following error in the ExMerge.Log:

[09:47:54] Using last logon locale for all mailboxes, if possible
[09:47:54] Initializing worker thread (Thread0)
[09:47:54] Copying data from mailbox ‘Displayname’ (‘ALIAS’) on Server ‘SERVER’ to file ‘C:\Export\ALIAS.PST’.
[09:47:54] Error configuring message service (MSPST MS) (MAPI_E_EXTENDED_ERROR) (CMapiSession::CreateEMSPSTProfile)
[09:47:54] Errors encountered. Copy process aborted for mailbox ‘Displayname’ (‘ALIAS’).
[09:47:54] Number of items copied from the source store for all mailboxes processed: 0
[09:47:54] Total number of folders processed in the source store: 0

This was a pretty odd error, because I had frequently used this. After a little investigation I came to the following conclusion. The directory where the PST file was to be exported to, wasn’t there anymore! And instead of giving a normal error like “Directory doesn’t exist”, ExMerge gave me a headache. The simple solution was this time to create the directory (or select another export directory).

Post to Twitter Post to Delicious Post to Digg Post to Facebook