“This form has been closed” and “The specified form cannot be found” When Using SharePoint Default Workflows

December 03, 2008

A really weird bug with SharePoint happened today.

SYMPTOMS

You have a standard MOSS 2007 Approval or Collect Feedback workflow configured in a document library or a content type. You try to:

  • Open a task created by the workflow
  • Modify the workflow association data of an existing workflow
  • Create a new workflow association

SharePoint displays “This form has been closed” or “The specified form cannot be found” trying to display the form. Sometimes it shows the InfoPath Forms Service message box with the same information.

CAUSE

The standard out-of-the-box workflows have been messed up after their creation, by unknown causes.

SOLUTION

Uninstall and reinstall the standard workflow feature, using the following sequence of command line operations:

  • stsadm –o deactivatefeature –name ReviewWorkflows –url YOURPORTALURL –force
  • stsadm –o uninstallfeature –name ReviewWorkflows –force
  • stsadm –o installfeature –name ReviewWorkflows –force
  • stsadm –o activatefeature –name ReviewWorkflows –url YOURPORTALURL

Thanks to Patrik Luca on MSDN Forums.


Profile picture

Written by Edin Kapić Insatiably curious code-writing tinkerer. Geek father. Aviation enthusiast. Cuisine journeyman. Follow me on Twitter