Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Have questions or experiences to share? Post your Release 2026.1 questions and join discussions in the Release 2026.1 category.
render.xmlToPdf stopped working?
So, today ... an automation I built just stopped working. More accurately, the render.xmlToPdf function throws a classic unexpected error. (Line 221 is the render.xmlToPdf call)
{"type":"error.SuiteScriptError","name":"UNEXPE CTE D_ERROR","message":null,"stack":["renderXmlToPdf(N/render)","<anonymous>(/SuiteScripts/DH/DH_GeneratePDF.js:211)"],"cause":{"type":"internal error","code":"UNEXPECTED_ERROR","details":null,"u serEvent":null,"stackTrace":["renderXmlToPdf(N/render)","<anonymous>(/SuiteScripts/DH/DH_GeneratePDF.js:211)"],"notifyOff":false},"id":"","notifyOff":false}
This has been working for more than a quarter, so why fail now?
Here's the xmlString I'm passing into the function. The xml itself passes all validations and has no bad characters. And 3 image references resolve fine.