Balance Sheet Giving Error on Opening

Traceback (most recent call last):
  File "/home/aafpl/frappe-bench/apps/frappe/frappe/", line 55, in application
    response = frappe.handler.handle()
  File "/home/aafpl/frappe-bench/apps/frappe/frappe/", line 19, in handle
  File "/home/aafpl/frappe-bench/apps/frappe/frappe/", line 36, in execute_cmd
    ret =, **frappe.form_dict)
  File "/home/aafpl/frappe-bench/apps/frappe/frappe/", line 876, in call
    return fn(*args, **newargs)
  File "/home/aafpl/frappe-bench/apps/frappe/frappe/desk/", line 88, in run
    res = frappe.get_attr(method_name)(frappe._dict(filters))
  File "/home/aafpl/frappe-bench/apps/erpnext/erpnext/accounts/report/balance_sheet/", line 13, in execute
    asset = get_data(, "Asset", "Debit", period_list, only_current_fiscal_year=False)
  File "/home/aafpl/frappe-bench/apps/erpnext/erpnext/accounts/report/", line 109, in get_data
    calculate_values(accounts_by_name, gl_entries_by_account, period_list, accumulated_values)
  File "/home/aafpl/frappe-bench/apps/erpnext/erpnext/accounts/report/", line 127, in calculate_values
    d[period.key] = d.get(period.key, 0.0) + flt(entry.debit) - flt(
AttributeError: 'NoneType' object has no attribute 'get'
1 Like

+1 on this

Hi …

Please help on this.

Can’t replicate.

Seems like, somehow the nestedset model for the account tree has been broken. Try to execute rebuild_tree function from Console.

Hi please suggest how to do the same as the error is still continued.

Same error after V7 update, running on ubuntu 14.04

Hi ,

Please Help of this issue !!

Hi ,

Please update the issue !

@Ashish_Dhingra any update on this issue? Facing the same problem and raising an issue on Github for this.