Nour
12/16/2025, 7:58 AMCeligo AI
12/16/2025, 7:58 AMAI generated answer (using internal Slack threads):The error message indicates an "UNEXPECTED_ERROR" during the execution of the
renderXmlToPdf function in the SuiteScript. This error is usually thrown when there is an issue with the XML structure or content that is being passed to the function.
Looking at the XML content, there are a few potential issues that could be causing this error:
1. The XML declaration specifies the encoding as "ISO-8859-6", which is for Arabic characters. If the XML content includes non-Arabic characters that are not compatible with this encoding, it could cause an error.
2. The src attribute of the link elements for the fonts includes URLs. If these URLs are not accessible or do not return a valid font file, it could cause an error.
3. The barcode element includes a value attribute with Arabic characters. If these characters are not properly encoded or are not compatible with the specified "code128" codetype, it could cause an error.
4. The body element includes several attributes (like font-family, font-size, color, padding, etc.) that are not standard XML or HTML attributes. If the renderXmlToPdf function does not recognize these attributes, it could cause an error.
To resolve this issue, you should validate the XML content and ensure that it conforms to the expected structure and content for the renderXmlToPdf function. You may also need to check the accessibility and validity of the font files, and the compatibility of the Arabic characters with the specified encoding and barcode type.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
12/16/2025, 7:59 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.868225098
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.863891661
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.863708496
Celigo AI
12/16/2025, 7:59 AM