Dear,
I have tried to break one big Project server workflow into
smaller workflows & calling sub workflows from parent workflow. Reason for this exercise is b/c at my client side
projects
are of at least one year or more duration during which biz logic keep
changing. So instead of restarting workflows, we can change biz logic in
sub workflows e.g. Charter Phase (sub workflow) or Closure Phase (sub
workflow). I am getting following exception in calling sub workflows, trace logs are as following:
http://******/PWA/_layouts/NintexWorkflow/preview.aspx?ListId=00000000-0000-0000-0000-000000000000&ItemId=-1&InstanceId=81ec7810-79a9-4f6e-ad29-9daaabe5e1eb): Nintex.Workflow.NWActionExecutionException: Failed to start workflow. ---> System.ArgumentNullException: Value cannot be null. Parameter name: contextObject
at Nintex.Workflow.ProjectServer.ProjectServerWorkflowType.GetContextObject(Object contextObject)
at Nintex.Workflow.Activities.ReportingHeaderActivity.TryCreateWorkflowInstance(NWWorkflowContext ctx, ActivityFlags parentFlags)
at Nintex.Workflow.Activities.ReportingHeaderActivity.Execute(ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
at System.Workflow.Runtime.Scheduler.Run() -
-- End of inner exception stack trace --- (Build:2350)
WinWF Internal Error, terminating workflow Id# 81ec7810-79a9-4f6e-ad29-9daaabe5e1eb
System.ArgumentNullException: Value cannot be null. Parameter name: contextObject
at Nintex.Workflow.ProjectServer.ProjectServerWorkflowType.GetContextObject(Object contextObject)
at Nintex.Workflow.Activities.ReportingHeaderActivity.TryCreateWorkflowInstance(NWWorkflowContext ctx, ActivityFlags parentFlags)
at Nintex.Workflow.Activities.ReportingHeaderActivity.Execute(ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
at System.Workflow.Runtime.Scheduler.Run()
Asad