Email Error Table 'tabContact' doesn't exist


When i try to send a document attached as email , it gives the following traceback . My outgoing email account is configured correctly.

Traceback (innermost last):
  File "/home/akarsh/frappe-bench/apps/frappe/frappe/", line 67, in application
    response = frappe.handler.handle()
  File "/home/akarsh/frappe-bench/apps/frappe/frappe/", line 75, in handle
  File "/home/akarsh/frappe-bench/apps/frappe/frappe/", line 109, in execute_cmd
    ret =, **frappe.form_dict)
  File "/home/akarsh/frappe-bench/apps/frappe/frappe/", line 777, in call
    return fn(*args, **newargs)
  File "/home/akarsh/frappe-bench/apps/frappe/frappe/email/", line 36, in get_contact_list
    ,' OR '.join(cond)
  File "/home/akarsh/frappe-bench/apps/frappe/frappe/", line 146, in sql
  File "/home/akarsh/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/", line 205, in execute
    self.errorhandler(self, exc, value)
  File "/home/akarsh/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
 ProgrammingError: (1146, "Table 'ff641f808f.tabContact' doesn't exist")

Does this mean erpnext app needs to be installed ?


Yeah, seems like an issue. This must be cleanly separated maybe by hooks.

Any immediate solution possible ?

Will creation of the same table ( from erpnext )solve the problem ?

I think it still points to missing tabContact table . I haven’t installed erpnext as other apps don’t require it

It will not throw an exception

In the long run we want to move Contact to frappe

It throws exception in mine . I badly need the email attachment feature . Could you suggest any work around ?