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?