AttributeError : __print_format

I am receiving this error since 2 days, the print formats are correct and was correctly. Now if I disable my custom print formats, that I created for quotation doctype, are disabled there are no errors. When I enable print formats, it works properly for a short period and then the error pops-up again.

Any help will be highly appreciated.TIA

App Versions

	"a3_solar_provide_software": "0.0.1",
	"erpnext": "14.0.0-dev",
	"frappe": "14.0.0-dev"


Form/Print Format/Soura Quotation


Traceback (most recent call last):
  File "apps/frappe/frappe/", line 66, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/", line 54, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/", line 31, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/", line 68, in execute_cmd
    return, **frappe.form_dict)
  File "apps/frappe/frappe/", line 1233, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/desk/form/", line 70, in getdoctype
    docs = get_meta_bundle(doctype)
  File "apps/frappe/frappe/desk/form/", line 80, in get_meta_bundle
    bundle = [frappe.desk.form.meta.get_meta(doctype)]
  File "apps/frappe/frappe/desk/form/", line 20, in get_meta
    meta = FormMeta(meta)
  File "apps/frappe/frappe/desk/form/", line 34, in __init__
    super(FormMeta, self).__init__(doctype)
  File "apps/frappe/frappe/model/", line 90, in __init__
    super(Meta, self).__init__(doctype)
  File "apps/frappe/frappe/model/", line 123, in __init__
    super(Document, self).__init__(kwargs)
  File "apps/frappe/frappe/model/", line 81, in __init__
  File "apps/frappe/frappe/model/", line 113, in update
    self.set(key, value)
  File "apps/frappe/frappe/model/", line 167, in set
    self.extend(key, value)
  File "apps/frappe/frappe/model/", line 214, in extend
    self.append(key, v)
  File "apps/frappe/frappe/model/", line 191, in append
    value = self._init_child(value, key)
  File "apps/frappe/frappe/model/", line 231, in _init_child
    raise AttributeError(key)
AttributeError: __print_formats

Request Data

	"type": "GET",
	"args": {
		"doctype": "Quotation",
		"with_parent": 1,
		"cached_timestamp": null
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.desk.form.load.getdoctype"

Response Data

	"exception": "AttributeError: __print_formats"

Have you found a solution to this problem?


The custom print format name is in English?


I hope you found a solution to your problem. I have been having issues with this type of error every time I create a new form. The problem is that I cannot even go back to the form to fix it. This message keeps popping up and I get a white screen.

Yes it is

I have not found a solution. When I disable the custom print formats, there is no error. So I temporarily disable them to work on forms.

Not yet

Could you post the print format code here ?

A fix by Sagar has been merged, please pull frappe and try again.

1 Like

How do you disable the custom print format?

You have a “Disabled” checkbox in Print Format which should do it