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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Sales forum / Process Activation error
Sales forum

Process Activation error

(0) ShareShare
ReportReport
Posted on by 109

Hi, 

I have recently updated a 'create record' process to remove a step within one of the check conditions and from one Owner to another within the properties for the new record. In doing so I am now receiving the following error, against the 'Create record' step:

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: The selected workflow has errors and cannot be published. Please open the workflow, remove the errors and try again.
at Microsoft.Crm.Dialogs.ActivateDialogPage.ConfigureForm()
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #B2331B8ADetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>73bdb769-1eef-41a6-a765-50a316d36bd5</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---&gt; Microsoft.Crm.CrmException: The selected workflow has errors and cannot be published. Please open the workflow, remove the errors and try again.
at Microsoft.Crm.Dialogs.ActivateDialogPage.ConfigureForm()
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #B2331B8A</Message>
<Timestamp>2019-05-01T19:41:59.8747939Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>73bdb769-1eef-41a6-a765-50a316d36bd5</ActivityId>
<ErrorCode>-2147187627</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>The selected workflow has errors and cannot be published. Please open the workflow, remove the errors and try again.</Message>
<Timestamp>2019-05-01T19:41:59.8747939Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

 

I have checked the properties of the new record, deactivated all of the business processes to make sure that there aren't any rules causing issues and am still unable to pin point where the error lies. 

Any help would be a huge help as it's a key automated process within the business. 

Thanks

Brian

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Brian,

    Normally this error appears (as you may already know) if there are any mandatory/required fields or properties within the step which are not provided. For example, if you try to create a contact record, you will get the same error if you do not enter value for "Lastname" field ( or any other required field.

    As you are saying this has stopped working after an update, I am suspecting that some new field is created and is required which is not set on the create step. Unfortunately the only option is to manually review the field in the step and see if all the field with red astrix are populated with some values.

    Hope this helps.

  • Brian Halstead Profile Picture
    109 on at

    Hi Ravi,

    I have checked all the fields on the record form and completed all mandatory fields, I have also included those recommenced just to be sure but with no luck in removing the errors.

    What type of properties could be causing this, and where would I be looking for them to try and solve the error? Would these be form properties within the form editor?

    Thanks

    Brian

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Brian,

    Did you check it in within the workflow Create Step property (under the additional fields section? It is very tricky as the field just display the little red mark, I myself got caught in this recently :)  

    Can you share a screenshot of your workflow if possible? Possible that the error is occurring from some other step (not the create step)

    work.png

    Hope this helps

  • Brian Halstead Profile Picture
    109 on at

    Hi Ravi,

    Please see below for some screenshots of what i'm seeing.

    None of the additional fields within the section at the bottom are mandatory, unless i'm missing something? Within the screenshot I have left the name of the owner blank for privacy, but when completed I still get the error.

    Form-Properties3.JPG
    Form-Properties1.JPG
    Form-Properties2.JPG
    Form-Properties3.JPG
    Thanks

    Brian

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    This is very strange. Can you create a new "Create step" with the same properties and then see if it works. Possible the workflow definitions are not getting updated.

  • Verified answer
    Brian Halstead Profile Picture
    109 on at

    Hi Ravi,

    I've managed to get to the bottom of this now.

    In short, the form being used has a business required multi-option set field. When completing the form with the process activation and properties settings area, this doesn't show. I believe that this is something know at Microsoft with the field type being relatively new.

    I changed the properties of the field within customisation to 'Optional', set the process properties, then activated, setting the field back to 'Business Required'.

    All sorted in the end, thank you for all of the above advice.

    Brian

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Great news and something I learned today :)

    Thanks for sharing Brian!

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Sales

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans