David
03/17/2025, 2:47 PMCeligo AI
03/17/2025, 2:47 PMAI generated answer (using internal Slack threads):****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** The 'Unexpected Error' message you're encountering when trying to preview an advanced pdf/html template for sales orders could be due to a variety of reasons. Here are a few things you could check: 1. Special Characters: Ensure there are no special characters in the form that the PDF template is pulling from. Special characters can sometimes cause issues. 2. Code Errors: Even though you mentioned that there's no line specified for the error, it's worth double-checking the code for any potential issues. Look for any functions or methods that might be called on null or undefined values. For example, in one of the threads, a user was getting a 'Cannot call method "split" of null' error. This was due to a
split
method being called on something that didn't exist.
3. Template Changes: You mentioned that you made some changes to the PDF template and then reverted them. It's possible that the changes weren't completely reverted or that there's an issue with the versioning.
4. XML Definition: If you're working with XML definitions, ensure that they are correctly formatted and don't contain any errors. One of the threads mentioned an issue with an XML definition that was resolved by referring to the SuiteCloud Development Framework documentation.
Remember to thoroughly test your template with different transactions to ensure that the issue isn't specific to a certain type of transaction. If the issue persists, you might need to investigate further or consider recreating the template.Celigo AI
03/17/2025, 2:47 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.880884349
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.859528124
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.848659813
Celigo AI
03/17/2025, 2:47 PM