Sharepoint 2007 workflow task locked issue
-
Hi, whenever I try to approve some task, it gives me the below error on the sharepoint UI "this task is currently locked by another workflow and cannot be edited" the status shows "completed" and we cannot proceed further. please help. when i searched for the error in ULs logs, it shos the following:
Quote:
03/21/2012 10:32:02.56 w3wp.exe (0x1BF8) 0x1AA4 Windows SharePoint Services Workflow Infrastructure 936l High Engine RunWorkflow: System.Workflow.Activities.EventDeliveryFailedException: Event "OnWorkflowItemChanged" on interface type "Microsoft.SharePoint.Workflow.ISharePointService" for instance id "41c930d8-9629-47ef-99fb-5d74ce57ff7c" cannot be delivered. ---> System.ArgumentNullException: Buffer cannot be null. Parameter name: buffer at System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable) at Microsoft.SharePoint.Workflow.SPWinOePersistenceService.LoadWorkflowInstanceState(Guid instanceId) at System.Workflow.Runtime.WorkflowRuntime.InitializeExecutor(Guid instanceId, CreationContext context, WorkflowExecutor executor, WorkflowInstance workflowInstance) at System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext context, WorkflowInstance workflowInstance)... 03/21/2012 10:32:02.56* w3wp.exe (0x1BF8) 0x1AA4 Windows SharePoint Services Workflow Infrastructure 936l High ... at System.Workflow.Runtime.WorkflowRuntime.GetWorkflow(Guid instanceId) at System.Workflow.Activities.WorkflowMessageEventHandler.EventHandler(Object sender, ExternalDataEventArgs eventArgs) --- End of inner exception stack trace --- at System.Workflow.Activities.WorkflowMessageEventHandler.EventHandler(Object sender, ExternalDataEventArgs eventArgs) at Microsoft.SharePoint.Workflow.SPWinOEWSSService.RaiseEvent(SPWinOeWorkflow workflow, SPWorkflowEvent workflowEvent, Object workItem, IPendingWork workHandler) at Microsoft.SharePoint.Workflow.SPWinOeHostServices.Send(SPWinOeWorkflow winoeworkflow, SPWorkflowEvent e) at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(Guid trackingId, SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, Ti... 03/21/2012 10:32:02.56* w3wp.exe (0x1BF8) 0x1AA4 Windows SharePoint Services Workflow Infrastructure 936l High ...meSpan timeOut)
-
Hi, whenever I try to approve some task, it gives me the below error on the sharepoint UI "this task is currently locked by another workflow and cannot be edited" the status shows "completed" and we cannot proceed further. please help. when i searched for the error in ULs logs, it shos the following:
Quote:
03/21/2012 10:32:02.56 w3wp.exe (0x1BF8) 0x1AA4 Windows SharePoint Services Workflow Infrastructure 936l High Engine RunWorkflow: System.Workflow.Activities.EventDeliveryFailedException: Event "OnWorkflowItemChanged" on interface type "Microsoft.SharePoint.Workflow.ISharePointService" for instance id "41c930d8-9629-47ef-99fb-5d74ce57ff7c" cannot be delivered. ---> System.ArgumentNullException: Buffer cannot be null. Parameter name: buffer at System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable) at Microsoft.SharePoint.Workflow.SPWinOePersistenceService.LoadWorkflowInstanceState(Guid instanceId) at System.Workflow.Runtime.WorkflowRuntime.InitializeExecutor(Guid instanceId, CreationContext context, WorkflowExecutor executor, WorkflowInstance workflowInstance) at System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext context, WorkflowInstance workflowInstance)... 03/21/2012 10:32:02.56* w3wp.exe (0x1BF8) 0x1AA4 Windows SharePoint Services Workflow Infrastructure 936l High ... at System.Workflow.Runtime.WorkflowRuntime.GetWorkflow(Guid instanceId) at System.Workflow.Activities.WorkflowMessageEventHandler.EventHandler(Object sender, ExternalDataEventArgs eventArgs) --- End of inner exception stack trace --- at System.Workflow.Activities.WorkflowMessageEventHandler.EventHandler(Object sender, ExternalDataEventArgs eventArgs) at Microsoft.SharePoint.Workflow.SPWinOEWSSService.RaiseEvent(SPWinOeWorkflow workflow, SPWorkflowEvent workflowEvent, Object workItem, IPendingWork workHandler) at Microsoft.SharePoint.Workflow.SPWinOeHostServices.Send(SPWinOeWorkflow winoeworkflow, SPWorkflowEvent e) at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(Guid trackingId, SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, Ti... 03/21/2012 10:32:02.56* w3wp.exe (0x1BF8) 0x1AA4 Windows SharePoint Services Workflow Infrastructure 936l High ...meSpan timeOut)
03/21/2012 10:32:02.56 w3wp.exe (0x1BF8) 0x1AA4 Windows SharePoint Services Workflow Infrastructure 936l High Engine RunWorkflow: System.Workflow.Activities.EventDeliveryFailedException: Event "OnWorkflowItemChanged" on interface type "Microsoft.SharePoint.Workflow.ISharePointService" for instance id "41c930d8-9629-47ef-99fb-5d74ce57ff7c" cannot be delivered. ---> System.ArgumentNullException: Buffer cannot be null. Parameter name: buffer at System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable) at Microsoft.SharePoint.Workflow.SPWinOePersistenceService.LoadWorkflowInstanceState(Guid instanceId) at System.Workflow.Runtime.WorkflowRuntime.InitializeExecutor(Guid instanceId, CreationContext context, WorkflowExecutor executor, WorkflowInstance workflowInstance) at System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext context, WorkflowInstance workflowInstance)... 03/21/2012 10:32:02.56* w3wp.exe (0x1BF8) 0x1AA4 Windows SharePoint Services Workflow Infrastructure 936l High ... at System.Workflow.Runtime.WorkflowRuntime.GetWorkflow(Guid instanceId) at System.Workflow.Activities.WorkflowMessageEventHandler.EventHandler(Object sender, ExternalDataEventArgs eventArgs) --- End of inner exception stack trace --- at System.Workflow.Activities.WorkflowMessageEventHandler.EventHandler(Object sender, ExternalDataEventArgs eventArgs) at Microsoft.SharePoint.Workflow.SPWinOEWSSService.RaiseEvent(SPWinOeWorkflow workflow, SPWorkflowEvent workflowEvent, Object workItem, IPendingWork workHandler) at Microsoft.SharePoint.Workflow.SPWinOeHostServices.Send(SPWinOeWorkflow winoeworkflow, SPWorkflowEvent e) at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(Guid trackingId, SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, Ti... 03/21/2012 10:32:02.56* w3wp.exe (0x1BF8) 0x1AA4 Windows SharePoint Services Workflow Infrastructure 936l High ...meSpan timeOut) ++++++++++++++++++++++++++++++++++++++++++++++++ Looks like you are attempting to send the same workflow from two different events. I can definately see in the first bold segment that an update notification fired the workflow that was complete with GUID. Second attempt to fire workflow had some of the arguments needed but could not get the GUID and crashed. Third looks like a simple timeout where the data missing was handled cleanly and the workflow engine just timed out w/o a crash. Check carefully what all is trying to call the same workflow because there is a definate tug of war here.