Any see this before in a M/R? View System UNEXPECT...
# suitescript
d
Any see this before in a M/R? View System UNEXPECTED_ERROR 2/7/2020 11:35 am Darren Hill TypeError: Cannot call method "split" of undefined (Governance.scala#52).
I don't use split anywhere in this M/R nor anything imported
b
is this 2.1?
d
2019.2
b
suitescript 2.1
d
2.x
b
Governance.scala suggests that the error is one of netsuite's internal code errors
it also suggests they use scala
s
awesome to see them using Scala
go NetSuite!
d
Would specifying 2.0 avoid the script using scala?
b
you can try, but i dont think so
i asked because your error looks extra weird
a
Great, now we have JavaScript, Rhino(Transpiling to Java) and Scala, then on top of this add TypeScript... what can possible go wrong.
d
More info. If I return a
search.Search
object in the getInputData stage that has zero results, I rightfully (and immediately) go to the summary stage. But that's where the error happens ... and I never get a chance to execute the first line of the summary stage either
b
what does your search.Search look like
j
@darrenhillconsulting does it happen in getInputData or in one of the stages? It could be from a user event on one of the records you interact with Nvm you said it happens with zero results
d
in the getInputData .. I'm merely returning a search.Search object
s
What is the search Type?
d
Vendor Bill
r
Are you using any iterator in the summary stage
i
I have the same error. I'm using ss2.0
m
did yalls resolve this one?
j
I just got the same error in a scheduled script
Copy code
Error: UNEXPECTED_ERROR
TypeError: Cannot call method "split" of undefined (Governance.scala#52)
I guess it's a bug in NetSuite's script queue architecture?
s
probably should file a case - since you're not alone!
j
Still getting this today -- I just submitted a case. Only affecting one script (so far)
Execution does not even reach the first line (a log statement I added) of the schedule script btw
s
I'm still tickled to see them using Scala
j
Update on this @darrenhillconsulting @Ivan @Merik Ducker After debugging with NS support, for me the error came from importing
lodash
with`@NAmdConfig` directive in a custom module. Double check that the
@NAmdConfig
directive is at the top of the entry point script and not just in the custom module or try importing using a absolute file cabinet path. No idea if your situations are the same, but in my case the error message is completely spurious.
👍 1
Defect 574407 Urgency U5
s
@jkabot the fact that @NAmdConfig works only in top level modules is a showstopper for me. I just use relative paths, not @NAmdConfig and life is simpler.