Hi all
On on-premise Dynamics 2016 (8.1.0.359) with folder tracking and server-sync with on-premise Exchange, we are gettting intermittent failures which result in some of the emails not being synced.
In the trace, I can see the following:
[2018-06-21 10:57:56.506] Process:CrmAsyncService |Organization:5bad7c29-ba14-e711-80e9-0050569820bd |Thread: 138 |Category: Platform.Sdk |User: d6cdab7a-09c7-4357-a6c1-9d411ff85c2d |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | VersionedPluginProxyStepBase.Execute ilOffset = 0x65 at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) ilOffset = 0x65 at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action) ilOffset = 0x2D at Pipeline.Execute(PipelineExecutionContext context) ilOffset = 0xD8 at <>c__DisplayClass1.<RunStage>b__0() ilOffset = 0x0 at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action) ilOffset = 0x2D at MessageProcessor.RunStage(PipelineExecutionContext context, Int32 pipelineStage) ilOffset = 0x39 at MessageProcessor.Execute(PipelineExecutionContext context) ilOffset = 0x1EB at InternalMessageDispatcher.Execute(PipelineExecutionContext context) ilOffset = 0xE4 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 callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion) ilOffset = 0x22D at OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode, Object operation, UserType targetUserType) ilOffset = 0x28B at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Guid targetCallerRegardingObjectId, UserType targetUserType, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode) ilOffset = 0x37 at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext) ilOffset = 0x58 at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext) ilOffset = 0x28 at InprocessServiceProxy.ExecuteCore(OrganizationRequest request) ilOffset = 0x34 at IncomingEmailProviderBase.ExecuteDeliverPromoteEmailRequest(IExchangeEmailMessage exchangeEmailMessage, Boolean filterNonXml) ilOffset = 0x23C at IncomingEmailProviderBase.DeliverPromote(IExchangeEmailMessage exchangeEmailMessage) ilOffset = 0xC9 at GetAttachmentStep.DoesAllAttachmentProcessed(IExchangeEmailMessage emailMessage) ilOffset = 0x3C at GetAttachmentStep.ProcessResponse() ilOffset = 0x5AA at ExchangeIncomingEmailProviderStep.EndOperation() ilOffset = 0x35D at ExchangeIncomingEmailProvider.ReceiveEmails() ilOffset = 0x80 at IncomingActivityProviderBase.Run() ilOffset = 0x42 at MailboxEmailOperation.PerformOperation() ilOffset = 0x2C at MailboxOperationBase`1.Execute() ilOffset = 0xAA at MailboxProcessingOperation.PerformOperation() ilOffset = 0x1A at MailboxOperationBase`1.Execute() ilOffset = 0xAA at MailboxOperationCommand.InternalExecute(MailboxAsyncEvent asyncEvent) ilOffset = 0x64 at AsyncCallbackHandler`2.ResumeExecution(IAsyncEvent asyncEvent) ilOffset = 0x5B at AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory) ilOffset = 0x84 at PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager) ilOffset = 0x217 at AsyncEventOperation.<.ctor>b__2(IServiceOperation operation) ilOffset = 0x0 at FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter) ilOffset = 0x18 at MonitoredOperation.Execute() ilOffset = 0xD at ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state) ilOffset = 0x16 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 >Web Service Plug-in failed in SdkMessageProcessingStepId: {D1CABB1B-EA3E-DB11-86A7-000A3A5473E8}; EntityName: email; Stage: 30; MessageName: DeliverPromote; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values) at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider) at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context) at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) Inner Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array. at Microsoft.Crm.ObjectModel.CommunicationActivityServiceBase.AutoCreateContactOrLead(BusinessEntity entity, ExecutionContext context, String subject, AddressEntry[] fromAddressEntries, AddressEntry[][] allResolvedAddressEntries) at Microsoft.Crm.Common.ObjectModel.EmailService.Deliver(Boolean userPromote, Guid emailId, String messageId, String subject, String from, String to, String cc, String bcc, DateTime receivedOn, String submittedBy, String importance, String body, BusinessEntityCollection attachments, Guid campaignResponseId, Entity emailDeltaEntity, ExecutionContext context, Boolean validateBeforeDeliver) at Microsoft.Crm.Common.ObjectModel.EmailService.DeliverPromote(Guid emailId, String messageId, String subject, String from, String to, String cc, String bcc, DateTime receivedOn, String submittedBy, String importance, String body, Entity extraProperties, BusinessEntityCollection attachments, ExecutionContext context) . [2018-06-21 10:57:56.600] Process:CrmAsyncService |Organization:5bad7c29-ba14-e711-80e9-0050569820bd |Thread: 138 |Category: Exception |User: d6cdab7a-09c7-4357-a6c1-9d411ff85c2d |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | CrmException..ctor ilOffset = 0x9 at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, TraceCategory traceCategory) ilOffset = 0x9 at CrmException..ctor(Exception innerException, Int32 errorCode, Object[] arguments) ilOffset = 0xC at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) ilOffset = 0x65 at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action) ilOffset = 0x2D at Pipeline.Execute(PipelineExecutionContext context) ilOffset = 0xD8 at <>c__DisplayClass1.<RunStage>b__0() ilOffset = 0x0 at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action) ilOffset = 0x2D at MessageProcessor.RunStage(PipelineExecutionContext context, Int32 pipelineStage) ilOffset = 0x39 at MessageProcessor.Execute(PipelineExecutionContext context) ilOffset = 0x1EB at InternalMessageDispatcher.Execute(PipelineExecutionContext context) ilOffset = 0xE4 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 callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion) ilOffset = 0x22D at OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode, Object operation, UserType targetUserType) ilOffset = 0x28B at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Guid targetCallerRegardingObjectId, UserType targetUserType, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode) ilOffset = 0x37 at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext) ilOffset = 0x58 at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext) ilOffset = 0x28 at InprocessServiceProxy.ExecuteCore(OrganizationRequest request) ilOffset = 0x34 at IncomingEmailProviderBase.ExecuteDeliverPromoteEmailRequest(IExchangeEmailMessage exchangeEmailMessage, Boolean filterNonXml) ilOffset = 0x23C at IncomingEmailProviderBase.DeliverPromote(IExchangeEmailMessage exchangeEmailMessage) ilOffset = 0xC9 at GetAttachmentStep.DoesAllAttachmentProcessed(IExchangeEmailMessage emailMessage) ilOffset = 0x3C at GetAttachmentStep.ProcessResponse() ilOffset = 0x5AA at ExchangeIncomingEmailProviderStep.EndOperation() ilOffset = 0x35D at ExchangeIncomingEmailProvider.ReceiveEmails() ilOffset = 0x80 at IncomingActivityProviderBase.Run() ilOffset = 0x42 at MailboxEmailOperation.PerformOperation() ilOffset = 0x2C at MailboxOperationBase`1.Execute() ilOffset = 0xAA at MailboxProcessingOperation.PerformOperation() ilOffset = 0x1A at MailboxOperationBase`1.Execute() ilOffset = 0xAA at MailboxOperationCommand.InternalExecute(MailboxAsyncEvent asyncEvent) ilOffset = 0x64 at AsyncCallbackHandler`2.ResumeExecution(IAsyncEvent asyncEvent) ilOffset = 0x5B at AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory) ilOffset = 0x84 at PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager) ilOffset = 0x217 at AsyncEventOperation.<.ctor>b__2(IServiceOperation operation) ilOffset = 0x0 at FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter) ilOffset = 0x18 at MonitoredOperation.Execute() ilOffset = 0xD at ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state) ilOffset = 0x16 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 >Crm Exception: Message: An unexpected error occurred., ErrorCode: -2147220970, InnerException: System.IndexOutOfRangeException: Index was outside the bounds of the array. at Microsoft.Crm.ObjectModel.CommunicationActivityServiceBase.AutoCreateContactOrLead(BusinessEntity entity, ExecutionContext context, String subject, AddressEntry[] fromAddressEntries, AddressEntry[][] allResolvedAddressEntries) at Microsoft.Crm.Common.ObjectModel.EmailService.Deliver(Boolean userPromote, Guid emailId, String messageId, String subject, String from, String to, String cc, String bcc, DateTime receivedOn, String submittedBy, String importance, String body, BusinessEntityCollection attachments, Guid campaignResponseId, Entity emailDeltaEntity, ExecutionContext context, Boolean validateBeforeDeliver) at Microsoft.Crm.Common.ObjectModel.EmailService.DeliverPromote(Guid emailId, String messageId, String subject, String from, String to, String cc, String bcc, DateTime receivedOn, String submittedBy, String importance, String body, Entity extraProperties, BusinessEntityCollection attachments, ExecutionContext context) [2018-06-21 10:57:56.600] Process:CrmAsyncService |Organization:5bad7c29-ba14-e711-80e9-0050569820bd |Thread: 138 |Category: Platform |User: d6cdab7a-09c7-4357-a6c1-9d411ff85c2d |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | MessageProcessor.Execute ilOffset = 0x1EB at MessageProcessor.Execute(PipelineExecutionContext context) ilOffset = 0x1EB at InternalMessageDispatcher.Execute(PipelineExecutionContext context) ilOffset = 0xE4 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 callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion) ilOffset = 0x22D at OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode, Object operation, UserType targetUserType) ilOffset = 0x28B at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Guid targetCallerRegardingObjectId, UserType targetUserType, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode) ilOffset = 0x37 at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext) ilOffset = 0x58 at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext) ilOffset = 0x28 at InprocessServiceProxy.ExecuteCore(OrganizationRequest request) ilOffset = 0x34 at IncomingEmailProviderBase.ExecuteDeliverPromoteEmailRequest(IExchangeEmailMessage exchangeEmailMessage, Boolean filterNonXml) ilOffset = 0x23C at IncomingEmailProviderBase.DeliverPromote(IExchangeEmailMessage exchangeEmailMessage) ilOffset = 0xC9 at GetAttachmentStep.DoesAllAttachmentProcessed(IExchangeEmailMessage emailMessage) ilOffset = 0x3C at GetAttachmentStep.ProcessResponse() ilOffset = 0x5AA at ExchangeIncomingEmailProviderStep.EndOperation() ilOffset = 0x35D at ExchangeIncomingEmailProvider.ReceiveEmails() ilOffset = 0x80 at IncomingActivityProviderBase.Run() ilOffset = 0x42 at MailboxEmailOperation.PerformOperation() ilOffset = 0x2C at MailboxOperationBase`1.Execute() ilOffset = 0xAA at MailboxProcessingOperation.PerformOperation() ilOffset = 0x1A at MailboxOperationBase`1.Execute() ilOffset = 0xAA at MailboxOperationCommand.InternalExecute(MailboxAsyncEvent asyncEvent) ilOffset = 0x64 at AsyncCallbackHandler`2.ResumeExecution(IAsyncEvent asyncEvent) ilOffset = 0x5B at AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory) ilOffset = 0x84 at PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager) ilOffset = 0x217 at AsyncEventOperation.<.ctor>b__2(IServiceOperation operation) ilOffset = 0x0 at FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter) ilOffset = 0x18 at MonitoredOperation.Execute() ilOffset = 0xD at ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state) ilOffset = 0x16 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 >MessageProcessor fail to process message 'DeliverPromote' for 'email'. [2018-06-21 10:57:56.616] Process:CrmAsyncService |Organization:00000000-0000-0000-0000-000000000000 |Thread: 138 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | ExceptionConverter.ConvertMessageAndErrorCode ilOffset = 0x221 at ExceptionConverter.ConvertMessageAndErrorCode(Exception exception, Int32& errorCode) ilOffset = 0x221 at ExceptionConverter.ToSingleFaultOther(Exception exception) ilOffset = 0x2B at ExceptionConverter.ToSingleFaultUnTyped(Exception exception) ilOffset = 0x3A at ExceptionConverter.ConvertToFault(Exception exception) ilOffset = 0x69 at ExceptionConverter.TryConvertToFaultExceptionInternal(Exception exception, Boolean createNewFaultException, FaultException`1& faultException) ilOffset = 0x6D at FaultHelper.ConvertToFault(Exception exception) ilOffset = 0x0 at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext) ilOffset = 0x28 at InprocessServiceProxy.ExecuteCore(OrganizationRequest request) ilOffset = 0x34 at IncomingEmailProviderBase.ExecuteDeliverPromoteEmailRequest(IExchangeEmailMessage exchangeEmailMessage, Boolean filterNonXml) ilOffset = 0x23C at IncomingEmailProviderBase.DeliverPromote(IExchangeEmailMessage exchangeEmailMessage) ilOffset = 0xC9 at GetAttachmentStep.DoesAllAttachmentProcessed(IExchangeEmailMessage emailMessage) ilOffset = 0x3C at GetAttachmentStep.ProcessResponse() ilOffset = 0x5AA at ExchangeIncomingEmailProviderStep.EndOperation() ilOffset = 0x35D at ExchangeIncomingEmailProvider.ReceiveEmails() ilOffset = 0x80 at IncomingActivityProviderBase.Run() ilOffset = 0x42 at MailboxEmailOperation.PerformOperation() ilOffset = 0x2C at MailboxOperationBase`1.Execute() ilOffset = 0xAA at MailboxProcessingOperation.PerformOperation() ilOffset = 0x1A at MailboxOperationBase`1.Execute() ilOffset = 0xAA at MailboxOperationCommand.InternalExecute(MailboxAsyncEvent asyncEvent) ilOffset = 0x64 at AsyncCallbackHandler`2.ResumeExecution(IAsyncEvent asyncEvent) ilOffset = 0x5B at AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory) ilOffset = 0x84 at PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager) ilOffset = 0x217 at AsyncEventOperation.<.ctor>b__2(IServiceOperation operation) ilOffset = 0x0 at FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter) ilOffset = 0x18 at MonitoredOperation.Execute() ilOffset = 0xD at ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state) ilOffset = 0x16 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 >System.IndexOutOfRangeException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CFD04520: System.IndexOutOfRangeException: Index was outside the bounds of the array. > at Microsoft.Crm.ObjectModel.CommunicationActivityServiceBase.AutoCreateContactOrLead(BusinessEntity entity, ExecutionContext context, String subject, AddressEntry[] fromAddressEntries, AddressEntry[][] allResolvedAddressEntries) > at Microsoft.Crm.Common.ObjectModel.EmailService.Deliver(Boolean userPromote, Guid emailId, String messageId, String subject, String from, String to, String cc, String bcc, DateTime receivedOn, String submittedBy, String importance, String body, BusinessEntityCollection attachments, Guid campaignResponseId, Entity emailDeltaEntity, ExecutionContext context, Boolean validateBeforeDeliver) > at Microsoft.Crm.Common.ObjectModel.EmailService.DeliverPromote(Guid emailId, String messageId, String subject, String from, String to, String cc, String bcc, DateTime receivedOn, String submittedBy, String importance, String body, Entity extraProperties, BusinessEntityCollection attachments, ExecutionContext context) [2018-06-21 10:57:56.616] Process:CrmAsyncService |Organization:5bad7c29-ba14-e711-80e9-0050569820bd |Thread: 138 |Category: EmailConnector |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | EmailConnectorTraceHandler.EmailConnectorTraceFormat ilOffset = 0x161 at EmailConnectorTraceHandler.EmailConnectorTraceFormat(Guid orgId, Object mailbox, Guid asyncEventId, TraceCategory traceCategory, TraceLevel traceLevel, String data) ilOffset = 0x161 at EmailConnectorTrafficMonitor.LogAllHeaders(TraceLevel logLevel, String logHeading) ilOffset = 0xA1 at <>c__DisplayClass4.<.ctor>b__2(Object sender, EventArgs args) ilOffset = 0x7E at EventHandler.Invoke(Object sender, EventArgs e) ilOffset = 0xFFFFFFFF at ErrorHandler`1.HandleError(IErrorInfo errorInfo) ilOffset = 0x34 at IncomingEmailProviderBase.DeliverPromote(IExchangeEmailMessage exchangeEmailMessage) ilOffset = 0x3D4 at GetAttachmentStep.DoesAllAttachmentProcessed(IExchangeEmailMessage emailMessage) ilOffset = 0x3C at GetAttachmentStep.ProcessResponse() ilOffset = 0x5AA at ExchangeIncomingEmailProviderStep.EndOperation() ilOffset = 0x35D at ExchangeIncomingEmailProvider.ReceiveEmails() ilOffset = 0x80 at IncomingActivityProviderBase.Run() ilOffset = 0x42 at MailboxEmailOperation.PerformOperation() ilOffset = 0x2C at MailboxOperationBase`1.Execute() ilOffset = 0xAA at MailboxProcessingOperation.PerformOperation() ilOffset = 0x1A at MailboxOperationBase`1.Execute() ilOffset = 0xAA at MailboxOperationCommand.InternalExecute(MailboxAsyncEvent asyncEvent) ilOffset = 0x64 at AsyncCallbackHandler`2.ResumeExecution(IAsyncEvent asyncEvent) ilOffset = 0x5B at AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory) ilOffset = 0x84 at PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager) ilOffset = 0x217 at AsyncEventOperation.<.ctor>b__2(IServiceOperation operation) ilOffset = 0x0 at FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter) ilOffset = 0x18 at MonitoredOperation.Execute() ilOffset = 0xD at ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state) ilOffset = 0x16 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 >Logging request/response headers in: ExchangeIncomingEmailProvider for AsyncEvent: b3107f4d-8527-46fc-82b9-1951c7d3ed8f, Mailbox: 667d6ba5-cf55-e711-80ec-0050569820bd -- >Transfer-Encoding: chunked, >request-id: 8ba570b5-cd0d-4ff2-a728-f317cc7dec67, >client-request-id: f8dd282a-1001-4ac7-9c89-215f339fd790, >X-CalculatedBETarget: contoso.com, >X-DiagInfo: EXC03Z, >X-BEServer: EXC03Z, >Cache-Control: private, >Content-Type: text/xml; charset=utf-8, >Set-Cookie: exchangecookie=1bacc82042ad4abbacc50e57781d5386; path=/,X-BackEndCookie=S-1-5-21-2125414852-1188450605-972441984-29215=u56Lnp2ejJqBnsnJzJrGmsfSmpydztLLz5qc0saezM3Sms7PmZ7PzsidyM6ZgYHNz87H0s/I0s3Oq87LxcrIxcrJ; expires=Sat, 21-Jul-2018 14:57:56 GMT; path=/EWS; secure; HttpOnly, >Server: Microsoft-IIS/8.5, >X-AspNet-Version: 4.0.30319, >Persistent-Auth: true, >X-Powered-By: ASP.NET, >X-FEServer: EXC01Z, >Date: Thu, 21 Jun 2018 14:57:56 GMT
There is only one active mailbox, one server profile, with credentials specified by a User and account set for server-sync, folder tracking is enabled with 5 rules and there is no connection with the error and tracking folder (it works or fails for different folders). User is moving manually emails from Inbox to to tracking folder.
In Server-side Sync Monitoring, I can see failures but these are not helpfull at all as I can only see mailbox name and timestamp.
As I mentioned, this is an intermittent error, which makes it harder to replicate. So far, I have not been able to see any difference between emails that are synced successfully and ones that fail.
Any help is welcome!
Thanks,
Veljko
*This post is locked for comments