AttributeError on loading every doc

I’m facing server erron onload of every doctypes
“AttributeError: module ‘’ has no attribute ‘get_automatic_email_link’”
any idea for resolving?

This was happened after the update!

1 Like

Also having the same issue… Below is the complete traceback

    Traceback (most recent call last):
  File "/opt/erpnext/frappe-bench/apps/frappe/frappe/", line 62, in application
    response = frappe.api.handle()
  File "/opt/erpnext/frappe-bench/apps/frappe/frappe/", line 56, in handle
    return frappe.handler.handle()
  File "/opt/erpnext/frappe-bench/apps/frappe/frappe/", line 22, in handle
    data = execute_cmd(cmd)
  File "/opt/erpnext/frappe-bench/apps/frappe/frappe/", line 50, in execute_cmd
    raise e
  File "/opt/erpnext/frappe-bench/apps/frappe/frappe/", line 47, in execute_cmd
    method = get_attr(cmd)
  File "/opt/erpnext/frappe-bench/apps/frappe/frappe/", line 205, in get_attr
    method = frappe.get_attr(cmd)
  File "/opt/erpnext/frappe-bench/apps/frappe/frappe/", line 1046, in get_attr
    return getattr(get_module(modulename), methodname)
AttributeError: module '' has no attribute 'get_automatic_email_link'

whats ur version?

Erpnext v12.7.1

Frappe v12.5.1

Started after update, I have tried all other bench commands including migrate, update —reset update patch etc, to no avail. What did you end up doing?

1 Like

Add this code:
def get_automatic_email_link():
return frappe.db.get_value(“Email Account”, {“enable_incoming”: 1, “enable_automatic_linking”: 1}, “email_id”)
at the end of “frappe/email/doctype/email_account/”

This commit remove the above code whithout changing the javascript code

1 Like

ERPNext: v12.11.1 (version-12)
Frappe Framework: v12.9.0 (version-12)

Getting same error, do we know if fix will be pushed to to 12.x ?