SharePoint Workflow errors

Hi,
I have SharePoint 2007 Standard edition implemented on one of our production servers (windows 2003 with SP2). I have SharePoint Service Pack 2 installed on it (12.0.0.6421). It is a single Web front end installation.
We have several Visual Studio Custom Developed Workflows running on it.

The worklfows were working fine till last week. Suddently this week we have started receiving the below errors in the SharePoint Log and as a result some workflows get stuck and don't move to the next task.
This doesnt happen with all workflows but randomly happens with some of them.
I searched online and this was supposed to a known bug that was solved by a patch and the service pack2 . But for some reason it is happening again.  The only thing that was recently changed on the server was in the regional settings Date and number formats were chnaged from "English (United States)" to "English (United Kingdom)"

Any idea what could be the reason  for the below errors?
Note: I have these worklfows running on the Development environment without any issues.



Engine RunWorkflow: System.Workflow.Activities.EventDeliveryFailedException: Event "OnTaskChanged" on interface type "Microsoft.SharePoint.Workflow.ITaskService" for instance id

"54dfb6f1-2884-4a12-b645-3a4aca5c94f9" cannot be delivered. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.     at

System.Workflow.ComponentModel.Serialization.ActivitySurrogate.ActivitySerializedRef.System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(Object sender)    at System.Runtime.Serialization.DeserializationEventHandler.Invoke(Object sender)     at System.Runtime.Serialization.ObjectManager.RaiseDeserializationEvent()     at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fC...



RunWorkflow: System.ArgumentException: Item has already been added. Key in dictionary: 'e02d2b49-8fb9-4231-9920-c5683cc7bbaa'  Key being added: 'e02d2b49-8fb9-



Engine RunWorkflow: System.Workflow.Activities.EventDeliveryFailedException: Event "OnTaskCreated" on interface type "Microsoft.SharePoint.Workflow.ITaskService" for instance id
"f81db9e3-7957-4520-bf3a-38ea198fd952" cannot be delivered. ---> System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.Workflow.SPWorkflowHostServiceBase.LoadInstanceData(Guid instanceId, Boolean& compressedData)     at icrosoft.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, CreationCont.
LVL 1
TetraSAAsked:
Who is Participating?
 
TetraSAConnect With a Mentor Author Commented:
It turned out be an issue with SharePoint workflows itself.
I fixed the issue by installing the April 2011 cummulative update for SharePoint 2007
http://support.microsoft.com/kb/2512783
0
 
navdeepmadanCommented:
It could be possiblly your task list curroption. please try to to assosiate a new Task list on with a new assosiation of the workflow.

This is not a bug but since the message was clear "Index was outside the bounds of the array".  Please check it's hitting some limit.

TI working in developement since it didn't reach to that limit.
0
 
TetraSAAuthor Commented:
Hi,
I tried assigning it to a new TaskList with a new assosiation and new history list  , but I still get the same error

Engine RunWorkflow: System.Workflow.Activities.EventDeliveryFailedException: Event "OnTaskChanged" on interface type "Microsoft.SharePoint.Workflow.ITaskService" for instance id "6858607c-5713-44d8-87d4-3550798b2f06" cannot be delivered. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.     at System.Workflow.ComponentModel.Serialization.ActivitySurrogate.ActivitySerializedRef.System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(Object sender)     at System.Runtime.Serialization.DeserializationEventHandler.Invoke(Object sender)     at System.Runtime.Serialization.ObjectManager.RaiseDeserializationEvent()     at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fC...

I also got this error in the log :
RunWorkflow: System.ArgumentException: Item has already been added. Key in dictionary: '6858607c-5713-44d8-87d4-3550798b2f06'  Key being added: '6858607c-5713-

0
 
TetraSAAuthor Commented:
The other solutions didnt work.
Installing the updates was the only solution.
0
All Courses

From novice to tech pro — start learning today.