Answered by:
Cannot Track email with Outlook: The XML passed to the platform is not well-formed XML

Question
-
Hi,
CRM = 2015 Online 0.1
Outlook: client 2015 0.1
On tracking about 20 % of a customers email he gets this error:
The XML passed to the platform is not well-formed XML. Item Name = <subject email>
And these mails are not tracked.
When I forward the mail as attachment to an crm 2011 system I can track it with no issue.
The message does not seem to have complicated characters.
The Trace:
# CRM Tracing Version 2.0
# LocalTime: 2015-08-28 14:15:01.938
# Categories: *:Warning
# CallStackOn: Yes
# ComputerName: 150339L
# CRMVersion: 7.0.0001.0129
[2015-08-28 14:15:01.938] Process:OUTLOOK |Organization:f9faaa94-9566-481e-8ac5-ad301a8e74e7 |Thread: 28 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | CrmServiceForOutlook.Update ilOffset = 0x35
at CrmServiceForOutlook.Update(UpdateRequest request, Boolean showUI) ilOffset = 0x35
at CrmServiceForOutlook.Update(IDynamicEntityForOutlook dynamicEntityForOutlook, Boolean showUI) ilOffset = 0x17
at ThreadsSupport.ExecuteThreadProc(ThreadProc threadProc, IntPtr parameter) ilOffset = 0x2
>FaultExceptionDetails: Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Invalid type for entity id valueDetail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220989</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>ValidationPath</d2p1:key>
<d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">/0</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>Invalid type for entity id value</Message>
<Timestamp>2015-08-28T12:15:02.0082231Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>System.ArgumentException: Invalid type for entity id value
Parameter name: Target</Message>
<Timestamp>2015-08-28T12:15:02.0082231Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<TraceText i:nil="true" />
</OrganizationServiceFault>
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request)
at Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient.<>c__DisplayClassd.<ExecuteCore>b__c()
at Microsoft.Xrm.Sdk.WebServiceClient.WebProxyClient`1.ExecuteAction[TResult](Func`1 action)
at Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient.ExecuteCore(OrganizationRequest request)
at Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient.Execute(OrganizationRequest request)
at Microsoft.Crm.Application.SMWrappers.ClientOrganizationServiceProxyBase.Execute(OrganizationRequest request)
at Microsoft.Crm.Application.SMWrappers.CrmServiceForOutlook.Execute(OrganizationRequest request, Boolean wrapException)
at Microsoft.Crm.Application.SMWrappers.CrmServiceForOutlook.Update(UpdateRequest request, Boolean showUI)
[2015-08-28 14:15:01.945] Process:OUTLOOK |Organization:f9faaa94-9566-481e-8ac5-ad301a8e74e7 |Thread: 28 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | ThreadsSupport.ExecuteThreadProc ilOffset = 0x2
at ThreadsSupport.ExecuteThreadProc(ThreadProc threadProc, IntPtr parameter) ilOffset = 0x2
> TraceException: Unhandled Exception: System.Runtime.InteropServices.COMException: Invalid type for entity id value
at Microsoft.Crm.Application.SMWrappers.CrmServiceForOutlook.Update(UpdateRequest request, Boolean showUI)
at Microsoft.Crm.Application.SMWrappers.CrmServiceForOutlook.Update(IDynamicEntityForOutlook dynamicEntityForOutlook, Boolean showUI)
[2015-08-28 14:15:01.965] Process:OUTLOOK |Organization:f9faaa94-9566-481e-8ac5-ad301a8e74e7 |Thread: 28 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | ProgressDialogForOutlook.Microsoft.Crm.Application.SMWrappers.IProgressDialogForOutlook.SetDetailedErrorMessage ilOffset = 0x0
at ProgressDialogForOutlook.Microsoft.Crm.Application.SMWrappers.IProgressDialogForOutlook.SetDetailedErrorMessage(String entityType, String entityName, Boolean warning, String errorMessage, String entryId, String storeId, String crmId, Int32 entityObjectTypeCode, Boolean showDialog) ilOffset = 0x0
at ThreadsSupport.ExecuteThreadProc(ThreadProc threadProc, IntPtr parameter) ilOffset = 0x2
>crm id :'', Error:Invalid Argument
[2015-08-28 14:15:02.060] Process:OUTLOOK |Organization:f9faaa94-9566-481e-8ac5-ad301a8e74e7 |Thread: 28 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | CrmServiceForOutlook.Update ilOffset = 0x35
at CrmServiceForOutlook.Update(UpdateRequest request, Boolean showUI) ilOffset = 0x35
at CrmServiceForOutlook.Update(IDynamicEntityForOutlook dynamicEntityForOutlook, Boolean showUI) ilOffset = 0x17
at ThreadsSupport.ExecuteThreadProc(ThreadProc threadProc, IntPtr parameter) ilOffset = 0x2
>FaultExceptionDetails: Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Invalid type for entity id valueDetail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220989</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>ValidationPath</d2p1:key>
<d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">/0</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>Invalid type for entity id value</Message>
<Timestamp>2015-08-28T12:15:02.1957273Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>System.ArgumentException: Invalid type for entity id value
Parameter name: Target</Message>
<Timestamp>2015-08-28T12:15:02.1957273Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<TraceText i:nil="true" />
</OrganizationServiceFault>Monday, August 31, 2015 6:35 AM
Answers
-
It turns out to be some obscure bug in Outlook.
Even patched the plugin to rollup 1 did not help. Work Around: When you track from the inbox and CRM Ribbon all goes well. When you track when the mail is opened / popped-out the error appears on tracking.
- Marked as answer by Alexander Ruiter CRM Specialist Wednesday, December 2, 2015 9:05 AM
Thursday, September 24, 2015 7:14 AM -
Also this user was pinned to IE 10 due to other software instead of IE 11
- Marked as answer by Alexander Ruiter CRM Specialist Wednesday, December 2, 2015 9:06 AM
Wednesday, December 2, 2015 9:06 AM
All replies
-
It turns out to be some obscure bug in Outlook.
Even patched the plugin to rollup 1 did not help. Work Around: When you track from the inbox and CRM Ribbon all goes well. When you track when the mail is opened / popped-out the error appears on tracking.
- Marked as answer by Alexander Ruiter CRM Specialist Wednesday, December 2, 2015 9:05 AM
Thursday, September 24, 2015 7:14 AM -
Also this user was pinned to IE 10 due to other software instead of IE 11
- Marked as answer by Alexander Ruiter CRM Specialist Wednesday, December 2, 2015 9:06 AM
Wednesday, December 2, 2015 9:06 AM