locked
The form has been closed. Error . RRS feed

  • Question

  • Hi

    i have created an infopath form to submit data into workflow. when i click the workflow task link  it should open the form for submit data .but i got this error "The form has been closed".

    i have set browser compatibility can be open in browser, and security and trust to domain.Then i added a data connection to submit data in to the hosting envirnment such as asp.net...... Then i Add a rule to button sumbit data, Close this form  Actions.

    Then i published to a network location,and published it .then i copied publihed infopath form in to the my workflow project.

    this is my workflow.xml

     

    <?xml version="1.0" encoding="utf-8" ?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Workflow
    Name="SharePoint.Workflow.New"
    Description="My SharePoint Workflow"
    Id="1d063cd0-7e77-49ea-962d-4e5a45c34564"
    CodeBesideClass="SharePoint.Workflow.New.Workflow1"
    CodeBesideAssembly="SharePoint.Workflow.New, Version=1.0.0.0, Culture=neutral, PublicKeyToken=90f60531b6528aa3"
    TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160">
    <Categories/>
    <MetaData>
    <Task0_FormURN>urn:schemas-microsoft-com:office:infopath:AddComments:-myXSD-2012-01-13T10-50-25</Task0_FormURN>
    <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
    </MetaData>
    </Workflow>
    </Elements>


     

     

    and this is my feature.xml

     

    <?xml version="1.0" encoding="utf-8" ?>

    <Feature Id="d6c1f353-a692-4be0-8ae8-b8213c87ddb4"
    Title="SharePoint.Workflow.New feature"
    Description="My SharePoint Workflow Feature"
    Version="12.0.0.0"
    Scope="Site"
    ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
    ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver"
    xmlns="http://schemas.microsoft.com/sharepoint/">
    <ElementManifests>
    <ElementManifest Location="workflow.xml" />
    <ElementFile Location="Forms\AddComments.xsn"/>
    </ElementManifests>
    <Properties>
    <Property Key="GloballyAvailable" Value="true" />
    <Property Key="RegisterForms" Value="*.xsn" />
    </Properties>
    </Feature>



    i m using infopath 2007 and share point 2007
    Please  help to fix this error.

    Thanks


    • Edited by LewisV Friday, January 20, 2012 10:57 AM
    Friday, January 20, 2012 10:47 AM

Answers

  • Hi,

         It sounds like you have uploaded manually the InfoPath form to the Form Templates Library. Try to deploy your InfoPath form through wsp and check for the issue. In most of the scenario the solution has worked.

     

    Also try the steps as mentioned below

    1. Go to Start --> Administration Tools.
    2. Select "Sharepoint 3.0 Central Administration" page.
    3. Select "Application management" tab.
    4. Select "Workflow settings" link under the Workflow Management.
    5. Select yes for "Enable user-defined workflows for this site? " radio button.
    5. Click on ok.

    Please let me know if it helps!!!!


    Ajeet
    • Edited by Ajeet Nigam Saturday, January 21, 2012 3:58 PM
    • Marked as answer by Wayne Fan Friday, January 27, 2012 3:37 AM
    • Unmarked as answer by LewisV Friday, February 3, 2012 5:14 AM
    • Marked as answer by LewisV Friday, February 3, 2012 5:15 AM
    Saturday, January 21, 2012 3:47 PM

All replies

  • Hi,

          Have you published the infopath form to the library before using it into your project?

    Ajeet
    Friday, January 20, 2012 11:00 AM
  • is it a must to publish info path form to a library? when i run the publishing wizard i choose the "to a network location". so it didn't ask me to published to a library. so what should i do.
    Friday, January 20, 2012 11:12 AM
  • Hi,

          Yes it should be published to the Network Location but you should have admin privilege to the system where you are trying to publish the info path form. Try to deploy the info path form through the Central Admin under "Manage Form Templates" under "InfoPath form services" and check if the form is deployed and shows category "Workflow" and status "Ready"

    Please le me know if it helps!!!


    Ajeet
    Friday, January 20, 2012 11:43 AM
  • Thank you very much for helping me. 

    i uploaded Form through the Central admin under Manage Form Templates .But the Status is Ready and Workflow Enabled is No  .HowCan i Set it to Yes.

    Friday, January 20, 2012 12:08 PM
  • Plz help me to fix this error
    Saturday, January 21, 2012 11:05 AM
  • Hi,

         It sounds like you have uploaded manually the InfoPath form to the Form Templates Library. Try to deploy your InfoPath form through wsp and check for the issue. In most of the scenario the solution has worked.

     

    Also try the steps as mentioned below

    1. Go to Start --> Administration Tools.
    2. Select "Sharepoint 3.0 Central Administration" page.
    3. Select "Application management" tab.
    4. Select "Workflow settings" link under the Workflow Management.
    5. Select yes for "Enable user-defined workflows for this site? " radio button.
    5. Click on ok.

    Please let me know if it helps!!!!


    Ajeet
    • Edited by Ajeet Nigam Saturday, January 21, 2012 3:58 PM
    • Marked as answer by Wayne Fan Friday, January 27, 2012 3:37 AM
    • Unmarked as answer by LewisV Friday, February 3, 2012 5:14 AM
    • Marked as answer by LewisV Friday, February 3, 2012 5:15 AM
    Saturday, January 21, 2012 3:47 PM