Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
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.