Getting POS Print Error

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 19, in handle
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 36, in execute_cmd
ret =, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 879, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/www/”, line 171, in get_html_and_style
no_letterhead=no_letterhead, trigger_print=trigger_print),
File “/home/frappe/frappe-bench/apps/frappe/frappe/www/”, line 142, in get_html
html = template.render(args, filters={“len”: len})
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/jinja2/”, line 989, in render
return self.environment.handle_exception(exc_info, True)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/jinja2/”, line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File "


I tried replicating this issue by creating POS Invoice and printing it. It worked fine for me. Can you please provide steps and screenshot to elaborate your query?

Hi @umair

Thanks for your reply.

First I customized the print format for POS Invoice.
Creating and printing the POS is working properly.
When we go for print from the sale invoice it getting the error.

@rohit_w can you please help?

Hi @nagarajan,

Can you share your code


Hi @rohit_w

Sorry just now I deleted the whole and rebuilding a new one.

Hi @nagarajan,

OK, You can refer existing print format POS Invoice for form view of sales invoice and Point of Sale for offline point of sale


1 Like

@rohit_w Same error occurs for me


Can you please share some more information about an error, which type(JS/Server) of print format are you using? Are you using offline POS?