Error using While loop. Assign: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

@Khadija_Zeb,

Check if your divisionNames have index number your while loop is trying to access

Index starts with zero to your divisionNames.Count -1

Thanks,
Ashok :slightly_smiling_face: