Tuesday, February 19, 2008

SharePoint 2007 workflow 'Failed on Start'

I have been trying to work out for some time why I have been getting a 'Failed on Start' error when I try to run the OOB workflows in my MOSS VM.

When I look in the SharePoint log I see the following exception;

02/19/2008 20:04:53.82     w3wp.exe (0x14A0)                           0x1524    Windows SharePoint Services       Workflow Infrastructure           72fs    Unexpected    RunWorkflow: System.ArgumentException: Value does not fall within the expected range.     at Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties..ctor(SPWorkflow workflow, Int32 runAsUserId, String associationData, String initiationData)     at Microsoft.SharePoint.Workflow.SPWinOEWSSService.MakeActivation(SPWorkflow workflow, SPWorkflowEvent e)     at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(Guid trackingId, SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow originalWorkflow, SPWorkflow workflow, Collection`1 events, SPRunWorkflowOptions runOptions)    
02/19/2008 20:04:53.82     w3wp.exe (0x14A0)                           0x1524    Windows SharePoint Services       Workflow Infrastructure           98d7    Unexpected    System.ArgumentException: Value does not fall within the expected range.     at Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties..ctor(SPWorkflow workflow, Int32 runAsUserId, String associationData, String initiationData)     at Microsoft.SharePoint.Workflow.SPWinOEWSSService.MakeActivation(SPWorkflow workflow, SPWorkflowEvent e)     at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(Guid trackingId, SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow originalWorkflow, SPWorkflow workflow, Collection`1 events, SPRunWorkflowOptions runOptions)
    

I finally found a blog entry from Rodney Langley that steered me to the solution (see link below).

It turns out that at one stage I change the accounts for the application pools, but DIDN'T do it through the Central Admin interface. When I went into Central Admin - Service Accounts and changed them in there, the workflows miraculously started to work....

Thanks Rodney

Workflows, SSPs, and IIS Nightmares - SharePoint Squared - Rodney Langley's SharePoint Weblog

18 comments:

Rodney Langley said...

You're most welcome!
Glad I could help! Thanks for the link back :)
Rodney Langley

Alex said...

you saved my week :D

Srikanth said...

Not sure if you check comments now. But man you saved us a loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooot of time resolving this issue. You have to get big gift for Christmas.

I'll put in a special request to Santa.

Srikanth N said...

Not sure if you check comments now. But man you saved us a loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooot of time resolving this issue. You have to get big gift for Christmas.

I'll put in a special request to Santa.

Anonymous said...

Thanks, save my day.

Kirk said...

This helped me out as well. Thanks a bunch!

Pankaj Mathur said...

Thank you! Just the solution I was looking for.

Anonymous said...

Thanks a ton !! This actually resolved my workflow issu.

Anonymous said...

Thanks a ton !! This actually resolved my issue.

Anonymous said...

Thanks a ton !! This actually resolved my workflow issue.

Anonymous said...

Yup! Me too. The moral of the story is, don't do ANYTHING manually. Assume there is an entry in Sharepoint content database for EVERYTHING, and ONLY use Central Admin to modify any of the Security Setting for Sharepoint.

Søren said...

Thanks thanks thanks.... What a relief to have this solved. Can't tell you how much time i've spend trying to figure this out.

Anonymous said...

Thanks for publishing this article. I spent hours trying to find a solution for this issue. Works great now. Thanks again.

zee said...

Nice info. Thanks a lot
zee
walisystems.com

Em Kay said...

This did the trick!
Thanks so much!!! :-)

Jacob Mathew said...

Thanks a lot .It saved my time and helped to solve the issue in my Development Server wSS 3.0

Jacob Mathew said...

Nice Info , Helped a lot to solve the issue in our development server

Jacob Mathew said...

Save my time.Thanks a lot!