Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
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. Register now
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}