Ask a questionAsk a question
 

AnswerHow up upgrade IP task form?

  • Wednesday, November 04, 2009 8:14 AMYonatann Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,
    My solution contains WF with custom task forms designed with InfoPath 2007. The forms are deployed along with the WF as a single
    feature. From time to time, there is a need to update some of the tasks forms, I tried to upload the new task form to the central admin
    form templates library - but I receive error saying that the form is currently not loaded in the farm (??) although it is active and working
    fine. I also tried to execute "stsadm.exe -o UpgradeFormTemplate..." but the same error message appears.

    How do you update/upgrade an InfoPath form which is used for workflows and has been deployed as feature?

    Thanks.

    ...
    • Moved byMike Walsh MVPMVP, ModeratorThursday, November 05, 2009 5:06 AMseems more like an InfoPath q than a wf one (From:SharePoint - Workflow)
    •  

Answers

  • Thursday, November 05, 2009 10:14 PMSrinivas Varukala Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    If you are looking to update the already deployed workflow in production environment I recommend you take the steps very carefully.

    Please read this blog entry which is widely accepted and implemented.

    The idea is to create a complete new workflow project with different name and solution id. Then deploy it and attach to the same doc. library. Then using the doc. library workflow settings select "no instances" for the old workflow and "allow" for the new workflow. This will attach the new workflow for any new items and the existings items will still continue with the old workflow.

    Here is another blog

    Hope it helps!
    Srinivas Varukala http://sharenotes.wordpress.com

All Replies

  • Thursday, November 05, 2009 5:00 AMGinni Sharma Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    Whenever u want to update an Infopath Form which is a custom task form, always uninstall the feature using "stsadm.exe -o uninstallfeature -filename FeatureName\feature.xml -force". This commands deletes all the forms in the central admin related to this feature.

    Then use installfeature command to install this feature which will upload the new custom task forms in the central admin.

    So whenever u want to upload an updated custom task form, always uninstall the feature(which deletes the form) and then install the feature.

    I hope this helps.
  • Thursday, November 05, 2009 10:00 PMYonatann Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Ginni,
    Thanks for your answer.

    This feature includes not only the IP forms but also the WF and other artifacts.
    Uninstalling the feature, in a production environment, means leaving the system
    without workflow and other important functionality for some time (even few seconds).

    No other way to achieve this goal?

    Yoni
    ...
  • Thursday, November 05, 2009 10:14 PMSrinivas Varukala Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    If you are looking to update the already deployed workflow in production environment I recommend you take the steps very carefully.

    Please read this blog entry which is widely accepted and implemented.

    The idea is to create a complete new workflow project with different name and solution id. Then deploy it and attach to the same doc. library. Then using the doc. library workflow settings select "no instances" for the old workflow and "allow" for the new workflow. This will attach the new workflow for any new items and the existings items will still continue with the old workflow.

    Here is another blog

    Hope it helps!
    Srinivas Varukala http://sharenotes.wordpress.com