Cannot Generate Cash Flow

@anand @nabinhait I upgraded erpnext today and check cash flow but there is an error

raceback (innermost last):
  File "/home/deploy/frappe-bench/apps/frappe/frappe/", line 69, in application
    response = frappe.handler.handle()
  File "/home/deploy/frappe-bench/apps/frappe/frappe/", line 77, in handle
  File "/home/deploy/frappe-bench/apps/frappe/frappe/", line 94, in execute_cmd
    ret =, **frappe.form_dict)
  File "/home/deploy/frappe-bench/apps/frappe/frappe/", line 788, in call
    return fn(*args, **newargs)
  File "/home/deploy/frappe-bench/apps/frappe/frappe/desk/", line 91, in run
    result = get_filtered_data(report.ref_doctype, columns, result)
  File "/home/deploy/frappe-bench/apps/frappe/frappe/desk/", line 146, in get_filtered_data
    match_filters_per_doctype = get_user_match_filters(linked_doctypes, ref_doctype)
  File "/home/deploy/frappe-bench/apps/frappe/frappe/desk/", line 291, in get_user_match_filters
    filter_list = frappe.desk.reportview.build_match_conditions(dt, False)
  File "/home/deploy/frappe-bench/apps/frappe/frappe/desk/", line 183, in build_match_conditions
    return (DatabaseQuery(doctype).build_match_conditions(as_condition=as_condition)).replace("%", "%%")
 AttributeError: 'list' object has no attribute 'replace'
 Report this issue

Any idea what causing this?

Fixing it.

Anand Doshi


@ccfiel Fixed! Thanks a lot for reporting this. Just update again and it should start working.

1 Like

@anand wow! that was fast. Thanks!