So your script is probably relying on result.id to...
# suitescript
m
So your script is probably relying on result.id to exist. It does not when there are summary columns.