Asked by:
Unable to configure CRM 2013 in outlook client-messageProcessor fail to process message 'RetrieveMetadataChangesForRichClient' for 'none'.

Question
-
Hi All,
I face problem in configuring CRM 2013 in my outlook Client. It allows me upto selecting organization, after selecting organization,it process for few minutes and give the unexpected the error.I have SysAdmin access on CRM.
This works for us in Vannila instance.
I got below error when i enble server tracing.
messageProcessor fail to process message 'RetrieveMetadataChangesForRichClient' for 'none'.
Please suggest me a solution.
[2015-10-26 14:42:16.724] Process: w3wp |Organization:5cc9ecc6-4906-e211-82e7-d067e5fdf269 |Thread: 16 |Category: Platform.Metadata |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 5bd11d90-b9fe-40b3-90ce-0597cda1475e | <>c__DisplayClass1.<LoadMetadataContainerFromDatabase>b__0 ilOffset = 0x14
>Multi-org sharable cache loading system and non-system metadata with build number 6.0.2.51 and language 1033
[2015-10-26 14:42:50.393] Process: w3wp |Organization:5cc9ecc6-4906-e211-82e7-d067e5fdf269 |Thread: 16 |Category: Platform.Sdk |User: 61f016da-ced2-e411-84f1-00000000017c |Level: Error |ReqId: d6b71bdd-8553-42e7-99f2-246c8cc07625 | VersionedPluginProxyStepBase.Execute ilOffset = 0x65
>Web Service Plug-in failed in SdkMessageProcessingStepId: {93A6F96E-4BD5-4E3C-9A80-CB08E728665F}; EntityName: none; Stage: 30; MessageName: RetrieveMetadataChangesForRichClient; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=6.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.ArgumentException: '', hexadecimal value 0x1A, is an invalid character.
at System.Xml.XmlEncodedRawTextWriter.InvalidXmlChar(Int32 ch, Char* pDst, Boolean entitize)
at System.Xml.XmlEncodedRawTextWriter.WriteAttributeTextBlock(Char* pSrc, Char* pSrcEnd)
at System.Xml.XmlEncodedRawTextWriter.WriteString(String text)
at System.Xml.XmlWellFormedWriter.WriteString(String text)
at Microsoft.Crm.Metadata.R8AddedOrUpdatedMetadataSerializer.SerializeEntity(MetadataBusinessEntity entity, XmlWriter writer)
at Microsoft.Crm.Metadata.R8AddedOrUpdatedMetadataSerializer.<>c__DisplayClass1.<SerializeToString>b__0(XmlWriter writer)
at Microsoft.Crm.Metadata.MetadataSyncSerializer.Serialize(SerializationLogicMethod serializationLogicMethod)
at Microsoft.Crm.Metadata.R8AddedOrUpdatedMetadataSerializer.SerializeToString()
at Microsoft.Crm.Metadata.MetadataSyncSerializer.SerializeToBytes()
at Microsoft.Crm.Caching.RichClientMetadataCacheLoader.LoadCacheData(RichClientMetadataCacheKey key, ExecutionContext context)
at Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.RichClientMetadataCache.AddEntryFromLookupCallback(String keyString, Byte[] value, IOrganizationContext context, Object otherData)
at Microsoft.Crm.CrmCache`1.AddEntry(String key, TValue value, IOrganizationContext context, AddEntryCallback`1 callback, Object callbackParameter)
at Microsoft.Crm.Metadata.FullSyncGenerator.GetAddedOrUpdatedLocalizedLabelMetadata()
at Microsoft.Crm.Metadata.MetadataSyncChangesGenerator.GetChanges()
at Microsoft.Crm.Metadata.MetadataSyncChangesFactory.GetChanges()
at Microsoft.Crm.Sdk.Metadata.MetadataServiceProvider.RetrieveMetadataChangesForRichClient(Int64 lastTimestamp, DateTime lastSyncTime, Int32 lastUserLanguage, String metadataVersion, Int64& newTimestamp, DateTime& newSyncTime, Int32& newUserLanguage, Byte[]& addedOrUpdatedLocalizedLabelMetadata, Byte[]& addedOrUpdatedOtherMetadata, Byte[]& deletedMetadata, String& newCalculatedTimestamp, ExecutionContext context)
.
[2015-10-26 14:42:50.721] Process: w3wp |Organization:5cc9ecc6-4906-e211-82e7-d067e5fdf269 |Thread: 16 |Category: Exception |User: 61f016da-ced2-e411-84f1-00000000017c |Level: Error |ReqId: d6b71bdd-8553-42e7-99f2-246c8cc07625 | CrmException..ctor ilOffset = 0x7
at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException) ilOffset = 0x7
at CrmException..ctor(Exception innerException, Int32 errorCode, Object[] arguments) ilOffset = 0xB
at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) ilOffset = 0x65
at Pipeline.Execute(PipelineExecutionContext context) ilOffset = 0x65
at MessageProcessor.Execute(PipelineExecutionContext context) ilOffset = 0x1C5
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 transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion) ilOffset = 0x16E
at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Boolean traceRequest, OrganizationContext context, Boolean returnResponse) ilOffset = 0x16A
at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType) ilOffset = 0x3D
at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType) ilOffset = 0x24
at ilOffset = 0xFFFFFFFF
at SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) ilOffset = 0x241
at DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) ilOffset = 0x100
at ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) ilOffset = 0x48
at ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc) ilOffset = 0xC6
at MessageRpc.Process(Boolean isOperationContextSet) ilOffset = 0x62
at ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext) ilOffset = 0x256
at ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext) ilOffset = 0xF1
at ChannelHandler.AsyncMessagePump(IAsyncResult result) ilOffset = 0x39
at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result) ilOffset = 0x0
at AsyncResult.Complete(Boolean completedSynchronously) ilOffset = 0xC2
at ReceiveItemAndVerifySecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result) ilOffset = 0x58
at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result) ilOffset = 0x0
at AsyncResult.Complete(Boolean completedSynchronously) ilOffset = 0xC2
at AsyncQueueReader.Set(Item item) ilOffset = 0x21
at InputQueue`1.Dispatch() ilOffset = 0x121
at ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped) ilOffset = 0x22
at IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped) ilOffset = 0x5
at _IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP) ilOffset = 0x3C
>Crm Exception: Message: An unexpected error occurred., ErrorCode: -2147220970, InnerException: System.ArgumentException: '', hexadecimal value 0x1A, is an invalid character.
at System.Xml.XmlEncodedRawTextWriter.InvalidXmlChar(Int32 ch, Char* pDst, Boolean entitize)
at System.Xml.XmlEncodedRawTextWriter.WriteAttributeTextBlock(Char* pSrc, Char* pSrcEnd)
at System.Xml.XmlEncodedRawTextWriter.WriteString(String text)
at System.Xml.XmlWellFormedWriter.WriteString(String text)
at Microsoft.Crm.Metadata.R8AddedOrUpdatedMetadataSerializer.SerializeEntity(MetadataBusinessEntity entity, XmlWriter writer)
at Microsoft.Crm.Metadata.R8AddedOrUpdatedMetadataSerializer.<>c__DisplayClass1.<SerializeToString>b__0(XmlWriter writer)
at Microsoft.Crm.Metadata.MetadataSyncSerializer.Serialize(SerializationLogicMethod serializationLogicMethod)
at Microsoft.Crm.Metadata.R8AddedOrUpdatedMetadataSerializer.SerializeToString()
at Microsoft.Crm.Metadata.MetadataSyncSerializer.SerializeToBytes()
at Microsoft.Crm.Caching.RichClientMetadataCacheLoader.LoadCacheData(RichClientMetadataCacheKey key, ExecutionContext context)
at Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.RichClientMetadataCache.AddEntryFromLookupCallback(String keyString, Byte[] value, IOrganizationContext context, Object otherData)
at Microsoft.Crm.CrmCache`1.AddEntry(String key, TValue value, IOrganizationContext context, AddEntryCallback`1 callback, Object callbackParameter)
at Microsoft.Crm.Metadata.FullSyncGenerator.GetAddedOrUpdatedLocalizedLabelMetadata()
at Microsoft.Crm.Metadata.MetadataSyncChangesGenerator.GetChanges()
at Microsoft.Crm.Metadata.MetadataSyncChangesFactory.GetChanges()
at Microsoft.Crm.Sdk.Metadata.MetadataServiceProvider.RetrieveMetadataChangesForRichClient(Int64 lastTimestamp, DateTime lastSyncTime, Int32 lastUserLanguage, String metadataVersion, Int64& newTimestamp, DateTime& newSyncTime, Int32& newUserLanguage, Byte[]& addedOrUpdatedLocalizedLabelMetadata, Byte[]& addedOrUpdatedOtherMetadata, Byte[]& deletedMetadata, String& newCalculatedTimestamp, ExecutionContext context)
[2015-10-26 14:42:50.721] Process: w3wp |Organization:5cc9ecc6-4906-e211-82e7-d067e5fdf269 |Thread: 16 |Category: Platform |User: 61f016da-ced2-e411-84f1-00000000017c |Level: Error |ReqId: d6b71bdd-8553-42e7-99f2-246c8cc07625 | MessageProcessor.Execute ilOffset = 0x1C5
>MessageProcessor fail to process message 'RetrieveMetadataChangesForRichClient' for 'none'.
[2015-10-26 14:42:50.753] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 16 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: d6b71bdd-8553-42e7-99f2-246c8cc07625 | ExceptionConverter.ConvertToFault ilOffset = 0x69
>UNEXPECTED: no fault?Thanks,
Tushar
Monday, October 26, 2015 5:20 PM