The error message appears when a transaction or record is printed using Advanced PDF/HTML Templates. However, there is no HTML or FreeMarker syntax error within the template itself.
This may be caused by any Rich Text field which is used within the Advanced PDF/HTML Template. Rich Text formatting applied to such custom field is invisible for users but is recognized by the system.
To resolve, the transaction or record shall be in Edit mode. By clicking the first button Formatted Edit Mode, the HTML code with the applied formatting for the field is displayed. Once the HTML tags are removed, the printout is generated correctly. The solution uses Sales Order as a sample transaction.
Solution
- Navigate to Home > Set Preferences
- Click Appearance
- Entry Forms:
- Enable Rich Text Editing: Remove Checkmark
- Click Save
- Navigate to Transactions > Sales > Enter Sales Orders > List
- Affected transaction: Click Edit
- Rich Text field: Delete all HTML tags
- Click Save