KeyError: u'against_account' on Bank Reconciliation Statement Report

Getting This Error When

  1. Create Journal Entry using 2 bank accounts where posting date = 03/21/2016
  2. Open Bank Reconciliation Statement using “03/21/2016” or above as date, works.

3, But When using “03/20/2016” or below as date, produces this error Message .

Traceback (innermost last):
File “/home/erpextend/frappe-bench/apps/frappe/frappe/”, line 67, in application
response = frappe.handler.handle()
File “/home/erpextend/frappe-bench/apps/frappe/frappe/”, line 77, in handle
File “/home/erpextend/frappe-bench/apps/frappe/frappe/”, line 94, in execute_cmd
ret =, **frappe.form_dict)
File “/home/erpextend/frappe-bench/apps/frappe/frappe/”, line 788, in call
return fn(*args, **newargs)
File “/home/erpextend/frappe-bench/apps/frappe/frappe/desk/”, line 91, in run
result = get_filtered_data(report.ref_doctype, columns, result)
File “/home/erpextend/frappe-bench/apps/frappe/frappe/desk/”, line 145, in get_filtered_data
linked_doctypes = get_linked_doctypes(columns, data)
File “/home/erpextend/frappe-bench/apps/frappe/frappe/desk/”, line 238, in get_linked_doctypes
if not any(d[key] for d in data if d):
File “/home/erpextend/frappe-bench/apps/frappe/frappe/desk/”, line 238, in
if not any(d[key] for d in data if d):
KeyError: u’against_account’

Doing a Bench Update Fixed the Problem

But i still want to know the cause of the error

Mostly its due to wrong field-name in query report.