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.