Solved: Moving SharePoint 2010 Designer Workflows between Sites


In man occasions you would be faced by the need to move workflows you developed using SharePoint designer from one site to another. This might be the case if for example you developed and tested the workflow on a testing environment and now wants to move to the production environment without the need to re-develop the workflow.

The steps to perform this is rather simple:

  1. Export the workflow to Visio.
  2. Edit the VWI archive and delete the configuration file.
  3. Import the workflow back to your destination site.

So open the SharePoint designer and open the source site. click on the workflows link on the left and then the workflow you want to move. Click on the ribbon on export to Visio button.

image

Now rename the file exported (VWI file) to be a ZIP file and open it with Windows Explorer. You will find a file named “workflow.xoml.wfconfig.xml”

image

Just delete this file. Now rename the archive back to be a VWI file.

Now open the destination site and click the import from Visio and browse to the edited VWI file. This will allow you to re-associate your workflow as if it was created or exported from Visio rather than the designer while preserving any development made in the workflow it self.

Comments (15)

  1. Dr.Sharepoint says:

    clever move. thanks for the tip

  2. Ryan Russo says:

    You made some decent points there. I looked on the internet for the issue and found most individuals will go along with with your website.

    http://www.scribd.com/…/SharePoint-Developers

  3. T. Soprano says:

    What about if Feedback processes were created in the workflows? It looks like the xml code to generate the feedback form is resident in the "workflow.xoml.wfconfig.xml" file that gets deleted. In the new site, the workflows appear to import properly, but I get an error viewing the task since the Feedback form does not exist. If I view the new "workflow.xoml.wfconfig.xml" file, I can see a line that shows RequiresGeneration=true for the Feedback form, but it doesn't get regenerated. Just wondering if you had come across this problem.

    Thanks.

    anthony.soprano.ctr@us.af.mil

  4. jjgotmailATcomcastDOTnet says:

    In my workflow there is a rules file and specifies the public key.  Should this be copied?

  5. Barcelona Champions says:

    Great article.. thanks

  6. Glen says:

    Nice artice, I think you should practice drawing circles though

  7. Sumit says:

    Brilliant, worked like a charm. Thanks very much.

  8. Hasan Jamal Siddiqui says:

    Not woking on my environment,Pleas let me know how to do.I got message you are chosen wrong file.

  9. Shankar says:

    Works excellent. You just need to remove a single file ending with "xoml.wfconfig.xml".

  10. Alvin Reyes says:

    Great tip. very simple but worked like a charm. Thank you very much!

  11. Nichola Vowles says:

    Thanks for this, saved me so much time!

  12. prema says:

    can't able to remove .zip extension

  13. Jagannath Sahu says:

    Please follow  this link forums.winamp.com/showthread.php to rename file to .VWI.

  14. vivek says:

    it does create the 2010 wf in the new environment but i found that the workflow settings seem to have disappeared. also i want to be able to change the settings to get the WF kicked off when an item is added instead of manually. there does not seem to be a way to do that