Try to do it in another script type, maybe somethi...
# suitescript
a
Try to do it in another script type, maybe something is not clicking well is not grouping in the way you expect, some CSV row have incorrect data... who knows...