Session Start Failed - Notification Settings

Hi all,

We recently upgraded ErpNext from v12 to the latest v13

We are however experiencing an issue with some users being unable to access the Desk.
Below is an error we are getting.

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/www/", line 23, in get_context
    boot = frappe.sessions.get()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 132, in get
    bootinfo = get_bootinfo()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 65, in get_bootinfo
    bootinfo.notification_settings = get_notification_settings()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 331, in get_notification_settings
    return frappe.get_cached_doc('Notification Settings', frappe.session.user)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 834, in get_cached_doc
    doc = get_doc(*args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 877, in get_doc
    doc = frappe.model.document.get_doc(*args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/", line 75, in get_doc
    return controller(*args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/", line 113, in __init__
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/", line 156, in load_from_db
    frappe.throw(_("{0} {1} not found").format(_(self.doctype),, frappe.DoesNotExistError)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 438, in throw
    msgprint(msg, raise_exception=exc, title=title, indicator='red', is_minimizable=is_minimizable, wide=wide, as_list=as_list)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 417, in msgprint
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 371, in _raise_exception
    raise raise_exception(msg)
frappe.exceptions.DoesNotExistError: Notification Settings <email> not found

I’ve tried doing a bench upgrade --reset and still nothing.

Please assist

@manuthu Did you manage to solve this issue? I am also facing the same

@manuthu did you find any solution to this?
because I also upgraded the ERP version from 12 to 13 facing the same issue for some users

@rmehta is this bug? or need to update any user permission here?

thanks in advance