I'm having an issue with a client script that I'm ...
# suitescript
d
I'm having an issue with a client script that I'm hoping someone here has had before and can help me with. I'm currently getting an error message in the console "Uncaught RangeError: Maximum call stack size exceeded". This has only started within the past 16 hours or so, but it's occurring in both a production and a sandbox account. I have noticed that the pageInit function is being called twice, however even after clearing out all of the functional code and leaving a blank implementation, I'm having the same issue. Any guidance would be greatly appreciated.
m
What does the stack trace look like? Could it be a different client script?
d
message has been deleted
b
looks like one of your fieldChanged entry points is recursive and calls itself
d
The script I'm working on is the only thing that's changed, and I did consider that, which is why I cleaned out the body of the pageInit function and left it empty, but the error is still occurring. I've just undeployed every script running against the record type, and it's still occurring. Any other ideas? I'm hoping I don't have to contact NS support...
I guess this is no longer a #C29HQS63G question 😂
b
annoying choice is to click one of the two links from the stack trace
and see what code is causing the issue
d
Thanks battk, I'll take a look
Ok, so it appears to be NetSuite code, which executes in response to a form field change, and conditionally makes a call to the recordManager:
It appears to be executing thousands of times against a hidden input field with id="nsbrowserenv"
b
pretty weird, it looks like nothing uses that, and its value is related to iframes
sadly you will probably need that support case