Resolve Error: “The template cannot be printed due to the following errors: Error on line XXX, column YYY in template. Detail… Please contact your administrator.” When Printing Transactions

Scenario:

Even if there’s no any HTML or FreeMarker syntax error within the template, this error message appears when a transaction or record is printed using Advanced PDF/HTML Templates

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. 

Solution:

  1. Navigate to Home > Set Preferences 
  2. Click Appearance 
  3. Entry Forms:
    • Enable Rich Text Editing: Remove Checkmark
  4. Click Save
  5. Navigate to Transactions > Sales > Enter Sales Orders > List
  6. Affected transaction: Click Edit
  7. Rich Text field: Delete all HTML tags
  8. Click Save

Leave a comment

Your email address will not be published. Required fields are marked *