Issue
When clicking on an email link to approve workflow task, the following error might occur:
Sorry, something went wrong
An unexpected error has occurred.
Web Parts Maintenance Page. If you have permission, you can use this page temporarily close Web Parts or remove personal settings. For more information contact your site administrator.
Additionally, all workflows with Flexi task action in a site collection end with Error Occurred status and the following error message displays in the workflow status page:
The following error is also logged in ULS logs:
System.NullReferenceException: Object reference not set to an instance of an object.
at Nintex.Workflow.HumanApproval.ApprovalContextUtil.AddApprovalContextData(NWContextDataCollection data, Approver approver, NWWorkflowContext parentContext, ContextDataOptions options, Boolean taskitemDependentOnly)
at Nintex.Workflow.HumanApproval.Message.Send(Approver approver, Message persistTo)
at Nintex.Workflow.HumanApproval.MultiOutcomeTask.ClosePendingApprovers(Boolean informPendingApprovers, Outcome reason, UpdateApproverTaskMode closureMethod)
at Nintex.Workflow.Activities.MultiOutcomeInternal.TaskCompleted(Object sender, EventArgs e)
at System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty dependencyEvent, Object sender, EventArgs e)
at System.Workflow.Activities.ReplicatorActivity.Cancel(ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.CompositeActivity.HandleFault(ActivityExecutionContext executionContext, Exception exception)
at System.Workflow.ComponentModel.ActivityExecutor`1.HandleFault(T activity, ActivityExecutionContext executionContext, Exception exception)
at System.Workflow.ComponentModel.ActivityExecutor`1.HandleFault(Activity activity, ActivityExecutionContext executionContext, Exception exception)
at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
at System.Workflow.Runtime.Scheduler.Run()
Resolution
- Restore EditForm.aspx.
- Create a new Task List by navigating to Nintex Workflow Designer > Workflow Settings > Task List > Create New
- Remove any custom master page if applicable to verify if this custom master page interfering the form opening.
Additional Information