I have created custom workflow activity library that contains 5 new activities. I have successfully created a simple workflow that demonstrates one of that activities. Later, I wanted to insert that particular activity inside an existing older published workflow and I got this error:
Error saving from workflow export file.: Nintex.Workflow.NWSavingWorkflowException: Failed to publish workflow: <Error><CompilerError Line="0" Column="0" Text="Activity 'commitActivity8' validation failed: There is already an activity named 'commitActivity8'. Activity names must be unique." /><CompilerError Line="0" Column="0" Text="Activity 'commitActivity1' validation failed: There is already an activity named 'commitActivity1'. Activity names must be unique." /></Error>
at Nintex.Workflow.Publishing.Publish.8iE=(String 8yE=, String 9CE=)
at Nintex.Workflow.Publishing.Publish.2SE=(String 2iE=, String 2yE=, String 3CE=, 9SE= 3SE=, WebPartPagesWebService 3iE=)
at Nintex.Workflow.Publishing.Publish.qSE=(XomlWorkflow uSE=, Boolean uiE=, Boolean uyE=, PublishOperationTrackingCollection vCE=, Boolean vSE=, WorkflowRepository viE=, Boolean vyE=, Boolean wCE=)
at Nintex.Workflow.Publishing.Publish.PublishAWorkflowOnPremises(String wfName, NWActionConfigurations configs, Guid listId, SPWeb web, ImportContext importCtx, Boolean validate, SPContentTypeId contentTypeId, String changeNotes, Boolean isProduction, String& publishWorkflowString)
at NintexWorkflowWS.PublishWorkflow2(String wfName, String activityConfigs, Guid listId, String contentTypeId, String changeNotes, Boolean isProduction) (Build:32420)
However, my activity is not called commitActivity...
I tried to publish that same workflow (exported/imported NWF file) in another farm (test environment) and it got published successfully.
What could be the problem?