think i got it. changed to var numLines = tran.get...
# suitescript
k
think i got it. changed to var numLines = tran.getLineCount({sublistId: 'item'}); for (var x = 0; numLines) < x;x++) {