Nintex Connect

The Official Community Site for Nintex Software Products, including Nintex Workflow 2007, 2010 and 2013; Nintex Workflow for Project Server 2010; Nintex Reporting 2008 and Nintex Analytics 2010; Nintex Forms 2010; Nintex Live and Nintex SmartLibrary.
Welcome to Nintex Connect Sign in | Join | Help
in Search

NWAdmin DeployWorkflow fails because an existing workflow with that name exists

Last post 08-01-2012, 3:06 PM by dalzoubi. 7 replies.
Sort Posts: Previous Next
  •  08-15-2011, 3:48 AM 18740

    NWAdmin DeployWorkflow fails because an existing workflow with that name exists

    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.

  •  08-15-2011, 10:10 AM 18749 in reply to 18740

    Re: NWAdmin DeployWorkflow fails because an existing workflow with that name exists

    Hi Ivan_Wilson,

    go to Central Admin->Nintex Workflow 2010->Licensing.

    What build of NW2010 are you using?

    It should be in this format : 2.2.2.1

    The above is the latest build, so I would recommend you upgrade if you can.

     

  •  08-15-2011, 10:07 PM 18772 in reply to 18749

    Re: NWAdmin DeployWorkflow fails because an existing workflow with that name exists

    Hi Vadim,

    We are on 2.2.1.0, we'll upgrade to 2.2.2.1 today and retest. Do you know if this was something that was resolved between these builds?

    Ivan

  •  08-16-2011, 2:13 AM 18774 in reply to 18772

    Re: NWAdmin DeployWorkflow fails because an existing workflow with that name exists

    Upgraded and now working. Thanks Vadim
  •  11-07-2011, 2:24 AM 20161 in reply to 18774

    Re: NWAdmin DeployWorkflow fails because an existing workflow with that name exists

    I'm facing the same issue, even with the latest build, however on a slightly different scenario

    During development, a given list is being deleted and re-created several times. When the list is deleted, the published workflow remains in the Workflows list, causing the problem when running nwadmin -o deployworkflow.

    Any workarounds? Is it so that I have to manually delete the workflow during FeatureUninstall?

    I looked at the DeleteWorkflow webservice operation, but it also expects a ListId.

     

  •  11-14-2011, 7:56 PM 20269 in reply to 20161

    Re: NWAdmin DeployWorkflow fails because an existing workflow with that name exists

    Hi,

    There are no work arounds, before deleting the list you will need to ensure the associated workflow is also removed.

  •  01-25-2012, 12:49 PM 21240 in reply to 20269

    Re: NWAdmin DeployWorkflow fails because an existing workflow with that name exists

    So if I follow, there is no way to detect or delete the orphaned workflow from the environment, correct? If you install a feature, then uninstall the feature, then try to reinstall the feature later and it fails because of this, you have to delete the site to fix this?

    Try this: Open your website with SPDesigner and find the folder called NintexWorkflows. Find your workflow under there and delete it. Removing the association doesn't remove the workflow, only the association with the list.

  •  08-01-2012, 3:06 PM 24331 in reply to 21240

    Re: NWAdmin DeployWorkflow fails because an existing workflow with that name exists

    You can just navigate to the "NintexWorkflows" library and delete it from there directly instead of using SharePoint Designer, this can be accomplished by navigating to the following URL:

    http://<siteInQuestion>/NintexWorkflows 

    It worked for me, hope it helps you resolve our issue. 

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems