Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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.