Unable to Deploy Microsoft CRM 4.0 Email Rules

Posted on 2009-02-17
Last Modified: 2012-05-06
I'm trying to deploy email rules to a new CRM 4.0 org and when I run the deployment wizard keep getting the error "Failed to create a MAPI profile for the user" and the following debug info info:

<ExceptionInfo>Microsoft.Crm.Tools.ExchangeConnectorDeployment.RuleDeploymentException: Failed to create a MAPI profile for the user. ---> System.Runtime.InteropServices.COMException (0x8004010F): Failed to create a MAPI profile for the user. --- End of inner exception stack trace --- at Microsoft.Crm.Tools.ExchangeConnectorDeployment.RuleDeploymentSession.SendCommand(String command, String exchangeServerName, String exchangeStoreDn, String exchangeSystemDn, String exchangeMailboxDn, String crmEmailAddress, Boolean disabledMode, RULE_STATUS& ruleStatus) at Microsoft.Crm.Tools.ExchangeConnectorDeployment.RuleDeploymentSession.DeployRule(DirectoryEntry userDirectoryEntry, String crmEmailAddress, Boolean disabledMode) at Microsoft.Crm.Tools.ExchangeConnectorDeployment.RuleDeploymentRequest.ProcessNext()</ExceptionInfo>

The user logged in running the deployment wizard is a domain admin, has full exchange admin privledges, and is an admin user in CRM.
Question by:JoyCara
    LVL 15

    Expert Comment

    Where is the Rule Deployment Wizard installed?  What version of Exchange?
    Where are you getting this failure? (which screen)

    Author Comment

    Rules deployment wizard is installed on the Exchange server with the email router.  We are running Exchange 2003 Standard that is up to date with SPs and patches.  The error first shows up after I select the users that I want to deploy the rules to.  The wizard finds all the mailboxes fine, and then I select them and if I choose any option in the wizard (add, remove, or verifiy) and click next each user displays the message "Unable to create a MAPI profile for the user"  When the wizard ends it dumps the error message above into an xml file for each user.
    LVL 15

    Accepted Solution

    This was a problem also in CRM 3.0 where the router is creating the mapi temporarily, but the directory doesn't exist that it wants to use.  so:

    1.      On the server that is running Microsoft Exchange Server, click Start, click Run, type regedit, and then click OK.
    2.    Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Messaging Subsystem
    3.    Click ProfileDirectory, and then note the location. By default, this location is the following folder:
    4.    On the File menu, click Exit.
    5.    In Windows Explorer, locate the folder that you noted in step 3, and then do one of the following:
    "    If the folder exists, verify that the user who is running the Rule Deployment Wizard has Read permissions and Write permissions to the folder.
    "    If the folder does not exist, create the folder on the server that is running Microsoft Exchange Server.
    6.    If you had to create a folder in step 5, verify that you created the folder in the same location that is indicated in the ProfileDirectory registry entry. To do this, follow these steps:
    a.     Click Start, click Run, type regedit, and then click OK.
    b.     Locate and then click the following registry key:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Messaging Subsystem
    c.     Click ProfileDirectory, and then view the location that appears. Make sure that this location is the same as the location of the folder that you created in step 5.
    d.     On the File menu, click Exit.

    Author Closing Comment

    Awesome, worked perfectly.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    On Sep 22nd 2014 Microsoft released Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 and back in July Update Rollup 3 was released.  So we now have:   Update Rollup 1Update Rollup 2Update Rollup 3Service Pack 1Update Rollup 1 for S…
    Automatically creating a Trello card using data from a Microsoft Dynamics CRM record turned out to be an easy project that yielded great results.  Here's how I did this for an internal team at General Code.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now