ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

KeyError: "Jan 2020"

Hi Anyone here understand the Server error that says, KeyError: ‘Jan 2020’ everytime we open the Asset Module. See below screenshot of the error and version of the ERPNEXT.

ERPNext: v13.8.0 (HEAD)
Frappe Framework: v13.8.0 (HEAD)

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 68, in application
response = frappe.api.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/api.py”, line 55, in handle
return frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 31, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 67, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1172, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 609, in wrapper_fn
retval = fn(*args, **get_newargs(fn, kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/query_report.py”, line 234, in run
result = generate_report_result(report, filters, user, custom_columns)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/query_report.py”, line 78, in generate_report_result
res = report.execute_script_report(filters)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/report/report.py”, line 125, in execute_script_report
res = self.execute_module(filters)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/report/report.py”, line 142, in execute_module
return frappe.get_attr(method_name)(frappe._dict(filters))
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/assets/report/fixed_asset_register/fixed_asset_register.py”, line 14, in execute
chart = prepare_chart_data(data, filters) if filters.get(“group_by”) not in (“Asset Category”, “Location”) else {}
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/assets/report/fixed_asset_register/fixed_asset_register.py”, line 112, in prepare_chart_data
labels_values_map[belongs_to_month].asset_value += d.get(“asset_value”)
KeyError: ‘Jan 2020’

We are currently on the Frappe Cloud and they said that this error is an ERPNEXT error and not on the server.

Anyone here can explain what workarounds we can do?

Thank you.

1 Like