Print Format Error - DocType None not found

we have an Erpnext hosted on the frappecloud and if I want to edit some print format then I get the blank page like this:

If I try create a new one then:


These versions of apps:


Can somebody help me, please?

Thank you.

Jiri Sir

I have tried insert new “Printer Format” doc from System Console for get more error details:

doc = {'name': 'Dunning Letter Bee',  'doctype': 'Print Format','docstatus': 0, ...
dn = frappe.get_doc(doc)

And the result:

Traceback (most recent call last):
  File "apps/frappe/frappe/desk/doctype/system_console/", line 32, in run
    safe_exec(self.console, script_filename="System Console")
  File "apps/frappe/frappe/utils/", line 100, in safe_exec
  File "<serverscript>: system_console", line 4, in <module>
  File "apps/frappe/frappe/model/", line 288, in insert
  File "apps/frappe/frappe/model/", line 736, in validate_higher_perm_levels
    has_access_to = self.get_permlevel_access()
  File "apps/frappe/frappe/model/", line 757, in get_permlevel_access
    for perm in self.get_permissions():
  File "apps/frappe/frappe/model/", line 772, in get_permissions
    permissions = frappe.get_meta(self.parenttype).permissions
  File "apps/frappe/frappe/", line 1313, in get_meta
    return frappe.model.meta.get_meta(doctype, cached=cached)
  File "apps/frappe/frappe/model/", line 63, in get_meta
    meta = Meta(doctype)
  File "apps/frappe/frappe/model/", line 117, in __init__
    super().__init__("DocType", doctype)
  File "apps/frappe/frappe/model/", line 126, in __init__
  File "apps/frappe/frappe/model/", line 123, in load_from_db
  File "apps/frappe/frappe/model/", line 172, in load_from_db
  File "apps/frappe/frappe/", line 602, in throw
  File "apps/frappe/frappe/", line 567, in msgprint
  File "apps/frappe/frappe/", line 518, in _raise_exception
    raise exc
frappe.exceptions.DoesNotExistError: DocType None not found

Finally, I have found the issue.
System let me somehow customize “Print Format” Form. I remember I wanted allow “Allow Import”. I check the checkbox and press “Save”.
It is weird but it was visible and in function, because it generated these property setters:

that screw up the form view.