Custom workflow fails with: Event Queue operation failed with MessageQueueErrorCode QueueNotFound

Hi,

 

We have an issue with a custom workflow linked to a custom content type (inherited from document). The workflow locks a task, and seems to be stuck in “in progress”.

We have 3 workflows (2 from previous versions), but only 1 enabled for new instances, and 2 disabled, but not removed (they have some items still pending). We have issues with NEW instances only,
and not for old. Moreover they are intermittent, meaning sometimes the workflow works fine!

 

We do not increment the assembly version, hence it is our suspect that this might be the cause. However each new workflow version has new methods inside the workflow DLL named differently so theoretically
assembly versioning should not matter, right? 

We deploy new workflow in a PATCH solution, with PATCH features – so it means it is a separate, new wsp solution and a separate feature, which we enable on the site or site collection.

 

I attach the two errors from ULS log below.

 

Any help appreciated, esp. around deployment and maintenance of workflows within MOSS2010.

Andrew

 

ULS LOG extract:

Error reported:

WinWF Internal Error, terminating workflow Id# 3979ce42-286b-4937-966e-1bb6b2804b6aa

Then right after that:

01/17/2011 09:32:54.38 w3wp.exe (0x126C) 0x1C78 SharePoint Foundation Workflow Infrastructure 88xr Unexpected WinWF Internal Error, terminating workflow Id# 3979ce42-286b-4937-966e-1bb6b2804b6a

01/17/2011 09:34:48.67 w3wp.exe (0x126C) 0x21FC SharePoint Foundation Workflow Infrastructure 936l High Engine RunWorkflow:
System.Workflow.Activities.EventDeliveryFailedException: Event “OnTaskChanged” on interface type “Microsoft.SharePoint.Workflow.ITaskService” for instance id “e5755848-c7f3-40ae-9c0e-2a0b69d5be2b” cannot be delivered. —>
System.Workflow.Runtime.QueueException: Event Queue operation failed with MessageQueueErrorCode QueueNotFound for queue ‘Message Properties Interface Type:Microsoft.SharePoint.Workflow.ITaskService Method Name:OnTaskChanged
CorrelationValues: 93e0e2c1-4e6b-4c86-aa2b-35036e5f0d7b ‘. at System.Workflow.Runtime.WorkflowQueuingService.GetQueue(IComparable queueID) at System.Workflow.Runtime.WorkflowQueuingService.EnqueueEvent(IComparable queueName, Object item) at System.Workflow.Runtime.WorkflowExecutor.EnqueueItem(IComparable
queueName, Object item, IPendingWork pendingWork, Object workItem) at System.Workflow.Runtime.WorkflowInstance.EnqueueItem(IComparable queueName, Object item, IPendingWork pendingWork, Object workItem) 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.SPWinOETaskService.CallEventHandler(Type
eventType, String eventName, Object[] eventData, SPWorkflow workflow, String identity, IPendingWork workHandler, Object workItem) at Microsoft.SharePoint.Workflow.SPWorkflowExternalDataExchangeService.RunEvent(SPWorkflowEvent workflowEvent, SPWorkflow workflow,
IPendingWork workHandler, SPPendingWork eventDequeue) at Microsoft.SharePoint.Workflow.SPWinOeHostServices.Send(SPWorkflow workflow, SPWinOeWorkflow winoeworkflow, SPWorkflowEvent e) at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService
host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)