Hello there. In our system we have some workflow, that should be synchronious (with starting by user). When user start such workflow, he can get an error message, signalized, that some condition for record was failed (like an error message).
But in the same time this workflows can be started for a list of records. In that way, if some condition failed for some record, we have record in processsession table with some information, including reasone of failure (this is about what we get from comment), but information in that column is a little bit unreadable for single user.
So, what I want: Is there a convinient way to parse this comment, so it could be like friendly, readable message (like when when user start workflow for single record and got workflow step error).
For example, we have this in comment from processsession:
Sync workflow failed with error message - Unhandled Exception: System.Activities.Statements.WorkflowTerminatedException: Process should be started from active Opportunity
at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout)
at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions)
at Microsoft.Crm.Workflow.SynchronousRuntime.SynchronousWorkflowActivityHost.ExecuteWorkflowUsingInvoker(Activity workflow, ICommonWorkflowContext context)
at Microsoft.Crm.Workflow.SynchronousRuntime.SynchronousWorkflowActivityHost.StartWorkflow(WorkflowActivationData activationData, ICommonWorkflowContext context)
Inner Exception: Microsoft.Xrm.Sdk.InvalidPluginExecutionException, error code - -2147220970
And I want to have only this: "Process should be started from active Opportunity"
*This post is locked for comments