Getting error during execution
ajiragroup opened this issue · 1 comments
ajiragroup commented
This error appears when I try to save a form in another doctype.
App Versions
{
"crm": "2.0.0-dev",
"erpnext": "15.20.6",
"frappe": "15.23.0",
"frappe_whatsapp": "0.0.2",
"insights": "1.1.3",
"wiki": "2.0.0"
}
Route
Form/Design/new-design-ejcbheawrt
Traceback
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 110, in application
response = frappe.api.handle(request)
File "apps/frappe/frappe/api/__init__.py", line 49, in handle
data = endpoint(**arguments)
File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 49, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1718, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
return func(*args, **kwargs)
File "apps/frappe/frappe/desk/form/save.py", line 39, in savedocs
doc.save()
File "apps/frappe/frappe/model/document.py", line 337, in save
return self._save(*args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 359, in _save
return self.insert()
File "apps/frappe/frappe/model/document.py", line 285, in insert
self.run_method("before_insert")
File "apps/frappe/frappe/model/document.py", line 962, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1322, in composer
return composed(self, method, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1306, in runner
add_to_return_value(self, f(self, method, *args, **kwargs))
File "apps/frappe_whatsapp/frappe_whatsapp/utils/__init__.py", line 17, in run_server_script_for_doc_event
notification = get_notifications_map().get(
File "apps/frappe_whatsapp/frappe_whatsapp/utils/__init__.py", line 36, in get_notifications_map
enabled_whatsapp_notifications = frappe.get_all(
File "apps/frappe/frappe/__init__.py", line 2007, in get_all
return get_list(doctype, *args, **kwargs)
File "apps/frappe/frappe/__init__.py", line 1982, in get_list
return frappe.model.db_query.DatabaseQuery(doctype).execute(*args, **kwargs)
File "apps/frappe/frappe/model/db_query.py", line 185, in execute
self.columns = self.get_table_columns()
File "apps/frappe/frappe/model/db_query.py", line 546, in get_table_columns
return get_table_columns(self.doctype)
File "apps/frappe/frappe/model/meta.py", line 73, in get_table_columns
return frappe.db.get_table_columns(doctype)
File "apps/frappe/frappe/database/database.py", line 1197, in get_table_columns
raise self.TableMissingError("DocType", doctype)
pymysql.err.ProgrammingError: ('DocType', 'WhatsApp Notification')
Request Data
{
"type": "POST",
"args": {
"doc": "{\"docstatus\":0,\"doctype\":\"Design\",\"name\":\"new-design-ejcbheawrt\",\"__islocal\":1,\"__unsaved\":1,\"owner\":\"Administrator\",\"naming_series\":\"DE-.YY.###\",\"design_for\":\"Customer\",\"title\":\"safasfsadsad\"}",
"action": "Save"
},
"btn": {
"jQuery37006038109508222111": {
"events": {
"click": [
{
"type": "click",
"origType": "click",
"guid": 652,
"namespace": ""
}
]
}
}
},
"freeze": true,
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.desk.form.save.savedocs",
"request_id": null
}
Response Data
{
"exception": "pymysql.err.ProgrammingError: ('DocType', 'WhatsApp Notification')",
"exc_type": "ProgrammingError",
"_exc_source": "frappe_whatsapp (app)"
}
github-actions commented
Stale issue message