Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Custom Workflow assembly issue in D365 version 9.0.2.180

$
0
0

 Hi,

Today we faced strange issue with the Custom Workflow assembly in D365 version 9.0.2.180 but it works fine with lower versions of D365. 

  • Assembly Build Version: 4.5.2 Framework
  • Microsoft.Xrm.Sdk.Workflow.dll version: 8.2.0.749 

Whenever the workflow triggers and hit the workflow assembly step the below error pop-out so could you help us to resolve below issue: 

This happens with Synchronous as well as  Asynchronous workflow. 

Below are the error log details: 

<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">

  <ActivityId>255141f9-4b77-4dc8-9ceb-501e71e572dd</ActivityId>

  <ErrorCode>-2147220891</ErrorCode>

  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">

    <KeyValuePairOfstringanyType>

      <d2p1:key>ApiExceptionSourceKey</d2p1:key>

      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Step/Microsoft.Crm.Extensibility.FilteredStep</d2p1:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <d2p1:key>ApiOriginalExceptionKey</d2p1:key>

      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Microsoft.Xrm.Sdk.InvalidPluginExecutionException: context ---&gt; Microsoft.Xrm.Sdk.InvalidPluginExecutionException: context ---&gt; Microsoft.Crm.Workflow.Services.InvalidCustomActivityExecutionException: context

   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)

   --- End of inner exception stack trace ---

   at Microsoft.Crm.Workflow.SynchronousRuntime.SynchronousWorkflowActivityHost.StartWorkflow(WorkflowActivationData activationData, ICommonWorkflowContext context)

   at Microsoft.Crm.Workflow.SynchronousRuntime.SynchronousWorkflowActivityHost.StartWorkflow(ICommonWorkflowContext context)

   at Microsoft.Crm.ObjectModel.WorkflowProcessServiceInternalHandler`1.ExecuteSyncWorkflow(Guid workflowId, PipelineExecutionContext pipelineContext, IGenericEventData workflowInstanceData, Boolean isTriggered, BusinessProcessFlowContext businessProcessFlowContext)

   at Microsoft.Crm.ObjectModel.WorkflowProcessServiceInternalHandler`1.ExecuteTriggeredSyncWorkflow(Guid workflowId, PipelineExecutionContext pipelineContext, Lookup primaryEntityInfo)

   at Microsoft.Crm.ObjectModel.WorkflowProcessServiceInternalHandler`1.ExecuteTriggeredSyncWorkflow(Guid workflowId, PipelineExecutionContext pipelineContext)

   at Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin.Execute(IServiceProvider provider)

   at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

   --- End of inner exception stack trace ---

   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.FilteredStep.Execute(PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass1_1.&lt;Execute&gt;b__0()</d2p1:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <d2p1:key>ApiStepKey</d2p1:key>

      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">fbff3bf1-d04d-e811-a95b-000d3a1be90a</d2p1:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <d2p1:key>ApiDepthKey</d2p1:key>

      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">1</d2p1:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <d2p1:key>ApiActivityIdKey</d2p1:key>

      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">255141f9-4b77-4dc8-9ceb-501e71e572dd</d2p1:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <d2p1:key>ApiPluginSolutionNameKey</d2p1:key>

      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">System</d2p1:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <d2p1:key>ApiStepSolutionNameKey</d2p1:key>

      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">System</d2p1:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <d2p1:key>OperationStatus</d2p1:key>

      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">0</d2p1:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <d2p1:key>SubErrorCode</d2p1:key>

      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value>

    </KeyValuePairOfstringanyType>

  </ErrorDetails>

  <Message>context</Message>

  <Timestamp>2018-05-02T06:51:46.070778Z</Timestamp>

  <ExceptionRetriable>false</ExceptionRetriable>

  <ExceptionSource i:nil="true" />

  <InnerFault i:nil="true" />

  <OriginalException i:nil="true" />

  <TraceText>

 

[Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]

[fbff3bf1-d04d-e811-a95b-000d3a1be90a: ]

Entered Microsoft.Dynamics.LeadManagement.Plugins.AddressComputation.Execute(), Correlation Id: 544e0832-5a16-40cc-95f2-0fb3ecdc73d8, Initiating User: 88330371-33ca-e711-a948-000d3a1abd0c

Exiting Microsoft.Dynamics.LeadManagement.Plugins.AddressComputation.Execute(), Correlation Id: 544e0832-5a16-40cc-95f2-0fb3ecdc73d8, Initiating User: 88330371-33ca-e711-a948-000d3a1abd0c

Entered Microsoft.Dynamics.LeadManagement.Plugins.PreOperationLeadUpdate.Execute(), Correlation Id: 544e0832-5a16-40cc-95f2-0fb3ecdc73d8, Initiating User: 88330371-33ca-e711-a948-000d3a1abd0c

Exiting Microsoft.Dynamics.LeadManagement.Plugins.PreOperationLeadUpdate.Execute(), Correlation Id: 544e0832-5a16-40cc-95f2-0fb3ecdc73d8, Initiating User: 88330371-33ca-e711-a948-000d3a1abd0c

Starting sync workflow 'Workflow Name', Id: f1ff3bf1-d04d-e811-a95b-000d3a1be90a

Entering ConditionStep1_step: Step 1

Entering CustomActivityStep3_step: Step 3

Sync workflow 'Workflow Name' terminated with error 'context'

 </TraceText>

</OrganizationServiceFault>

Can anyone faced similar kind of issue and have solution for it.

Thanks!

Balasaheb


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>