none
The view doesn't works with CRM for Outlook

    Question

  • I've made a view into CRM Advanced Find with some filters. When I see the view from Outlook it works normaly, but when I set a filter to a specific user, the screen stay loading until I close the view.

    The problem just happening with one specific user.

    Do you have any suggestion?

    The client for Outlook trace is below:

    [2017-03-17 12:15:41.745]

    Process:OUTLOOK |Organization:7cec4fb4-3e95-4bce-b2d1-2702f160f66a |Thread:    7 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId:  | <>c__DisplayClass14.<QueueUserWorkItemSilent>b__13  ilOffset = 0x6

            at <>c__DisplayClass14.<QueueUserWorkItemSilent>b__13(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 Dictionary`2.get_Item(TKey key)  ilOffset = 0x0

            at CacheSourceData.GetCacheValue(AttributeInfoBase attributeInfo, Object value, Boolean getIdForReferenceType, IDictionary`2 optionSetValues)  ilOffset = 0x90

            at CacheSourceData.ProcessEntityCollection(DataTable dt, EntityCollection entityCollection, HashSet`1 linkedVersionNumberAttributes)  ilOffset = 0x169

            at CacheSourceData.RetrievePageWithFetch(ICrmServerStore serverStore, DataTable dt, FetchDefinition fetchDefinition, Int32 pageInfoCount, Int32 pageInfoPageNumber, String pageInfoPagingCookie, Boolean isCacheSyncOperation, Nullable`1& newMinActiveRowVersion)  ilOffset = 0x194

            at <>c__DisplayClassac.<FetchDataOrPage>b__a7(Int32 pageInfoCount, Int32 pageInfoPageNumber, Boolean isCacheSync, String pageInfoPagingCookie)  ilOffset = 0x34B

            at CacheSourceData.ProcessPagedItems(Boolean onePageOnly, Int32 pageSize, Int32 pageIndex, String pagingCookie, ProcessPageDelegate processPage)  ilOffset = 0x28

            at CacheSourceData.FetchDataOrPage(DataTable dt, DataCache cache, Boolean fetchPage, Int32 pageSize, Int32 pageIndex, String pagingCookie, List`1 sortSet, IEnumerable`1 instanceIds, Nullable`1& minActiveRowVersion, Boolean periodicFlush)  ilOffset = 0x67

            at DataCache.FetchDataOrPage(Boolean fetchPage, Int32 pageSize, Int32 pageIndex, String pagingCookie, List`1 sortSet, IEnumerable`1 instanceIds, Nullable`1& minActiveRowVersion, Boolean periodicFlush)  ilOffset = 0x289

            at DataCache.FetchPage(Int32 pageSize, Int32 pageIndex, String pagingCookie, List`1 sortSet)  ilOffset = 0x15

            at <>c__DisplayClass5d.<CreatePage>b__5c(Object unusedState)  ilOffset = 0x23

            at <>c__DisplayClass17.<QueueUserWorkItemSilent>b__12()  ilOffset = 0x16

            at ExceptionFilter.TryFilterAllCatch(Action body, Action`1 filter)  ilOffset = 0xF

            at <>c__DisplayClass14.<QueueUserWorkItemSilent>b__11(Object innerState)  ilOffset = 0x42

            at QueueUserWorkItemCallback.WaitCallback_Context(Object state)  ilOffset = 0x18

            at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x79

            at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x9

            at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  ilOffset = 0x33

            at ThreadPoolWorkQueue.Dispatch()  ilOffset = 0xA4

            at _ThreadPoolWaitCallback.PerformWaitCallback()  ilOffset = 0x0

    > HandleException: Unhandled Exception: System.Collections.Generic.KeyNotFoundException: A chave indicada não estava presente no dicionário.

       em System.Collections.Generic.Dictionary`2.get_Item(TKey key)

       em Microsoft.Crm.MapiStore.DataCache.CacheSources.CacheSourceData.GetCacheValue(AttributeInfoBase attributeInfo, Object value, Boolean getIdForReferenceType, IDictionary`2 optionSetValues)

       em Microsoft.Crm.MapiStore.DataCache.CacheSources.CacheSourceData.ProcessEntityCollection(DataTable dt, EntityCollection entityCollection, HashSet`1 linkedVersionNumberAttributes)

       em Microsoft.Crm.MapiStore.DataCache.CacheSources.CacheSourceData.RetrievePageWithFetch(ICrmServerStore serverStore, DataTable dt, FetchDefinition fetchDefinition, Int32 pageInfoCount, Int32 pageInfoPageNumber, String pageInfoPagingCookie, Boolean isCacheSyncOperation, Nullable`1& newMinActiveRowVersion)

       em Microsoft.Crm.MapiStore.DataCache.CacheSources.CacheSourceData.<>c__DisplayClassac.<FetchDataOrPage>b__a7(Int32 pageInfoCount, Int32 pageInfoPageNumber, Boolean isCacheSync, String pageInfoPagingCookie)

       em Microsoft.Crm.MapiStore.DataCache.CacheSources.CacheSourceData.ProcessPagedItems(Boolean onePageOnly, Int32 pageSize, Int32 pageIndex, String pagingCookie, ProcessPageDelegate processPage)

       em Microsoft.Crm.MapiStore.DataCache.CacheSources.CacheSourceData.FetchDataOrPage(DataTable dt, DataCache cache, Boolean fetchPage, Int32 pageSize, Int32 pageIndex, String pagingCookie, List`1 sortSet, IEnumerable`1 instanceIds, Nullable`1& minActiveRowVersion, Boolean periodicFlush)

       em Microsoft.Crm.MapiStore.DataCache.FetchDataOrPage(Boolean fetchPage, Int32 pageSize, Int32 pageIndex, String pagingCookie, List`1 sortSet, IEnumerable`1 instanceIds, Nullable`1& minActiveRowVersion, Boolean periodicFlush)

       em Microsoft.Crm.MapiStore.DataCache.FetchPage(Int32 pageSize, Int32 pageIndex, String pagingCookie, List`1 sortSet)

       em Microsoft.Crm.MapiStore.DataCache.<>c__DisplayClass5d.<CreatePage>b__5c(Object unusedState)

       em Microsoft.Crm.Application.SMWrappers.OutlookInstanceCache.<>c__DisplayClass14.<>c__DisplayClass17.<QueueUserWorkItemSilent>b__12()

       em Microsoft.ExceptionHelper.ExceptionFilter.TryFilterAllCatch(Action body, Action`1 filter)

    Friday, March 17, 2017 3:41 PM

All replies

  • In crm outlook views are automatically modified to get better performance.Just a thought, this could be related to that issue. 

    Ramanathan Rajendran MCTS - Dynamics CRM

    Sunday, March 19, 2017 6:35 AM
  • Hi,

    Can this be because that specific user does not have enough privileges to view the records included in the view?

    Thanks


    Sachith Chandrasiri

    Sunday, March 19, 2017 10:03 PM
  • Hi Ramanthan, 

    The problem has been happening with one specific user, the others are works.

    If I do exactcly the same filter but changing the user (who is owner of more records than the problematic user), the view is renderized.



    Tuesday, March 21, 2017 7:14 PM
  • Hi Sachith,

    The user is System Administrator.

    Thanks.

    Tuesday, March 21, 2017 7:17 PM
  • Completely uninstall the Outlook Client from the user machine and then delete the MSCRM folder from the logged in user's directory

    C:\Users\<LoggedInUserName\AppData\Roaming\Microsoft\MSCRM

    Download the latest Outlook Client that matches the server version and install.  Ensure the updates on the client match the server as well.  Download and install any needed then try again.  If it still throws the error, delete the OST file and let outlook rebuild it.


    Use the "Vote" option if the reply was helpful and "Answer" option if it answered your question. Thank you for helping others find helpful and answered posts!

    Monday, April 17, 2017 7:47 PM
    Owner