Microsoft Knowledge Base Email Alertz

SharePoint Workflow InfoPath form template error “This form cannot be opened. It is not workflow enabled.” while loading the form

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 2283766 - Last Review: August 1, 2010 - Revision: 2.0

SharePoint Workflow InfoPath form template error “This form cannot be opened. It is not workflow enabled.” while loading the form

Symptoms

You develop a custom Sequential Workflow for MOSS 2007 using Visual Studio 2008 and use InfoPath form templates as Initiation and Task forms. You deploy the workflow as a feature and are able to enable the workflow for a Document Library as well. However, when you trigger the workflow for an item/document in the document library, it generates the following exception,

“This form cannot be opened. It is not workflow enabled.”

You will also notice that for the InfoPath forms used by the workflow, if you go to the Central Administration page -> Application Management -> Managed form templates the status in the “workflow enabled” column for the form which you uploaded shows as “No”.

Cause

The element declaration in Feature.xml file is case-sensitive since it is based on XML formatting. Even if the information provided in the file is correct and the case-sensitivity (upper or lower casing of alphabets) of the XML text is not respected you are likely to see unidentifiable issues such as this.

Resolution

Verify the following settings in the feature.xml file: 

<Property Key="GloballyAvailable" Value="true" />

<Property Key="RegisterForms" Value="*.xsn" />

In order for the infopath forms to register well to the SharePoint environment we need to ensure that we have added the above RegisterForms property to the feature.xml file of the workflow feature being deployed.

Apart from this, the property named “GloballyAvailable” needs to be added to the feature properties to ensure that the infopath forms are marked as “Workflow enabled” in the Central Admin site.

If you set the value of the property named "GloballyAvailable" to "TRUE" instead of "true", you will receive the above mentioned error. Formatting this value to the correct case and redeploying the workflow feature helps resolve the error above.

More Information

Expect the following behavior when you try making changes to these properties for a workflow feature:

  1. Remove RegisterForms property from the feature.xml file and deplopy workflow feature: The workflow gets deployed but the infopath forms are not registered in the “Manage Form Templates” section in the Central Admin for SharePoint.
  2. Uninstall the workflow feature and revert back the above changes.
  3. Now, remove the GloballyAvailable property from the feature.xml file and deploy the workflow feature: The workflow gets deployed and the infopath forms are registered in the “Manage Form Templates” section in the Central Admin for SharePoint. However the status of these infopath forms for “Workflow enabled” column is set to No.
  4. Uninstall the workflow feature and revert back the above changes. Deploy the workflow feature again and it is noticed that adding back the GloballyAvailable property to the feature.xml file sets the “Workflow enabled” column value to Yes.
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use (http://go.microsoft.com/fwlink/?LinkId=151500) for other considerations.

APPLIES TO
  • Microsoft Office SharePoint Server 2007
Keywords: 
KB2283766
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate