I'm trying to migrate workflow changes from Dev to Production. I've used the NWAdmin ExportWorkflow command to create NWF files. I'm now trying to use DeployWorkflow command to add the workflow into the production environment.
There is already an existing workflow with that name. I don't want to delete this workflow, as that will affect any in-progress workflows and probably delete historical data. I just want to update it with the latest version from production.
There is an -overwrite switch for the command, which I've specified. However, I get the following error when I run the command:
Error deploying workflow: Server was unable to process request. ---> System.InvalidOperationException: A workflow with this name already exists on this list.
at NintexWorkflowWS.PublishFromNWFXml(String workflowFile, String listName, String workflowName, Boolean saveIfCannotPublish)
Should I be using another approach for migrating changes between environments? A backup/restore of the site collection is not an option.