Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v12 Print Format Builder - IndexError: list index out of range #18999

idolaru opened this issue Sep 11, 2019 · 1 comment


Copy link

commented Sep 11, 2019

When trying to edit and save the print format of the event doctype - error received is:

IndexError: list index out of range


This comment has been minimized.

Copy link

commented Sep 11, 2019

Traceback from frappe.log

Form Dict: {
 "cmd": "frappe.client.set_value",
 "doctype": "Print Format",
 "fieldname": "format_data",
 "name": "Booking confirmation",
 "value": "[{\"fieldname\":\"print_heading_template\",\"fieldtype\":\"Custom HTML\",\"options\":\"<div class=\\\"print-heading\\\">\\t\\t\\t\\t<h2>Bo$
Request Error
Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 60, in application
    response = frappe.api.handle()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 55, in handle
    return frappe.handler.handle()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 21, in handle
    data = execute_cmd(cmd)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 56, in execute_cmd
    return, **frappe.form_dict)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 1036, in call
    return fn(*args, **newargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 122, in set_value
    child = doc.getone({"doctype": doctype, "name": name})
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/", line 130, in getone
    return self.get(key, filters=filters, limit=1)[0]
IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.