locked
when tracking the emails in crm 2011 outlook client error coming RRS feed

  • Question

  • Dear ALL;

    when tring to track emails in outlook for crm 2011 in the event viewer i am receiving this error 

    An error occurred retrieving data from the Microsoft CRM server for processing Microsoft CRM-related e-mail messages.  Not all CRM-related e-mail messages may be marked appropriately.  Verify that the current user has appropriate permissions and server connectivity and try the action again

    some times it works soem times does not please help

    Wednesday, December 19, 2012 10:32 AM

All replies

  • Hi,

    Can you put here the trace of error, in some emails CRM do tasks in background  and the user may not have permissions for that. For example i have the option "auto routing" enabled, because that CRM created the email as a queue item, and the user don't have permissions for that.

    But in trace i think we can understand better the problem.

    Hope this helps.
    If i answered your question, please mark the response as an answer and also vote as helpful.


    Pedro Azevedo Crm Specialist 4.0\2011

    Wednesday, December 19, 2012 10:45 AM
  • Make sure user have proper permission on email entity, to get details about issue you could get trace and check for error details.

    HTH


    Contact Me
    Follow me on Twitter
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Wednesday, December 19, 2012 10:47 AM
  • Hi mahender this the trace info

    [2012-12-19 13:40:30.704] Process: w3wp |Organization:ff837023-7833-4d7d-870c-5piou856a0fa |Thread:    6 |Category: Exception |User: 47a504c1-1cc0-db11-8a03-00163503f300 |Level: Error |ReqId: e42a1c5d-29b4-48cf-a019-5efda9479263 | CrmException..ctor

                    at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)

                    at CrmException..ctor(String message, Exception innerException, Int32 errorCode)

                    at RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType)

                    at RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

                    at RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)

                    at VersionedPluginProxyStepBase.WrapExceptionToThrow(CrmException exception)

                    at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

                    at Pipeline.Execute(PipelineExecutionContext context)

                    at MessageProcessor.Execute(PipelineExecutionContext context)

                    at InternalMessageDispatcher.Execute(PipelineExecutionContext context)

                    at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)

                    at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)

                    at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)

                    at

                    at SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)

                    at DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)

                    at ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)

                    at ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)

                    at MessageRpc.Process(Boolean isOperationContextSet)

                    at ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)

                    at ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)

                    at ChannelHandler.AsyncMessagePump(IAsyncResult result)

                    at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

                    at AsyncResult.Complete(Boolean completedSynchronously)

                    at ReceiveItemAndVerifySecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)

                    at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

                    at AsyncResult.Complete(Boolean completedSynchronously)

                    at AsyncQueueReader.Set(Item item)

                    at InputQueue`1.Dispatch()

                    at ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)

                    at IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)

                    at _IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

    >Crm Exception: Message: email With Id = ca194ae1-ae49-e211-a855-5piou856a0fa Does Not Exist, ErrorCode: -2147220969, InnerException: Microsoft.Crm.BusinessEntities.CrmObjectNotFoundException: email With Id = ca194ae1-ae49-e211-a855-00155d03679f Does Not Exist

       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32 languageCode, DatabaseQueryTarget queryTarget)

       at Microsoft.Crm.ObjectModel.CommunicationActivityServiceBase.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context)

    [2012-12-19 13:40:30.705] Process: w3wp |Organization:ff837023-7833-4d7d-870c-f83b0856a0fa |Thread:    6 |Category: Platform |User: 47a504c1-1cc0-db11-8a03-00163503f300 |Level: Error |ReqId: e42a1c5d-29b4-48cf-a019-5efda9479263 | MessageProcessor.Execute

                    at MessageProcessor.Execute(PipelineExecutionContext context)

                    at InternalMessageDispatcher.Execute(PipelineExecutionContext context)

                    at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)

                    at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)

                    at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)

                    at

                    at SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)

                    at DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)

                    at ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)

                    at ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)

                    at MessageRpc.Process(Boolean isOperationContextSet)

                    at ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)

                    at ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)

                    at ChannelHandler.AsyncMessagePump(IAsyncResult result)

                    at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

                    at AsyncResult.Complete(Boolean completedSynchronously)

                    at ReceiveItemAndVerifySecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)

                    at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

                    at AsyncResult.Complete(Boolean completedSynchronously)

                    at AsyncQueueReader.Set(Item item)

                    at InputQueue`1.Dispatch()

                    at ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)

                    at IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)

                    at _IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

    >MessageProcessor fail to process message 'Retrieve' for 'email'.

    Wednesday, December 19, 2012 12:48 PM
  • [2012-12-19 13:40:30.704] Process: w3wp |Organization:ff837023-7833-4d7d-870c-5piou856a0fa |Thread:    6 |Category: Exception |User: 47a504c1-1cc0-db11-8a03-00163503f300 |Level: Error |ReqId: e42a1c5d-29b4-48cf-a019-5efda9479263 | CrmException..ctor

                    at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)

                    at CrmException..ctor(String message, Exception innerException, Int32 errorCode)

                    at RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType)

                    at RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

                    at RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)

                    at VersionedPluginProxyStepBase.WrapExceptionToThrow(CrmException exception)

                    at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

                    at Pipeline.Execute(PipelineExecutionContext context)

                    at MessageProcessor.Execute(PipelineExecutionContext context)

                    at InternalMessageDispatcher.Execute(PipelineExecutionContext context)

                    at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)

                    at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)

                    at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)

                    at

                    at SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)

                    at DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)

                    at ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)

                    at ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)

                    at MessageRpc.Process(Boolean isOperationContextSet)

                    at ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)

                    at ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)

                    at ChannelHandler.AsyncMessagePump(IAsyncResult result)

                    at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

                    at AsyncResult.Complete(Boolean completedSynchronously)

                    at ReceiveItemAndVerifySecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)

                    at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

                    at AsyncResult.Complete(Boolean completedSynchronously)

                    at AsyncQueueReader.Set(Item item)

                    at InputQueue`1.Dispatch()

                    at ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)

                    at IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)

                    at _IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

    >Crm Exception: Message: email With Id = ca194ae1-ae49-e211-a855-5piou856a0fa Does Not Exist, ErrorCode: -2147220969, InnerException: Microsoft.Crm.BusinessEntities.CrmObjectNotFoundException: email With Id = ca194ae1-ae49-e211-a855-00155d03679f Does Not Exist

       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32 languageCode, DatabaseQueryTarget queryTarget)

       at Microsoft.Crm.ObjectModel.CommunicationActivityServiceBase.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context)

    [2012-12-19 13:40:30.705] Process: w3wp |Organization:ff837023-7833-4d7d-870c-f83b0856a0fa |Thread:    6 |Category: Platform |User: 47a504c1-1cc0-db11-8a03-00163503f300 |Level: Error |ReqId: e42a1c5d-29b4-48cf-a019-5efda9479263 | MessageProcessor.Execute

                    at MessageProcessor.Execute(PipelineExecutionContext context)

                    at InternalMessageDispatcher.Execute(PipelineExecutionContext context)

                    at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)

                    at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)

                    at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)

                    at

                    at SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)

                    at DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)

                    at ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)

                    at ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)

                    at MessageRpc.Process(Boolean isOperationContextSet)

                    at ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)

                    at ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)

                    at ChannelHandler.AsyncMessagePump(IAsyncResult result)

                    at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

                    at AsyncResult.Complete(Boolean completedSynchronously)

                    at ReceiveItemAndVerifySecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)

                    at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

                    at AsyncResult.Complete(Boolean completedSynchronously)

                    at AsyncQueueReader.Set(Item item)

                    at InputQueue`1.Dispatch()

                    at ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)

                    at IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)

                    at _IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

    >MessageProcessor fail to process message 'Retrieve' for 'email'.

    Wednesday, December 19, 2012 12:48 PM
    1. Try giving the user(s) the system admin role temporarily to verify if it is a permissions issue. If it is a security role issue you can possibly turn on Server side tracing or take a fiddler trace. I have used fiddler quite a bit to troubleshoot permissions issues.
    2. Check to see if “Automatically move records to the owner’s default queue when a record is created or assigned” is checked on the E-Mail Entity in Customizations. I have seen this option cause Email promotion issues.

    If it is just one user that is having the issue and they have the same role as a user that can promote items try the following.

    1. Apply Update Rollup 11 to the Client If it’s not already applied

     

    2. Delete temporary CRM Outlook cache

                    a. Start> All Programs> Microsoft Dynamics CRM 2011> Diagnostics

                    b. Click on the Advanced Troubleshooting tab and then Click the Delete button

     

    3. Delete the SQL CE database on the Client machine:

                    a. Close Outlook

                    b. Browse to C:\Users\<loggedinuser>\AppData\Roaming\Microsoft\MSCRM\Client

                    c. Delete the EmailCache.sdf and the OutlookSyncCache.sdf files

                    d. Browse to C:\Users\<loggedinuser>\AppData\Local\Microsoft\MSCRM\Client

                    e. Delete the CRMcache.sdf file and the  GUIDFalse.sdf file    <---the GUIDFalse.sdf file will be a long alphanumeric name

                    f. Relaunch Outlook and the files will get recreated.

    Wednesday, December 19, 2012 7:55 PM
  • Hi chris;

    2. Delete temporary CRM Outlook cache

                    a. Start> All Programs> Microsoft Dynamics CRM 2011> Diagnostics

                    b. Click on the Advanced Troubleshooting tab and then Click the Delete button

    that worked but after 3 more test that start giving me the error again

    Wednesday, December 19, 2012 9:12 PM
  • Dear ALL;;

    when i am tring to track email in mscrm 2011 outlook client i am getting this error 

    An error occurred retrieving data from the Microsoft CRM server for processing Microsoft CRM-related e-mail messages.
    Not all CRM-related e-mail messages may be marked appropriately.
    Verify that the current user has appropriate permissions and server connectivity and try the action again. 
    HR=0x80040216. Context=. Function=CEmailTagger::Run. Line=410.

    Thursday, December 20, 2012 11:49 AM