web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Contact Sync with Outlook 2013

(0) ShareShare
ReportReport
Posted on by 186

Hello guys


I have a problem with the contact synchronization in Outlook 2013.

When I try to track a contact from my contacts, I get the following error:

sync.PNG

I set the option for synchronizing to "Microsoft Dynamics CRM for Outlook" in my mailbox and my outlook to the syncing client:

Environment: Exchange Online, CRM 2013 SP1 UR2 on-premise

Is there something I forgot?


Thank you!!

Best regards

Raphi

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Raphi:

    Did you set up your personal Mailbox to synchronization to Outlook and make sure your security role has the right settings.

  • Suggested answer
    Aldo Macedo Profile Picture
    on at

    Hello Raphi,

    Seems that you have corrupt elements in CRM or Outlook that is generating C:\Program Files\Microsoft Office\Office 14\Outlook.EXE error message when trying to force synchronization.

    You could verify corrupt elements in Outlook calendar to determine if you have corrupt appointments in CRM or in Outlook calendar that are blocking synchronization

    1. Identify affected users

    2. Verify CRM email configuration

    3. Update CRM Outlook for all users to same server version

    support.microsoft.com/.../3036179

    4. Download Calendar Checking Tool in all machines same version as office 32 or 64 bits

    www.microsoft.com/.../details.aspx

    5. Unzip tool

    6. Run calcheck application

    7. Open CalCheckErr Excel file

    8. Identify if there are corrupt items (empty file means no corrupt items)

    9. Delete corrupt items in Outlook Calendar and CRM Activities if has relationship with CRM

    10. Delete CalCheckErr Excel File

    12. Run CalCheck application

    13. Verify if file is empty, if not run process until file is clean

    14. Configure CRM Server Side Synchronization and monitor behavior

    15. To better troubleshooting activate warning alerts in organization until SSS configuration is stable

    Removing corrupt elements will improve performance in Outlook and CRM, improve connectivity between CRM and CRM Outlook, reduce risks for Server Side Synchronization failures, reduce amount of warning and error alerts in CRM.

    To detect in a better way corrupt elements in Outlook Calendar

    a.    Open Microsoft Outlook and click on the Calendar folder.

    b.    Go to the View menu and select Arrange By -> Current View -> Active Appointments to see a list of all of the active appointments for the current user.

    c.     Scroll through the list until you locate the damaged appointment. It should be easy to because it will be the same appointment for which Microsoft Outlook routinely displays reminders. If for some reason you don't know the name of the damaged appointment, you can try opening appointments -- damaged appointments usually won't open.

    d.    Once you have located the corrupt appointment, delete it.

    Also verify that you have *.onmicrosoft.com, *.live.com, *.microsoft.com *.dynamics.com urls added in trusted sites if applicable, CRM Outlook uses IE to generate connection and password validation for CRM.

    A recommendation is to run ccleaner to delete temp and cookies that could cause sync blocking: www.piriform.com/ccleaner

    Another possible cause can be because there was a corrupt upgrade or installation and will be needed do a full uninstall to clean registers keys that are blocking synchronization.

    community.dynamics.com/.../full-uninstall-of-microsoft-crm-outlook-client.aspx

    social.technet.microsoft.com/.../11752.dynamics-crm-2011-outlook-client-uninstall.aspx

    Hope this can be helpful for you and can solve the incident

    Best Regards,

  • Raphi Profile Picture
    186 on at

    Hello

    Thank you!

    I followed your instructions, but now I get another error ("Microsoft Outlook has stopped working") when I start Outlook:

    7652.mailbox.PNG

    I can find the following event in the event viewer:

    I tried to trace the start of outlook and got the following errors in the log:

    # CRM Tracing Version 1.1 Unmanaged
    # LocalTime: 2015-03-17 08:29:48.537
    # Categories: *:Error
    # Schedule: No registry key - using default value: Daily
    # ComputerName: PCP-RBO2
    # CRMVersion: 6.1.0002.0112
    [2015-03-17 08:29:48.537] Process:OUTLOOK |Thread:1600 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CCrmServerState::IsServerAvailable File: c:\bt\138373\src\core\application\outlook\addin\crmserverstate.cpp Line: 43
    >hr = 0x80004005
    # CRM Tracing Version 1.1 Unmanaged
    # LocalTime: 2015-03-17 08:29:48.539
    # Categories: *:Error
    # Schedule: No registry key - using default value: Daily
    # ComputerName: PCP-RBO2
    # CRMVersion: 6.1.0002.0112
    [2015-03-17 08:29:48.539] Process:OUTLOOK |Thread:1600 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | StateManagerSpy: 'CrmServer' State execution FAILED. OrganizationName='CRMVP', OrganizationId='{AD11CD97-A110-E411-9415-00155D011302}' Function: CStateEngine::Execute File: c:\bt\138373\src\core\application\outlook\addin\stateengine.cpp Line: 85
    [2015-03-17 08:29:48.539] Process:OUTLOOK |Thread:1600 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | HrGetOutlookApp File: c:\bt\138373\src\core\application\outlook\addin\common.cpp Line: 82
    >hr = 0x80004002
    [2015-03-17 08:29:48.539] Process:OUTLOOK |Thread:1600 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | HrGetOutlookExplorer File: c:\bt\138373\src\core\application\outlook\addin\common.cpp Line: 185
    >hr = 0x80004002
    [2015-03-17 08:29:48.540] Process:OUTLOOK |Thread:1600 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | GetActiveExplorerHWnd File: c:\bt\138373\src\core\application\outlook\addin\common.cpp Line: 120
    >hr = 0x80004002
    [2015-03-17 08:29:50.795] Process:OUTLOOK |Thread:6472 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | Unable to determine control type from ribbon control '//Control[@Id='Mscrm.TabSearch']' Function: CCmdButtonHandler::HrParseActionString File: c:\bt\138373\src\core\application\outlook\addin\cmdbarevthandler.cpp Line: 385
    [2015-03-17 08:29:50.831] Process:OUTLOOK |Thread:6472 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | Unable to determine control type from ribbon control '//Control[@Id='Mscrm.Explorer.Mail.ConvertTo.Opportunity']' Function: CCmdButtonHandler::HrParseActionString File: c:\bt\138373\src\core\application\outlook\addin\cmdbarevthandler.cpp Line: 385
    [2015-03-17 08:29:50.833] Process:OUTLOOK |Thread:6472 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | Unable to determine control type from ribbon control '//Control[@Id='Mscrm.Explorer.Mail.ConvertTo.Lead']' Function: CCmdButtonHandler::HrParseActionString File: c:\bt\138373\src\core\application\outlook\addin\cmdbarevthandler.cpp Line: 385
    [2015-03-17 08:29:50.834] Process:OUTLOOK |Thread:6472 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | Unable to determine control type from ribbon control '//Control[@Id='Mscrm.Explorer.Mail.ConvertTo.Case']' Function: CCmdButtonHandler::HrParseActionString File: c:\bt\138373\src\core\application\outlook\addin\cmdbarevthandler.cpp Line: 385
    [2015-03-17 08:29:50.834] Process:OUTLOOK |Thread:6472 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | Unable to determine control type from ribbon control '//Control[@Id='Mscrm.Explorer.Actions.Menu.AddConnection.Mail']' Function: CCmdButtonHandler::HrParseActionString File: c:\bt\138373\src\core\application\outlook\addin\cmdbarevthandler.cpp Line: 385
    [2015-03-17 08:29:50.835] Process:OUTLOOK |Thread:6472 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | Unable to determine control type from ribbon control '//Control[@Id='Mscrm.Explorer.Mail.ViewInCrm']' Function: CCmdButtonHandler::HrParseActionString File: c:\bt\138373\src\core\application\outlook\addin\cmdbarevthandler.cpp Line: 385
    [2015-03-17 08:29:51.269] Process:OUTLOOK |Thread:6472 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | Unable to determine control type from ribbon control '//Control[@Id='Mscrm.TabSearch']' Function: CCmdButtonHandler::HrParseActionString File: c:\bt\138373\src\core\application\outlook\addin\cmdbarevthandler.cpp Line: 385
    [2015-03-17 08:29:51.556] Process:OUTLOOK |Thread:6472 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | Unable to determine control type from ribbon control '//Control[@Id='Mscrm.Explorer.Mail.ConvertTo.Opportunity']' Function: CCmdButtonHandler::HrParseActionString File: c:\bt\138373\src\core\application\outlook\addin\cmdbarevthandler.cpp Line: 385
    [2015-03-17 08:29:51.556] Process:OUTLOOK |Thread:6472 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | Unable to determine control type from ribbon control '//Control[@Id='Mscrm.Explorer.Mail.ConvertTo.Lead']' Function: CCmdButtonHandler::HrParseActionString File: c:\bt\138373\src\core\application\outlook\addin\cmdbarevthandler.cpp Line: 385
    [2015-03-17 08:29:51.558] Process:OUTLOOK |Thread:6472 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | Unable to determine control type from ribbon control '//Control[@Id='Mscrm.Explorer.Mail.ConvertTo.Case']' Function: CCmdButtonHandler::HrParseActionString File: c:\bt\138373\src\core\application\outlook\addin\cmdbarevthandler.cpp Line: 385
    [2015-03-17 08:29:51.559] Process:OUTLOOK |Thread:6472 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | Unable to determine control type from ribbon control '//Control[@Id='Mscrm.Explorer.Actions.Menu.AddConnection.Mail']' Function: CCmdButtonHandler::HrParseActionString File: c:\bt\138373\src\core\application\outlook\addin\cmdbarevthandler.cpp Line: 385
    [2015-03-17 08:29:51.560] Process:OUTLOOK |Thread:6472 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | Unable to determine control type from ribbon control '//Control[@Id='Mscrm.Explorer.Mail.ViewInCrm']' Function: CCmdButtonHandler::HrParseActionString File: c:\bt\138373\src\core\application\outlook\addin\cmdbarevthandler.cpp Line: 385
    
    # CRM Tracing Version 2.0
    # LocalTime: 2015-03-17 08:29:50.862
    # Categories: *:Error
    # CallStackOn: Yes
    # ComputerName: PCP-RBO2
    # CRMVersion: 6.1.0002.0112
    
    [2015-03-17 08:29:50.862] Process:OUTLOOK |Organization:ad11cd97-a110-e411-9415-00155d011302 |Thread:    1 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId:  | <>c__DisplayClass6`1.<TryFilterAllNoCatch>b__4  ilOffset = 0xC
    	at <>c__DisplayClass6`1.<TryFilterAllNoCatch>b__4(Exception ex)  ilOffset = 0xC
    	at ExceptionFilter.TryFilterAllNoCatch(Func`1 body, Action`1 filter)  ilOffset = 0x35
    	at ExplorerWrapper.IsSingleAndTrackedSelection(Boolean willBeLinked)  ilOffset = 0xB
    	at ExplorerWrapper.RibbonGetLabel(String command, String id)  ilOffset = 0x6
    	at ExceptionFilter.TryFilterAllNoCatch(Func`1 body, Action`1 filter)  ilOffset = 0x15
    > Exception occurred handling a ribbon getLabel callback.: Unhandled Exception: System.Runtime.InteropServices.COMException: The operation failed.
       at Microsoft.Office.Interop.Outlook._Explorer.get_Selection()
       at Microsoft.Crm.Outlook.ExplorerWrapper.IsSingleAndTrackedSelection(Boolean willBeLinked)
       at Microsoft.Crm.Outlook.ExplorerWrapper.RibbonGetLabel(String command, String id)
       at Microsoft.ExceptionHelper.ExceptionFilter.TryFilterAllNoCatch[TResult](Func`1 body, Action`1 filter)
    
    [2015-03-17 08:29:51.465] Process:OUTLOOK |Organization:ad11cd97-a110-e411-9415-00155d011302 |Thread:   19 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId:  | ClientOrganizationContext.RunStateEngineAsync  ilOffset = 0xD
    	at ClientOrganizationContext.RunStateEngineAsync(Object state)  ilOffset = 0xD
    	at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x70
    	at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x4
    	at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  ilOffset = 0x0
    	at ThreadPoolWorkQueue.Dispatch()  ilOffset = 0xA3
    >Unhandled Exception in the AppDomain System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
       at Microsoft.Crm.Application.SMWrappers.ClientOrganizationContextFactory.ClientOrganizationContext.RunStateEngineAsync(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch() IsTerminating: True
    



    My mailbox is configured like this:

    My User is System Administrator and has all security settings.

    Any ideas?

    Best regards

    Raphi

  • Raphi Profile Picture
    186 on at

    Any ideas?

  • Verified answer
    Aldo Macedo Profile Picture
    on at

    Hello Raphi,

    It seems that CRM Outlook is corrupted when Outlook tries to track elements. One possible solution is to do full uninstall and reinstall CRM Outlook again.

    http://community.dynamics.com/crm/b/crmfranklee/archive/2010/03/28/full-uninstall-of-microsoft-crm-outlook-client.aspx

    But I suggest you to try the next steps before doing this:

    • Even your user is System Admin check all security roles for your user, customized roles could generate conflict with CRM Outlook

    • Verify that mailbox is activated and approved by System Administrator.

    • Set incoming and outgoing mailbox profiles to CRM Outlook, it could be a corruption of elements if you set tracking for you organization automatically.

    • Add to trusted sites the next domains: https://*.onmicrosoft.com, https://*.live.com, https://*.microsoft.com and https://*.dynamics.com.

    • Verify that there are no proxy or firewall blocking connections

    • Clean CRM Outlook credentials in Credential Manager

    • Delete CRM Configuration from Outlook

    • Delete sdf files located in C/users/<User name>/app data/Microsoft/MSCRM/

    • Configure CRM Outlook again, if you see that appointments are trying to sync and sync is not completed you will need to search this record in CRM or Outlook and delete it.

    Verify it there is no corrupt folder:

    1. Downloaded the .exe file via http://mfcmapi.codeplex.com/releases/view/127629
    2. Clicked on LogOn under Session and generated the session with default mailbox.
    3. Under IPM_SUBTREE > expanded Tasks > we selected CRMOrgmailboxPrefix_XXXXXXXX > On right hand side its properties got loaded. 
    4. For PR_COMMENT verified the folder is empty >> Deleted CRMOrgmailboxPrefix_XXXXXXXX folder. 

    If you can’t download tool it will be needed to ask for help to support team with a ticket or do full uninstall/reinstall of CRM Outlook and verify if this can solve the incident.

    Best Regards,

  • Raphi Profile Picture
    186 on at

    Hello

    I'm sorry about my late reply.

    Your suggestion worked below! Thank you very much!!

    - Even your user is System Admin check all security roles for your user, customized roles could generate conflict with CRM Outlook
    - Verify that mailbox is activated and approved by System Administrator.
    - Set incoming and outgoing mailbox profiles to CRM Outlook, it could be a corruption of elements if you set tracking for you organization automatically.
    - Add to trusted sites the next domains: https://*.onmicrosoft.com, https://*.live.com, https://*.microsoft.com and https://*.dynamics.com.
    - Verify that there are no proxy or firewall blocking connections
    - Clean CRM Outlook credentials in Credential Manager
    - Delete CRM Configuration from Outlook
    - Delete sdf files located in C/users/<User name>/app data/Microsoft/MSCRM/
    - Configure CRM Outlook again, if you see that appointments are trying to sync and sync is not completed you will need to search this record in CRM or Outlook and delete it.
    - Verify it there is no corrupt folder:
    - 1. Downloaded the .exe file via mfcmapi.codeplex.com/.../127629
    - 2. Clicked on LogOn under Session and generated the session with default mailbox.
    - 3. Under IPM_SUBTREE > expanded Tasks > we selected CRMOrgmailboxPrefix_XXXXXXXX > On right hand side its properties got loaded. 
    - 4. For PR_COMMENT verified the folder is empty >> Deleted CRMOrgmailboxPrefix_XXXXXXXX folder. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans