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

Error adding a custom task in a workflow

Last post 07-27-2012, 9:24 AM by leandropilan. 5 replies.
Sort Posts: Previous Next
  •  01-08-2010, 9:57 PM 8170

    Error adding a custom task in a workflow

    Hi,

    we have created a custom activity but, when we add 2 tasks of this type, we obtain the follow error message during the publishing:

    "Validation Failed: There is already an activity named “”. Activity name must be unique"

     How can we solve the problem?

    Thank's!

  •  01-11-2010, 6:11 PM 8203 in reply to 8170

    Re: Error adding a custom task in a workflow

    Hi Matteo,

    Can you check your activity and adapter code to make sure you aren't hard coding the name property of the activity? If you do so, this could happen. If you don't set the name, the workflow engine will automatically be assigned one to it.

    regards

    James

  •  08-19-2010, 1:04 PM 12505 in reply to 8203

    Re: Error adding a custom task in a workflow

    JamesTyzack:

    Hi Matteo,

    Can you check your activity and adapter code to make sure you aren't hard coding the name property of the activity? If you do so, this could happen. If you don't set the name, the workflow engine will automatically be assigned one to it.

    regards

    James

     

    James, 

    I seem to be having the same problem. Could you give me more details on where to check for this? Where is this Name property which I'm supposed to leave blank?

    I was just copying your example SDK code (ExecuteSQLAction) so I'm pretty sure this is setup the same way in there too.

    Thank you!

     I

     

    PS: the only Name I see explicitly specified is in the NWA file (mapped to Allowed Actions->Add Action), but that seems to be a required field.

  •  08-19-2010, 10:44 PM 12513 in reply to 12505

    Re: Error adding a custom task in a workflow

    Hi Igor

    In the activity code (maybe in the designer.cs file), look for a line that sets the .Name property. It might be in a method called InitializeComponent.

    Also check in AddActivityToWorkflow that you are not setting the .Name property of the activity class.

    If all else fails, do a find in file (CTRL + SHIFT + F) in visual studio and search for .Name

    James

  •  12-29-2010, 2:23 PM 14696 in reply to 8170

    Re: Error adding a custom task in a workflow

    Hi friend,

    you could solve this problem?

    thanks
  •  07-27-2012, 9:24 AM 24271 in reply to 14696

    Re: Error adding a custom task in a workflow

    Hello, I have solved the issue using  JamesTyzack's tip, simple removing the Name Property set:

     

    private void InitializeComponent()

            {

                /*this.Name = "Activity1";*/

            }

     

    Thank you! 

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