It gets past the record.load just fine, and iterat...
# suitescript
k
It gets past the record.load just fine, and iterates through all the lines, but doesn't get the orderline
s
just out of curiosity, have you tried the same thing in a SS 1.0 script? I only ask because I have seen numerous instances where a permission issue in SS 2.0 either results in null/undefined values or a generic Unexpected Error, whereas the same code in SS 1.0 throws a descriptive error stating the particular permission that is needed (and lacking).
It's one of the first things I usually try when I suspect permission issues
k
I ended up getting around it by using search.create instead of record.load