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.
Suitescript render pdf error with renderer.renderAsPdf()
Hi there,
We have a script will run to generate a PDF file when an Item Fulfilment update. The script has no problem for few years until today one user input an "&" character in a custom transaction body field.
I like to know is it's the limitation of renderer.renderAsPdf() function?
===============
Error capture below:
{"type":"error.SuiteScriptError","name":"USER_ERROR","message":"Error Parsing XML: The reference to entity \"B\" must end with the ';' delimiter.","id":"","stack":["createError(N/error)","beforeSubmit(/SuiteBundles/Bundle 338648/UserEvents/srs_if_packing_invoice_ue.js:1160)"],"cause":{"type":"internal error","code":"USER_ERROR","details":"Error Parsing XML: The reference to entity \"B\" must end with the ';' delimiter.","userEvent":"beforesubmit","stackTrace":["createError(N/error)","beforeSubmit(/SuiteBundles/Bundle 338648/UserEvents/srs_if_packing_invoice_ue.js:1160)"],"notifyOff":false},"notifyOff":false,"userFacing":false}