Closed ShawnTalbert closed 4 years ago
I think this may be a NetSuite bug behind the scenes that we may want to workaround
This appears to be fixed in SuiteScript 2.1. I tested via a Suitelet that loaded an record with a UE script that had beforeLoad() autologging. Autologging in both scripts worked fine. Reopen if it pops up again.
I'm getting the same error any idea how can I resolve this
The generic TypeError
here is unrelated to the issue you describe in the NetSuite slack. Please see my comments there for more advice :)
if beforeLoad() exists on an indirect script (e.g. a form that does a lookup of some other record type) NS breaks something. Workaround is to not export beforeLoad() or make it en empty function.
You'll get an error like: