I had to migrate a SharePoint Designer 2013 workflow to an environment. The workflow was exported to visio as a .vwi file. Unfortunately when the I tried to import the file using the “Import as visio” option from SharePoint Designer, the message was appearing
“This workflow cannot be imported because it was created in SharePoint Designer for a different site, or the original workflow has been moved or deleted.”
I stumbled upon the blog below how to fix the migration issue
Below are the steps
- Change the extension of the exported workflow from .vwi to zip
- Open the .zip file and remove workflow.xoml.wfconfig.xml file
- Rename .zip file back to .vwi
- From SharePoint Designer 2013, open the site where the workflow will be migrated.
- Click on Workflows tab.
- Click Import from Visio and browse to select the file and click Next.
- If the workflow is a reusable workflow, pick the reusable workflow option else if the workflow is a list workflow , pick the “List Workflow” option and select the list.
- Click Save.
- Click Publish to make the workflow available to the site.
If the workflow does not compile and throw the error
“Errors were found while compiling the workflow. The workflow files were saved but cannot be run.
Microsoft.SharePoint.SPException: App Management Shared Service Proxy is not installed….”
The App Management Service application needs to be created and started. from Central Administration. Also the App Management Service proxy has to be added to the default proxy group by following the steps described in blog.