Skip to main content
Nintex Community Menu Bar

Workflow ForEach loop not working as expected. Additionally, the loop's 'ReferenceName Item' reference returns an array and not a single item when you drag over a value.

  • November 19, 2015
  • 0 replies
  • 19 views

Forum|alt.badge.img+10


 

Symptoms


- Loop acting on only the first or last item of a list.
- Item reference from 'ReferenceName Item' reference showing the UI for an Array instead of a single item.
 

Diagnoses


An event that followed the loop's generated line rules was deleted, taking the outcome logic with it. Dragging over a new ForEach event does not regenerate the missing (and required) logic unless there are no events after the ForEach.
 

Resolution

Re-implement the outcome logic or delete events after the ForEach event and replace it, regenerating the required outcomes.

For the returned array issue, select 'Return a single item' and 'Select item: First' in the return options and it should return the item at the current loop index as expected.