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

Collection Operation, Add method fails on first item when using Index

  •  08-28-2009, 5:39 PM

    Collection Operation, Add method fails on first item when using Index

    Hello Nintex Connect,

    I seem to have a basic problem with the Add method of the Collection Operation action in Nintex Workflow 2007 (v. 1.09.04).

    The scenario is very simple:

    1. If I specify a Text workflow variable and assign it a value, and a Collection workflow variable and use the Add method with the Text variable the action succeeds and I can use Get to retrieve the value again.

    2. If I try to do the above but use a List ID variable initialized to 0 to specify the first item of the collection the workflow errors with the text 'Error operating on collection variable. Index property is greater than the number of items in the collection'. I expected a value of 0 for the empty collection would be a valid value. What value should be used in this case?

    3. Of course from step 2 I could choose not to use an Index in the Add method to add items to the collection. But if I have any List ID variables defined in the workflow (for other purposes), the first of these will be pre-selected in the Index dropdown list of the Add method of the Collection Operation. It is not possible to avoid using an index (the user manual for this action says it's optional) and I'm left with no way to add the item without the action to trigger the above mentioned workflow error. What is the solution here?

     

    Thanks.

     

    Kind regards,

    Maurizio.

    Filed under:
View Complete Thread
Powered by Community Server, by Telligent Systems