I'm receiving an error at the point where my workflow tries to create a new Request Review task with a custom content type that derives from Nintex Workflow task. The two error messages logged in the history list are:
- Exception has been thrown by the target of an invocation.
- Cannot find a corresponding human workflow task id for this task.
When I look into the logs on the server around the time that the workflow tried to create the task, there are a number of items. The entries that immediately stand out are below. I read some posts where people encountered this error message when responding to a task, but in my case the task isn't even created. Has anyone else encountered this issue?
03/08/2012 08:01:56.47 w3wp.exe (0x0C6C) 0x09F8 Windows SharePoint Services Workflow Infrastructure 72ew Medium Object reference not set to an instance of an object.
03/08/2012 08:01:56.97 w3wp.exe (0x0C6C) 0x09F8 Windows SharePoint Services Workflow Infrastructure 88xr Unexpected WinWF Internal Error, terminating workflow Id# 487757cb-d59e-4a41-b6a5-b9697b9efc3a
03/08/2012 08:01:56.97 w3wp.exe (0x0C6C) 0x09F8 Windows SharePoint Services Workflow Infrastructure 98d4 Unexpected Nintex.Workflow.NWHumanApprovalException: Cannot find a corresponding human workflow task id for this task. at Nintex.Workflow.HumanApproval.NintexTask.GetHumanWorkflowId(SPWeb web, Guid taskListId, Int32 spTaskId) at Nintex.Workflow.Activities.ReviewActivityInternal2.ChildCompleted(Object sender, ReplicatorChildEventArgs e) at System.Workflow.ComponentModel.Activity.RaiseGenericEvent[T](DependencyProperty dependencyEvent, Object sender, T e) at System.Workflow.Activities.ReplicatorActivity.HandleStatusChange(ActivityExecutionContext executionContext, ActivityExecutionStatusChangedEventArgs e, ReplicatorSubscriber subscriber) at System.Workflow.Activities.ReplicatorActivity.ReplicatorSubscriber.System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.Compon...
03/08/2012 08:01:56.97* w3wp.exe (0x0C6C) 0x09F8 Windows SharePoint Services Workflow Infrastructure 98d4 Unexpected ...entModel.ActivityExecutionStatusChangedEventArgs>.OnEvent(Object sender, ActivityExecutionStatusChangedEventArgs e) at System.Workflow.ComponentModel.ActivityExecutorDelegateInfo`1.ActivityExecutorDelegateOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime) at System.Workflow.Runtime.Scheduler.Run()
03/08/2012 08:01:57.33 w3wp.exe (0x0C6C) 0x1450 Windows SharePoint Services General 0 Unexpected ERROR: request not found in the TrackedRequests. We might be creating and closing webs on different threads. ThreadId = 5, Free call stack = at Microsoft.SharePoint.SPRequestManager.Release(SPRequest request) at Microsoft.SharePoint.SPWeb.Invalidate() at Microsoft.SharePoint.SPWeb.Close() at Microsoft.SharePoint.SPSite.Close() at Microsoft.SharePoint.SPSite.Dispose() at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflow(SPWorkflow workflow, Collection`1 events, SPRunWorkflowOptions runOptions) at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflow(SPWorkflow workflow, Collection`1 events) at Microsoft.SharePoint.Workflow.SPWinOEItemEventReceiver.RouteWorkflowEvent(SPItemEventProperties properties, SPWeb web, SPListItem item, Boolean fNeedTask...
03/08/2012 08:01:57.33* w3wp.exe (0x0C6C) 0x1450 Windows SharePoint Services General 0 Unexpected ...Reset) at Microsoft.SharePoint.Workflow.SPWinOEItemEventReceiver.ItemUpdated(SPItemEventProperties properties) at Microsoft.SharePoint.SPEventManager.RunItemEventReceiver(SPItemEventReceiver receiver, SPItemEventProperties properties, SPEventContext context, String receiverData) at Microsoft.SharePoint.SPEventManager.RunItemEventReceiverHelper(Object receiver, Object properties, SPEventContext context, String receiverData) at Microsoft.SharePoint.SPEventManager.<>c__DisplayClass8`1.<InvokeEventReceivers>b__0() at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state) at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param) at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken u...
03/08/2012 08:01:57.33* w3wp.exe (0x0C6C) 0x1450 Windows SharePoint Services General 0 Unexpected ...serToken, CodeToRunElevated code) at Microsoft.SharePoint.SPEventManager.InvokeEventReceivers[ReceiverType](SPUserToken userToken, RunEventReceiver runEventReceiver, Object receivers, Object properties, Boolean checkCancel) at Microsoft.SharePoint.SPEventManager.InvokeEventReceivers[ReceiverType](Byte[] userTokenBytes, RunEventReceiver runEventReceiver, Object receivers, Object properties, Boolean checkCancel) at Microsoft.SharePoint.SPEventManager.HandleEventCallback[ReceiverType,PropertiesType](Object callbackData) at Microsoft.SharePoint.Utilities.SPThreadPool.WaitCallbackWrapper(Object state) at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.Compil...
03/08/2012 08:01:57.33* w3wp.exe (0x0C6C) 0x1450 Windows SharePoint Services General 0 Unexpected ...erServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack) at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state) , Allocation call stack (if present) null