CRM 2013 - On-Premise. Latest Outlook Client (SP1). Randomly all Users are getting an error "Parent is Invalid" when tracking an email via the CRM ribbon in Outlook. This may happen in 1 out of 10 emails - 9 may track fine, yet there is nothing obviously distinctive or unique re. the problematic emails.
I turned Tracing on - the log file contains "Entity id is null or empty, skip deleting the entity 'email'" plus " Creating Entity with an invalid parent.Entity: Email, ReferencingAttribute:emailsenderDetail:"
<ErrorCode>-2147220987</ErrorCode>
Full log below...Any help gratefully received!
# CRMVersion: 6.1.0000.0581
[2014-07-29 12:37:44.733] Process:OUTLOOK |Organization:9ffa955e-2692-4999-855b-aa1ae7b1551d |Thread: 1 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: | CrmServiceForOutlook.Execute ilOffset = 0xD
at CrmServiceForOutlook.Execute(OrganizationRequest request, Boolean wrapException) ilOffset = 0xD
at EmailForOutlook.Microsoft.Crm.Application.SMWrappers.IEmailForOutlook.DeliverPromote(String messageId, String subject, String from, String to, String cc, String bcc, Double receivedon, String submittedBy, String importance, String body, IDynamicEntityCollectionForOutlook attachments, Int32 attachmentCount, IDynamicEntityForOutlook extraProperties, String entityXml, String regardingId, Int64 regardingObjectType, String crmId, Int32& notification) ilOffset = 0x1CD
>FaultExceptionDetails: Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Creating Entity with an invalid parent. Entity: Email, ReferencingAttribute:emailsenderDetail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220987</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Creating Entity with an invalid parent. Entity: Email, ReferencingAttribute:emailsender</Message>
<Timestamp>2014-07-29T11:37:44.6467871Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220987</ErrorCode>
<ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Creating Entity with an invalid parent. Entity: Email, ReferencingAttribute:emailsender</Message>
<Timestamp>2014-07-29T11:37:44.6467871Z</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.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request)
at Microsoft.Crm.Application.SMWrappers.ClientOrganizationServiceProxy.ExecuteCore(OrganizationRequest request)
at Microsoft.Crm.Application.SMWrappers.CrmServiceForOutlook.Execute(OrganizationRequest request, Boolean wrapException)
[2014-07-29 12:37:44.734] Process:OUTLOOK |Organization:9ffa955e-2692-4999-855b-aa1ae7b1551d |Thread: 1 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: | EmailForOutlook.Microsoft.Crm.Application.SMWrappers.IEmailForOutlook.DeliverPromote ilOffset = 0x1CD
at EmailForOutlook.Microsoft.Crm.Application.SMWrappers.IEmailForOutlook.DeliverPromote(String messageId, String subject, String from, String to, String cc, String bcc, Double receivedon, String submittedBy, String importance, String body, IDynamicEntityCollectionForOutlook attachments, Int32 attachmentCount, IDynamicEntityForOutlook extraProperties, String entityXml, String regardingId, Int64 regardingObjectType, String crmId, Int32& notification) ilOffset = 0x1CD
> TraceException: Unhandled Exception: System.Runtime.InteropServices.COMException: Creating Entity with an invalid parent. Entity: Email, ReferencingAttribute:emailsender
at Microsoft.Crm.Application.SMWrappers.CrmServiceForOutlook.Execute(OrganizationRequest request, Boolean wrapException)
at Microsoft.Crm.Application.SMWrappers.EmailForOutlook.Microsoft.Crm.Application.SMWrappers.IEmailForOutlook.DeliverPromote(String messageId, String subject, String from, String to, String cc, String bcc, Double receivedon, String submittedBy, String importance, String body, IDynamicEntityCollectionForOutlook attachments, Int32 attachmentCount, IDynamicEntityForOutlook extraProperties, String entityXml, String regardingId, Int64 regardingObjectType, String crmId, Int32& notification)
[2014-07-29 12:37:44.737] Process:OUTLOOK |Organization:9ffa955e-2692-4999-855b-aa1ae7b1551d |Thread: 1 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: | ilOffset = 0xFFFFFFFF
>Entity id is null or empty, skip deleting the entity 'email'