I am getting an error in relation to the function ...
# general
i
I am getting an error in relation to the function renderAsString. The error is the typical {“type”“error.SuiteScriptError”,“name”“UNEXPECTED_ERROR”,“message”:“An unexpected SuiteScript error has occurred”…, so it’s not very helpful to understand why that function is not working. I have the same code in two different environments, and in the second one it works without problems. Any ideas?
b
share the code
p
are both environments absolutely identical? The best way to decode is disable all lines of code and enable the code lines one by one and test. If you are familiar with firebug its also a handy way to test too depending on the type of script you are running.
i
Thanks for your interest! This is now solved. A colleague had modified the html file we were passing to the render, and we were getting the error from there. NetSuite error was not very detailed, indeed!!