Print error after update using template builder


I just update ERPNext to v6 and now I can’t print anymore my invoices. Here is the error I got

Traceback (innermost last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 25, in render
    data = render_page(path)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 137, in render_page
    return build(path)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 146, in build
    return build_method(path)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 162, in build_page
    context = get_context(path)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 29, in get_context
    context = build_context(context)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 75, in build_context
    ret = module.get_context(context)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/templates/pages/", line 36, in get_context
  File "/home/frappe/frappe-bench/apps/frappe/frappe/templates/pages/", line 90, in get_html
  File "/home/frappe/frappe-bench/apps/frappe/frappe/templates/pages/", line 184, in get_print_format
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 257, in throw
    msgprint(msg, raise_exception=exc)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 250, in msgprint
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 235, in _raise_exception
    raise raise_exception, encode(msg)
 TemplateNotFoundError: No template found at path: /home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/print_format/facture/facture.html

It’s a template based on standard template using the template builder.

Any idea ?


Is facture/facture.html at the location indicated in the last line as the error indicates that it doesn’t think it exists.

@jbpin Did you create templates in your erpnext folder?

That’s the issue. I had to remove print_format.standard=="Yes" and it’s working fine like before.