Cannot find SharePoint list with name “Workflow History”

May 25, 2010 - 11:28 pm 2 Comments

Error occurred in deployment step ‘Activate Features’: Failed to create workflow association ‘WorkflowProject1 – Workflow1’. Cannot find SharePoint list with name “Workflow History” or GUID “4eac61bf-6b3b-4f7d-b73c-f073ccc4364d”

This problem occurs if you deploy a workflow project in Visual Studio 2010 on a clean system. A clean system is computer that has fresh installation of Visual Studio 2010 and SharePoint, but no deployed workflow projects.

Resolution

This error occurs because of a missing Workflow History list. Because the development environment is a clean system, no workflows are deployed and the Workflow History list does not exist yet. To resolve this issue, reopen the workflow wizard, which causes the Workflow History list to be created.

To reenter the workflow wizard
  1. Select the workflow node in Solution Explorer.

  2. In the Properties window, click the ellipsis (…) button on any property that has an ellipsis button

  3. You must admit.. this was a cool resolution!

Facebook comments:

2 Responses to “Cannot find SharePoint list with name “Workflow History””

  1. jAlvarez Says:

    Thanks a lot Ricardo! This solution works for me in the Stagging Environment but I have a problem to perform this action in Production, I cannot do it in Production environment.
    Do you know another way to do it?

    Thanks a lot,
    jalvarez

  2. neuralsea Says:

    Mine was similar

    Error occurred in deployment step ‘Activate Features’: Failed to create workflow association ‘Compliance Workflow’. Cannot find SharePoint list with name “Tasks” or GUID “9072fb7e-40cd-4f37-b987-cbbfbf9f82c3″.

    I tried your solution (and also creating another workflowproject using VS wizard) but both failed. These steps succeeded. hopefully it will halp someone.
    1. open site with sharepoint manager 2010
    2. navigate to Tasks list or Workflow Tasks
    3. get ID and Title field values
    4. open csproj.user file and change GUID for correct Tasks Guid and check name (mine went from Tasks to Workflow Tasks – i.e. the default)
    5. restart VS
    6. redeploy

    this should now succeed. If it fails make sure you have the right URL site open in SPM :)

Leave a Reply