web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Cannot update parties unless email is in draft status!

(0) ShareShare
ReportReport
Posted on by 4,287

Hello,

I got an issue after installing CRM 2016 SP1, I have system administrator security role and I got an error when I was trying to resolve an email address from received emails :

4087.1.PNG

88730.2.PNG

0777.3.PNG

When I downloaded and opened the log file, I got the following :

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Cannot update parties unless email is in draft status.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ErrorCode>-2147187962</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Cannot update parties unless email is in draft status.</Message>
<Timestamp>2016-05-30T20:50:01.6966422Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

Also I have enabled Dynamics CRM tracer and I got the following :

at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, TraceCategory traceCategory) ilOffset = 0x9
at CrmException..ctor(String message, Int32 errorCode) ilOffset = 0x6
at EmailService.ValidateCommunicationPartiesUpdate(CommunicationActivity activity, ExtensionEventArgs e) ilOffset = 0x99
at CommunicationActivityServiceBase.UpdateCommunicationPartiesInternal(BusinessEntityMoniker moniker, CommunicationActivity activity, ExecutionContext context, ExtensionEventArgs e) ilOffset = 0x586
at CommunicationActivityServiceBase.UpdateCommunicationParties(Object sender, ExtensionEventArgs e) ilOffset = 0x54
at PostUpdateInPipelineEventHandler.Invoke(Object sender, ExtensionEventArgs e) ilOffset = 0xFFFFFFFF
at BusinessProcessObject.DoUpdate(IBusinessEntity entity, FilterExpression filter, ExecutionContext context) ilOffset = 0x32E
at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) ilOffset = 0xFFFFFFFF
at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) ilOffset = 0x25
at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) ilOffset = 0xCF
at LogicalMethodInfo.Invoke(Object target, Object[] values) ilOffset = 0x4F
at InternalOperationPlugin.Execute(IServiceProvider serviceProvider) ilOffset = 0x57
at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context) ilOffset = 0x265
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 ExtensiblePlatformMessageDispatcher.Execute(PipelineExecutionContext pluginContext) ilOffset = 0x0
at ExtensiblePlatformMessageDispatcher.UpdateWithInvocationSource(BusinessEntity entity, FilterExpression filter, Int32 invocationSource, ExecutionContext context) ilOffset = 0x100
at ExtensiblePlatformMessageDispatcher.Update(BusinessEntity entity, FilterExpression filter, ExecutionContext context) ilOffset = 0x5
at BusinessProcessObject.UpdateWithPipelineAndExtensions(IBusinessEntity entity, ExecutionContext context) ilOffset = 0x80
at BusinessProcessObject.Update(IBusinessEntity entity, ExecutionContext context) ilOffset = 0x2A
at GenericActivityServiceBase.UpdateInternal(IBusinessEntity entityInterface, ExecutionContext context) ilOffset = 0xA7
at CommunicationActivityServiceBase.Update(IBusinessEntity entity, ExecutionContext context) ilOffset = 0x1B
at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) ilOffset = 0xFFFFFFFF
at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) ilOffset = 0x25
at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) ilOffset = 0xCF
at LogicalMethodInfo.Invoke(Object target, Object[] values) ilOffset = 0x4F
at InternalOperationPlugin.Execute(IServiceProvider serviceProvider) ilOffset = 0x57
at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context) ilOffset = 0x265
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 PlatformCommand.XrmExecuteInternal() ilOffset = 0x109
at UpdateCommand.Execute() ilOffset = 0x7
at DataSource.Update(EntityProxy entity, Boolean performDuplicateCheck, Guid auditingTransactionId, IOrganizationContext context) ilOffset = 0x11
at EntityProxy.Update(Boolean performDuplicateCheck, Guid auditingTransactionId) ilOffset = 0x0
at EntityProxy.Update(Boolean performDuplicateCheck) ilOffset = 0x7
at EntityProxy.UpdateAndRetrieve(String[] columnSet, Boolean performDuplicateCheck) ilOffset = 0x0
at CommandBase.UpdateEntity(Entity entity, Boolean retrieve) ilOffset = 0xD1
at SaveCommand.ExecuteCommand(String commandXml) ilOffset = 0x116
at CommandBase.Execute(String commandXml, Boolean encodeValues) ilOffset = 0x13
at InlineEditWebService.Execute(Int32 command, String commandXml, Nullable`1 encodeValues) ilOffset = 0xE5
at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) ilOffset = 0xFFFFFFFF
at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) ilOffset = 0x25
at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) ilOffset = 0xCF
at LogicalMethodInfo.Invoke(Object target, Object[] values) ilOffset = 0x4F
at WebServiceHandler.Invoke() ilOffset = 0xC3
at WebServiceHandler.CoreProcessRequest() ilOffset = 0x13E
at SyncSessionlessHandler.ProcessRequest(HttpContext context) ilOffset = 0x39
at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() ilOffset = 0x18D
at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ilOffset = 0x15
at PipelineStepManager.ResumeSteps(Exception error) ilOffset = 0x27C
at HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) ilOffset = 0x31
at HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) ilOffset = 0xD3
at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x11E
at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x9
at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) ilOffset = 0xFFFFFFFF
at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) ilOffset = 0xFFFFFFFF
at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x1C8
at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x9
Crm Exception: Message: Cannot update parties unless email is in draft status., ErrorCode: -2147187962

 

Thanks,

*This post is locked for comments

I have the same question (0)
  • Abed Haniyah Profile Picture
    4,287 on at

    Also I could resolve revived emails only  in To Field, below is the Audit History for the received email that I resolved it  :

    53371.Capture.PNG

  • Sukh Gill Profile Picture
    967 on at

    Hi Abed

    Did you manage to resolve your issue?

    We have a similar issue to this where when an email is tracked, if one of the email addresses is unresolved we get error when we open and close the email record from within CRM.

    We have narrowed this down to a real-time workflow that runs on Create of email which sets a specific date field.  If we deactivate the workflow and then track the same email (after untracking of course) we do not get the error.

    The workflow worked fine on CRM 2015 SP1, this has just occurred since we upgraded to CRM 2016 online.

    Sukh

  • deanparkr Profile Picture
    142 on at

    We are also getting this issue with CRM 2016 SP1.

    Frustrating!

  • Community Member Profile Picture
    on at

    Same Issue here too with CRM Online v8.0.1.348. Therefore issue not exclusive to update 1 as my Org has yet to update to 8.1.

  • deanparkr Profile Picture
    142 on at

    Spoke with MS tech support on this issue. No news on any fix!!

  • camt Profile Picture
    on at

    Just got this error while doing some updates. This won't fix the problem, but provides a workaround if you have the means to write some code.

    The "From" field for email can be updated through the Web API by:

    1. Changing the statecode and statuscode for the email to draft.

    PATCH yourtenant.crm3.dynamics.com/.../emails(the_email_guid)
    
    {"statecode":0,"statuscode":1}

    // 0 = open, 1 = draft


    2. Update the email activity parties

    PATCH yourtenant.crm3.dynamics.com/.../emails(the_email_guid)
    
    {
    	"email_activity_parties": [{
    		"partyid_systemuser@odata.bind": "/systemusers(the_user_guid)",
    		"participationtypemask": 1
    	}, {
    		"partyid_contact@odata.bind": "/contacts(the_referred_contact)",
    		"participationtypemask": 2
    	}]
    }
    
    
    // 1 = Sender, 2 = Recipient

    3. Change the statecode and statuscode back to completed

    PATCH yourtenant.crm3.dynamics.com/.../emails(the_email_guid)
    
    {"statecode":1,"statuscode":2}
    
    // 1 = completed, 2 = completed
  • Suggested answer
    Harish Das Profile Picture
    on at

    This issue is because of email ID is unresolved. this issue in 2016 version. we have done the below changes and it is working fine now (online instance)

    In System Setting  --> General Tab go to last option "User legency form rendering" and change it to Yes and try.

    Regards

    Harish

  • Abed Haniyah Profile Picture
    4,287 on at

    I already enabled "User legency form rendering" and you are right, it is working, but unfortunately by enabling it I got many errors. one of them as I remember when I clicked on  "Save and Close" on  email I got error

  • Abed Haniyah Profile Picture
    4,287 on at
  • Suggested answer
    Harish Das Profile Picture
    on at

    can you share the error details please.

    can you verify my Ans if it help you to resolve your query

    Regards

    Harish

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans