cancel
Showing results for 
Search instead for 
Did you mean: 

EVPM: Error Creating Privileged MAPI Session

DJSAJJAD
Level 3

Hi There,

I had this EVPM process which would create and populate folders in people's Outlook and set retention categories on them. This process is broken now and when i run that process, it returns with the error message "Error creating privileged MAPI session"

Here is how i run this and i have been running like this for ages and it has been working but this stopped over a month ago and i cannot make it work anymore, anything found online so far is not helping:

I modify the INI file with proper Mailbox DN to which i need to deploy the folders and then i launch the commad prompt, i browse to the directory where Evpm is located, see below, i have changed any identifiable info to something phony:

"C:\Users\evault>Cd C:\Program Files (x86)\Enterprise Vault

C:\Program Files (x86)\Enterprise Vault>Evpm

Would you like to perform an Exchange or a Domino related task? [E/D]:e

Please enter an Exchange Server name: CASARRAY1234

Please enter the service mailbox alias: EV--mailbox1@smtpdomain.com

Please enter the ini file name and location: C:\Program Files (x86)\Enterprise V
ault\All_default_useralias.ini

 

Creating privileged MAPI session ...
Error creating privileged MAPI session"

Now for all above fields, i have tried all possible combinations i can think of, for example, for Exchange server name i have tried all CAS servers individually one by one, e.g CAS1, CAS2, CAS3, CAS4

For service mailbox alias, i have tried, SMTP addresses and mailbox aliases of all of our four EV system mailboxes e.g EV-mailbox1@smtpdomain.com, EV-mailbox2@smtpdomain.com, EV-mailbox3@smtpdomain.com, EV-mailbox4@smtpdomain.com, EV-mailbox1, EV-mailbox2, EV-mailbox3, EV-mailbox4

I have even recreated one of archiving tasks to no avail.

I cannot think of anything other than that we might have created some new mailbox databases and moved mailboxes around around the time when this started occuring but i am not 100% sure about it. I am under pressure to get this fixed, please help!

1 ACCEPTED SOLUTION

Accepted Solutions

TonySterling
Moderator
Moderator
Partner    VIP    Accredited Certified

You can try this:

When running EVPM, "Error creating privileged MAPI session" is returned.

Article:TECH195356  |  Created: 2012-08-21  |  Updated: 2014-10-05  |  Article URL http://www.symantec.com/docs/TECH195356
 

Issue

 
 

When running EVPM, "Error creating privileged MAPI session" is returned.

 

Error

 
 

See below DTrace of process EVPM below:

65 10:20:17.015  [8408] (EVPM) <7184> EV:M CMAPISession::GetExchangeServerDnFromSession - calculate ExchangeServerDn
66 10:20:17.015  [8408] (EVPM) <7184> EV:M CMAPISession::GetExchangeServerDnFromSession - found exchange server dn: /o=ABCCORP/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=ABCEX12
67 10:20:17.015  [8408] (EVPM) <7184> EV:M CMAPISession::CreateMapiSession - Get PR_MAILBOX_OWNER_ENTRYID
68 10:20:17.015  [8408] (EVPM) <7184> EV:M CMAPISession::CreateMapiSession - Release Mutex(2)
69 10:20:17.015  [8408] (EVPM) <7184> EV:M CMAPISession::ClearProfileCache()
70 10:20:17.015  [8408] (EVPM) <7184> EV:M CMAPISession::CloseMapiSession - Entry
71 10:20:17.155  [8408] (EVPM) <7184> EV:M CMAPISession::CloseMapiSession - [1]
72 10:20:17.155  [8408] (EVPM) <7184> EV:M CMAPISession::CloseMapiSession - [2]
73 10:20:17.155  [8408] (EVPM) <7184> EV:M CMAPISession::CloseMapiSession - [3]
74 10:20:17.155  [8408] (EVPM) <7184> EV:M CMailboxHelper::DeleteProfile(VaultMbxAgent-abc14-7184-1345569616-0-437-0): 0x0
75 10:20:17.155  [8408] (EVPM) <7184> EV:M CMAPISession::GetMapiSessionFromPoolEx: Exit status: 0x8004010f
76 10:20:17.171  [8408] (EVPM) <7184> EV:M ~EVPM - Successfully processed 0 out of 0 mailboxes

 

Solution

 
 

Check the following registry values on affected Enterprise Vault Server:

HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Cached Mode
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Outlook\Cached Mode

1 = Enabled
0 = Disabled

If value is Enabled = 1, set it to 0 to disable Exchange Cached Mode and try the EVPM again.

View solution in original post

15 REPLIES 15

DJSAJJAD
Level 3

Forgot to mention that for Exchange server name, already tried FQDN of the CAS Array and FQDN of all individual CAS servers!

Rob_Wilcox1
Level 6
Partner

What version of EV and what version of Exchange? 

There is a known issue with Exchange 2013, and EVPM ...

Working for cloudficient.com

AndrewB
Moderator
Moderator
Partner    VIP    Accredited

try the mailbox server name instead of the CAS. (hostname and/or fqdn.)

are you getting a failure code? what does it say besides "Error creating privileged MAPI session" ? you can dtrace evpm to find out more.

make sure you're logged in to the EV server with the EV service account and that you're saving the INI file as unicode too.

DJSAJJAD
Level 3

I tried the mailbox server as well, NetBios and FQDN both, same error, i get no failure code, nothing in Event Viewer as well.

EV version is 10.0.0.1316

Exchange version is Exchange 2010 SP3 Update Rollup 8v2

I do not know how to dtrace Evpm, you can guide me, while i do some research on how to do that.

I am logged in as a service account and i save the INI as unicode.

AndrewB
Moderator
Moderator
Partner    VIP    Accredited

this will guide you through the DTRACE process: https://www-secure.symantec.com/connect/articles/dtrace-basics

when you get to the "view" step, look for the ID number of EVPM

DJSAJJAD
Level 3

I was able to dtrace Evpm and it does not tell me much or may be i am unable to decipher it.

AndrewB
Moderator
Moderator
Partner    VIP    Accredited

what you want to do is dtrace evpm, open a new cmd prompt and run your evpm command until it errors out, then stop the dtrace. it will create a log which you can attach or paste here

DJSAJJAD
Level 3

Here is what dtrace says when Evpm fails, i am going to attach full log soon:

52    15:40:46.571     [10248]    (EVPM)    <11284>    EV:M    CMAPISession::GetMapiSessionFromPoolEx: Exit status: 0x8004010f
53    15:40:46.587     [10248]    (EVPM)    <11284>    EV:M    ~EVPM - Successfully processed 0 out of 0 mailboxes

DJSAJJAD
Level 3

Full Evpm DTrace is attached, let me know if it tells you something!

AndrewB
Moderator
Moderator
Partner    VIP    Accredited

it's erroring out with 0x8004010f which is the homeMTA issue described here http://www.symantec.com/docs/TECH218406

DJSAJJAD
Level 3

It says "If the mailbox being processed is located on an Exchange Server 2013, EVPM wrongly looks for the HomeMTA Attribute on the corresponding Archiving Task's System Mailbox."

But i have Exchange 2010 SP3

TonySterling
Moderator
Moderator
Partner    VIP    Accredited Certified

You can try this:

When running EVPM, "Error creating privileged MAPI session" is returned.

Article:TECH195356  |  Created: 2012-08-21  |  Updated: 2014-10-05  |  Article URL http://www.symantec.com/docs/TECH195356
 

Issue

 
 

When running EVPM, "Error creating privileged MAPI session" is returned.

 

Error

 
 

See below DTrace of process EVPM below:

65 10:20:17.015  [8408] (EVPM) <7184> EV:M CMAPISession::GetExchangeServerDnFromSession - calculate ExchangeServerDn
66 10:20:17.015  [8408] (EVPM) <7184> EV:M CMAPISession::GetExchangeServerDnFromSession - found exchange server dn: /o=ABCCORP/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=ABCEX12
67 10:20:17.015  [8408] (EVPM) <7184> EV:M CMAPISession::CreateMapiSession - Get PR_MAILBOX_OWNER_ENTRYID
68 10:20:17.015  [8408] (EVPM) <7184> EV:M CMAPISession::CreateMapiSession - Release Mutex(2)
69 10:20:17.015  [8408] (EVPM) <7184> EV:M CMAPISession::ClearProfileCache()
70 10:20:17.015  [8408] (EVPM) <7184> EV:M CMAPISession::CloseMapiSession - Entry
71 10:20:17.155  [8408] (EVPM) <7184> EV:M CMAPISession::CloseMapiSession - [1]
72 10:20:17.155  [8408] (EVPM) <7184> EV:M CMAPISession::CloseMapiSession - [2]
73 10:20:17.155  [8408] (EVPM) <7184> EV:M CMAPISession::CloseMapiSession - [3]
74 10:20:17.155  [8408] (EVPM) <7184> EV:M CMailboxHelper::DeleteProfile(VaultMbxAgent-abc14-7184-1345569616-0-437-0): 0x0
75 10:20:17.155  [8408] (EVPM) <7184> EV:M CMAPISession::GetMapiSessionFromPoolEx: Exit status: 0x8004010f
76 10:20:17.171  [8408] (EVPM) <7184> EV:M ~EVPM - Successfully processed 0 out of 0 mailboxes

 

Solution

 
 

Check the following registry values on affected Enterprise Vault Server:

HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Cached Mode
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Outlook\Cached Mode

1 = Enabled
0 = Disabled

If value is Enabled = 1, set it to 0 to disable Exchange Cached Mode and try the EVPM again.

DJSAJJAD
Level 3

Moreover, the solution in that article says ungrade EV to version 11.0 which is not an option for me at the moment, it requires planning and i need to convince the management about why all of a sudden a need to upgrade while we had this thing working with our current EV and Exchange versions. I am sure this question is going to come up.

So is there anything i can do to fix this short of an upgrade?

DJSAJJAD
Level 3

@TonySterling: Well done and thank you!

Thanks everyone else as well!

AndrewB
Moderator
Moderator
Partner    VIP    Accredited

glad that did the trick but you said it used to work and stopped randomly a month ago. how do you think that setting got changed?