Try logging the array values before While loop using this expression in Log Message activity.
String.Join(",",divisionNames)
I suspect the array have some less or no items.
Try logging the array values before While loop using this expression in Log Message activity.
String.Join(",",divisionNames)
I suspect the array have some less or no items.