Dear all,
we are facing errors after updating our ERPnext installation from 13.19 to 13.20:
Traceback (most recent call last):
File "apps/frappe/frappe/utils/background_jobs.py", line 110, in execute_job
method(**kwargs)
File "apps/frappe/frappe/email/doctype/email_account/email_account.py", line 840, in pull_from_email_account
email_account.receive()
File "apps/frappe/frappe/email/doctype/email_account/email_account.py", line 365, in receive
raise Exception(frappe.as_json(exceptions))
Exception: [
"Traceback (most recent call last):\n File \"apps/frappe/frappe/email/doctype/email_account/email_account.py\", line 334, in receive\n communication = self.insert_communication(msg, args=args)\n File \"apps/frappe/frappe/email/doctype/email_account/email_account.py\", line 420, in insert_communication\n frappe.db.set_value(\"Communication\", name, \"uid\", uid, update_modified=False)\n File \"apps/frappe/frappe/database/database.py\", line 703, in set_value\n query.run(debug=debug)\n File \"apps/frappe/frappe/query_builder/utils.py\", line 59, in execute_query\n return frappe.db.sql(query, params, *args, **kwargs) # nosemgrep\n File \"apps/frappe/frappe/database/database.py\", line 146, in sql\n self._cursor.execute(query, values)\n File \"env/lib/python3.6/site-packages/pymysql/cursors.py\", line 148, in execute\n result = self._query(query)\n File \"env/lib/python3.6/site-packages/pymysql/cursors.py\", line 310, in _query\n conn.query(q)\n File \"env/lib/python3.6/site-packages/pymysql/connections.py\", line 548, in query\n self._affected_rows = self._read_query_result(unbuffered=unbuffered)\n File \"env/lib/python3.6/site-packages/pymysql/connections.py\", line 775, in _read_query_result\n result.read()\n File \"env/lib/python3.6/site-packages/pymysql/connections.py\", line 1156, in read\n first_packet = self.connection._read_packet()\n File \"env/lib/python3.6/site-packages/pymysql/connections.py\", line 725, in _read_packet\n packet.raise_for_error()\n File \"env/lib/python3.6/site-packages/pymysql/protocol.py\", line 221, in raise_for_error\n err.raise_mysql_exception(self._data)\n File \"env/lib/python3.6/site-packages/pymysql/err.py\", line 143, in raise_mysql_exception\n raise errorclass(errno, errval)\npymysql.err.ProgrammingError: (1064, \"You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'b'2' WHERE `name` IN ('de5a39668d')' at line 1\")\n"
The error repeats every few minutes. Anything we can do to fix the issue?