I'm getting `ERROR: Field 'line' Not Found` for a...
# suitescript
r
I'm getting
ERROR: Field 'line' Not Found
for a field called # which represents the line number. (purchase orders, before load, on create) I've undeployed every script and workflow on the record (as evidenced on the scripted records chrome extension). I've cleared my cache. There is no custom code on the form.
a
Uhmm beforeLoad on create you have no lines at all right?
r
Yes
a
So, what are you trying to do with the line field?
r
I'm working on something unrelated. Just want to fix the bug.
a
What I'm trying to say is there is no lines on beforeLoad on create, are you saying you do have lines?
If that field sourcing its value?
r
that's probably it
a
My guess is the field is sourcing its value from the line field, and there is no line field in the form (at least not accessible yet). You can play with NVL2 but not sure if that would solve your problem.