Why I am getting this issue Im trying read line ...
# suitescript
d
Why I am getting this issue Im trying read line data while submitting sales order in create mode Script is in userevent before submit script How to resolve this
b
usually this error is from trying to use getSublistText when instead you should be using getSublistValue
d
i am using getSublistValue only
will this be a problem because of create mode, because i didn't face any issues in edit mode @battk
b
sounds weird, do you have a stacktrace that shows which line is causing the problem
are there other user events that could be using getSublistText
d
I got the stack trace, I checked the line number, and I am using the getSublistValue in that line
b
it might be the opposite and you should be using getSublistText instead of getSublistValue
d
okay i will check it out
It worked , can I know why it worked now Because only in creating sales order I'm facing this
b
I would guess whatever is creating your record is using setSublistText
s
I think 'dynamic mode' can sometimes play a role here as well