Anybody having weird issues with this new INFINITE...
# suitescript
m
Anybody having weird issues with this new INFINITE_LOOP_DETECTED error?
j
I just ran into this as well. I didn’t dive super deep but it looks like if you have a function that calls itself at least 50 times NetSuite considers that close enough to infinity that they get unhappy.
😅 1
message has been deleted
Where I’m running up against it there isn’t even a recursive function though so 🤷
n
you may want to run that in the debug mode and see how long is it executing.
j
Well the rabbit hole goes a bit deeper because when I run the script manually it works just fine. It only gives me the error when it runs on its schedule. (It’s a Scheduled Script)
d
How big is the "history" array?
j
I’m not sure. The screenshot is just me searching the N.js file for “infinite”. I can’t reproduce the issue in a context where I actually have an attached debugger.
d
Oh, my bad. I thought that was part of your code.
j
No worries. In my case it’s a mild inconvenience. Just trying to spread info to people where it’s a bigger problem. Maybe we can eventually get some understanding of what exactly it is NetSuite is detecting.
👍 1
n
Well would love to see some code that produces this. This is one of the rarest errors we encounter. I had this a while back and turns out there were too many operationsin a for loop and the loop was pretty long running.
Also, you may wanna raise acase to NS support.