SharePoint Workflow, Failed to start


My worflow failed to start. In the ULS logs I got the following message:

Category: Workflow Infrastructure
Message: System.ArguementException: Item does not exist. It may have been deleted by another user. 

According to the discussion in this thread I concluded that the »Workflow source files« (.XSN, .XOML) were Checked Out. I checked in these files and it started to work.

Final explanation on this thread was:

Basically the problem was in fact related with the versioning state of the SPD workflow files. The files in the workflow publishing process were not checked in and so no other user could access them, which lead to the errors described in the post above. And the reason for the fail in the check-in was because the list that has the workflow files has a Title field that was set to required and not Optional as it should be.

This was due to the fact that the Title field is being inherited from somewhere at the sitecollection level where it is being “Required”. We suspect that this is happening at the “Document” parent level (by default the Title for the “Document” content type is “optional”). That needs to be changed.

Solution: One needs to go to the Document content type and verify if the “Title” field is set to “Required”. If it is, click on “Title” and then change it to “Optional” and save the change (this might return an error stating it can’t propagate the change to some content types, but it propagated to the workflow lists).

Take the following steps:

  1. In SPD in the »Site Objects« pane select »All files« and then »Workflows«.
  2. Find your workflow and select it
  3. You can see that some files are checked out (green tick marks)
  4. Check In all these files
  5. My workflow started to work after taking these steps.
Enhanced by Zemanta
Advertisements

About Andrej Dobrovoljc

Andrej Dobrovoljc

Posted on 25. May, 2011, in SharePoint and tagged , , , . Bookmark the permalink. 4 Comments.

  1. elviruscito@yahoo.co.uk

    I’m so glad I came across to this article!. I’ve spent more than a week trying to figure this out with no joy. I’m kind of new in the world of sharepoint designer and workflows and I was starting to feel very frustrated with this.
    Once again Big Thank U!!

    Elvira

  2. this is a very helpful post; we encountered the exact same issue in one of our customer’s sitecollections. Thanks!

    Dieter Van Dooren.

  1. Pingback: SharePoint Designer issues + resolutions | Jonoooooooooo

  2. Pingback: SharePoint Designer issues + resolutions | My Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: