In the CSV import, it's not generated the transact...
# suitescript
m
In the CSV import, it's not generated the transaction number until afterwards, so when your script tries to read it, it gets "Undefined TranID"