I configured server-side Synchronization between CRM 2013 SP1 (italian) and Exchange 2010 SP3 RU6.
All mailboxes at the begin seem to work correctly and tests are passed successfull. After few minutes i receive this alert error multiple times:
Appointments, contacts and tasks for the mailbox Enzo ... couldn't be synchronized. The owner of the associated email server profile ...xxx... has been notified. The system will try again later.
On the asynchronous service log I found:
[2014-09-07 23:59:28.957] Process:CrmAsyncService |Organization:a5636d81-bac9-4320-bd45-ab4d2213b967 |Thread: 45 |Category: ExchangeSync |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: | ExchangeSyncWorker.SynchronizeACTs ilOffset = 0x4C
at ExchangeSyncWorker.SynchronizeACTs() ilOffset = 0x4C
at ACTProviderBase.Run() ilOffset = 0x42
at MailboxACTOperation.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 = 0x56
at AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory) ilOffset = 0x8A
at PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager) ilOffset = 0x144
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 = 0xC
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 = 0xA2
>Exchange sync worker for the mailbox is failed/terminated : {33F8BE74-0A22-E411-80DA-00155D000B1D}. Exception details : Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: s
Server stack trace:
at System.Convert.FromBase64String(String s)
at Microsoft.Exchange.WebServices.Data.MapiTypeConverter.<.cctor>b__14(String s)
at Microsoft.Exchange.WebServices.Data.MapiTypeConverterMapEntry.ConvertToValue(String stringValue)
at Microsoft.Exchange.WebServices.Data.ExtendedProperty.TryReadElementFromXml(EwsServiceXmlReader reader)
at Microsoft.Exchange.WebServices.Data.ComplexProperty.InternalLoadFromXml(EwsServiceXmlReader reader, XmlNamespace xmlNamespace, String xmlElementName, Func`2 readAction)
at Microsoft.Exchange.WebServices.Data.ComplexProperty.LoadFromXml(EwsServiceXmlReader reader, XmlNamespace xmlNamespace, String xmlElementName)
at Microsoft.Exchange.WebServices.Data.ExtendedPropertyCollection.LoadFromXml(EwsServiceXmlReader reader, String localElementName)
at Microsoft.Exchange.WebServices.Data.ComplexPropertyDefinitionBase.InternalLoadFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag)
at Microsoft.Exchange.WebServices.Data.ComplexPropertyDefinitionBase.LoadPropertyValueFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag)
at Microsoft.Exchange.WebServices.Data.PropertyBag.LoadFromXml(EwsServiceXmlReader reader, Boolean clear, PropertySet requestedPropertySet, Boolean onlySummaryPropertiesRequested)
at Microsoft.Exchange.WebServices.Data.EwsServiceXmlReader.ReadServiceObjectsCollectionFromXml[TServiceObject](XmlNamespace collectionXmlNamespace, String collectionXmlElementName, GetObjectInstanceDelegate`1 getObjectInstanceDelegate, Boolean clearPropertyBag, PropertySet requestedPropertySet, Boolean summaryPropertiesOnly)
at Microsoft.Exchange.WebServices.Data.GetItemResponse.ReadElementsFromXml(EwsServiceXmlReader reader)
at Microsoft.Exchange.WebServices.Data.ServiceResponse.LoadFromXml(EwsServiceXmlReader reader, String xmlElementName)
at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.ParseResponse(EwsServiceXmlReader reader)
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ReadResponse(EwsServiceXmlReader ewsXmlReader)
at Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.ReadResponse(IEwsHttpWebResponse response)
at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalLoadPropertiesForItems(IEnumerable`1 items, PropertySet propertySet, ServiceErrorHandling errorHandling)
at Microsoft.Crm.Asynchronous.EmailConnector.MonitoredExchangeService.LoadPropertiesForItems(IEnumerable`1 items, PropertySet propertySet, ExchangeItemType exchangeItemType)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeSyncSteps.LoadPropertiesForItemsStep.LoadPropertiesForItemsDelegate.EndInvoke(IAsyncResult result)
at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeSyncSteps.LoadPropertiesForItemsStep.EndRequest(IAsyncResult response)
at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeSyncSteps.ExchangeSyncAsyncRemoteStep`2.AfterCall()
at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeSyncSteps.ExchangeSyncAsyncRemoteStep`2.Execute()
at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeSyncWorker.SynchronizeACTs()
.
and on IIS Exchange logs I found:
2014-09-07 20:41:24 192.168.0.15 POST /EWS/Exchange.asmx - 443 - 192.168.0.2 CRM/6.0.0.0/OnPremise+(ExchangeServicesClient/15.00.0516.014) 401 1 2148074254 0
2014-09-07 20:41:24 192.168.0.15 POST /EWS/Exchange.asmx - 443 mydom\svc.CRMImpresonation 192.168.0.2 CRM/6.0.0.0/OnPremise+(ExchangeServicesClient/15.00.0516.014) 200 0 0 31
2014-09-07 20:41:24 192.168.0.15 POST /EWS/Exchange.asmx - 443 - 192.168.0.2 CRM/6.0.0.0/OnPremise+(ExchangeServicesClient/15.00.0516.014) 401 0 0 0
2014-09-07 20:41:24 192.168.0.15 POST /EWS/Exchange.asmx - 443 - 192.168.0.2 CRM/6.0.0.0/OnPremise+(ExchangeServicesClient/15.00.0516.014) 401 1 2148074254 0
2014-09-07 20:41:24 192.168.0.15 POST /EWS/Exchange.asmx - 443 mydom\svc.CRMImpersonation 192.168.0.2 CRM/6.0.0.0/OnPremise+(ExchangeServicesClient/15.00.0516.014) 200 0 0 15
2014-09-07 20:41:24 192.168.0.15 POST /EWS/Exchange.asmx - 443 - 192.168.0.2 CRM/6.0.0.0/OnPremise+(ExchangeServicesClient/15.00.0516.014) 401 0 0 0
2014-09-07 20:41:24 192.168.0.15 POST /EWS/Exchange.asmx - 443 - 192.168.0.2 CRM/6.0.0.0/OnPremise+(ExchangeServicesClient/15.00.0516.014) 401 1 2148074254 0
I can't synchronize any contacts or appointments in any mailboxes. I have already follow this blog solution but without success:
http://quantusdynamics.blogspot.it/2013/11/dynamics-crm-2013-configuring-exchange.html
Could you help me?
Thank you