locked
Custom UI Runtime Error in Microsoft Dynamics CRM - Unable to Synchronise or navigate CRM menus RRS feed

  • Question

  • Any assistance would be appreciated

    Problem: One user is in the environment is unable to synchronize data with CRM, the "action" section of the CRM tab and main CRM navigation menu is missing, although the plugin is enabled in Outlook - Forum won't let me upload an image

    Dynamics CRM 2011 update roll-up 11 critical update

    • Occurs only for the one user
    • Affects every machine the user logs in on
    • Tried renaming this User to another AD user and renaming back in the CRM user administration in hopes to refresh or correct any user data.
    • Only CRM plugins enabled in Outlook.
    • Windows 7 32-bit and Office 2010 32-bit

    Workaround i found.

    Make the user license administrative then changing it back to full after re-configuring Outlook.

    I have tried the following but it has not fixed.

    http://support.microsoft.com/kb/2494581/en-us

    Below is the trace log error - this was generated from running the configuration wizard for the user - this occurs on any machine with the user logged in as.

    at <>c__DisplayClass17.<QueueUserWorkItemSilent>b__16(Exception ex)  ilOffset = 0x6
    at <>c__DisplayClassa.<TryFilterAllCatch>b__8(Exception ex)  ilOffset = 0xC
    at ExceptionFilter.TryFilterAllCatch(Action body, Action`1 filter)  ilOffset = 0x34
    at DataStore.WaitInitialized()  ilOffset = 0x14
    at ClientOrganizationContext.GetInitializedDataStore()  ilOffset = 0xD
    at <>c__DisplayClass8.<GetExplorerRibbonCalculationResult>b__4()  ilOffset = 0x38D
    at ExceptionFilter.TryFilterAllNoCatch(Func`1 body, Action`1 filter)  ilOffset = 0xF
    at GlobalRibbonSupport.GetExplorerRibbonCalculationResult(Dictionary`2 tabSets)  ilOffset = 0x2C
    at GlobalRibbonSupport.CalculateExplorerCustomUI(ExplorerRibbonCalculation calculation)  ilOffset = 0x27
    at GlobalRibbonSupport.<InitiateRibbonAddinReload>b__1(Object state)  ilOffset = 0xB
    at <>c__DisplayClass1a.<QueueUserWorkItemSilent>b__15()  ilOffset = 0x16
    at ExceptionFilter.TryFilterAllCatch(Action body, Action`1 filter)  ilOffset = 0xF
    at <>c__DisplayClass17.<QueueUserWorkItemSilent>b__14(Object innerState)  ilOffset = 0x42
    at QueueUserWorkItemCallback.WaitCallback_Context(Object state)  ilOffset = 0x1A
    at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)  ilOffset = 0x8E
    at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  ilOffset = 0x35
    at ThreadPoolWorkQueue.Dispatch()  ilOffset = 0x81
    at _ThreadPoolWaitCallback.PerformWaitCallback()  ilOffset = 0x51
    > HandleException: Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    at Microsoft.Crm.MapiStore.DataStore.WaitInitialized()
    at Microsoft.Crm.Application.SMWrappers.ClientOrganizationContextFactory.ClientOrganizationContext.GetInitializedDataStore()
    at Microsoft.Crm.Application.SMWrappers.GlobalRibbonSupport.<>c__DisplayClass8.<GetExplorerRibbonCalculationResult>b__4()
    at Microsoft.ExceptionHelper.ExceptionFilter.TryFilterAllNoCatch[TResult](Func`1 body, Action`1 filter)
    at Microsoft.Crm.Application.SMWrappers.GlobalRibbonSupport.GetExplorerRibbonCalculationResult(Dictionary`2 tabSets)
    at Microsoft.Crm.Application.SMWrappers.GlobalRibbonSupport.CalculateExplorerCustomUI(ExplorerRibbonCalculation calculation)
    at Microsoft.Crm.Application.SMWrappers.GlobalRibbonSupport.<InitiateRibbonAddinReload>b__1(Object state)
    at Microsoft.Crm.Application.SMWrappers.OutlookInstanceCache.<>c__DisplayClass17.<>c__DisplayClass1a.<QueueUserWorkItemSilent>b__15()
    at Microsoft.ExceptionHelper.ExceptionFilter.TryFilterAllCatch(Action body, Action`1 filter)

    at <>c__DisplayClass5.<.ctor>b__3(Object )  ilOffset = 0x6A
    at QueueUserWorkItemCallback.WaitCallback_Context(Object state)  ilOffset = 0x1A
    at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)  ilOffset = 0x8E
    at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  ilOffset = 0x35
    at ThreadPoolWorkQueue.Dispatch()  ilOffset = 0x81
    at _ThreadPoolWaitCallback.PerformWaitCallback()  ilOffset = 0x51
    >DataStore.Initialize failed. Exception type:System.Collections.Generic.KeyNotFoundException
    Message:The given key was not present in the dictionary.
    StackTrace:
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
    at Microsoft.Crm.MapiStore.EntityTypeSchema..ctor(MetadataSnapshot metadataSnapshot, EntityMetadata metadata, IClientOrganizationContext context)
    at Microsoft.Crm.MapiStore.EntityTypeSchema.Create(MetadataSnapshot metadataSnapshot, EntityMetadata entityMetadata, IClientOrganizationContext context)
    at Microsoft.Crm.MapiStore.DataStore.MetadataSnapshot..ctor(ICrmServerStore serverStore)
    at Microsoft.Crm.MapiStore.ServerStore.CheckMetadataCacheUpdate(TimeSpan minimumTimeSpan)
    at Microsoft.Crm.MapiStore.ServerStore.CreateCache(String filePath, Boolean allowServerConnection, Boolean replaceFile)
    at Microsoft.Crm.MapiStore.ServerStore..ctor(DataStore dataStore, Boolean offline, Boolean allowServerConnection)
    at Microsoft.Crm.MapiStore.DataStore.Initialize(Boolean allowServerConnection, Boolean configuring)
    at Microsoft.Crm.MapiStore.DataStore.<>c__DisplayClass5.<.ctor>b__3(Object )






    • Edited by Allan Ho Tuesday, July 22, 2014 5:38 AM
    Tuesday, July 22, 2014 5:13 AM

All replies

  • Try these:

    Make sure the Outlook plugin is the correct version for the CRM and Outlook version.

    Re-install the outlook plugin.

    Make sure the filters are enabled and working properly if you modified anything.

    Look at the local logs for any pointers.

    Tuesday, July 22, 2014 2:35 PM
  • The Outlook plugin is correct for Office 2010 32-bit and for 2011.

    I have tried re-installing the full plugin and update rollups, note that this occurs on another machine when logged in with that same user.

    CRM Outlook sync filters have been reset many times and manually verified to ensure there is nothing wrong there.

    Event logs were not providing anything useful, all i could find was the CRM trace log which I've provided above.

    ---

    Update: http://support.microsoft.com/kb/2616319/en-us

    Deleting the SDF database from SQL CE database resolve the issue on the next load of Outlook.

    But after a restart of Outlook - the same problem resurfaces.

    • Edited by Allan Ho Wednesday, July 23, 2014 12:31 AM
    Tuesday, July 22, 2014 11:07 PM