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.
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}