Thanks I just get this error if you will
App Versions
{
"egide_power_modification": "0.0.5",
"erpnext": "14.17.0",
"frappe": "14.26.0",
"hrms": "14.0.3",
"insights": "0.3.0",
"payments": "0.0.1"
}
Route
List/Lead/List
Trackeback
Syntax error in query:
select `tabLead`.`name`, `tabLead`.`owner`, `tabLead`.`creation`, `tabLead`.`modified`, `tabLead`.`modified_by`, `tabLead`.`_user_tags`, `tabLead`.`_comments`, `tabLead`.`_assign`, `tabLead`.`_liked_by`, `tabLead`.`docstatus`, `tabLead`.`idx`, `tabLead`.`job_title`, `tabLead`.`status`, `tabLead`.`company_name`, `tabLead`.`territory`, `tabLead`.`title`, `tabLead`.`image`, `tabLead`.`disabled`
from `tabLead`
where (`tabLead`.owner = ''Administrator'' or `tabLead`.lead_owner = ''Administrator'')
group by `tabLead`.`name`
order by `tabLead`.`modified` desc
limit 20 offset 0 None
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 66, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 54, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 45, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 83, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1607, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/__init__.py", line 789, in wrapper_fn
retval = fn(*args, **get_newargs(fn, kwargs))
File "apps/frappe/frappe/desk/reportview.py", line 29, in get
data = compress(execute(**args), args=args)
File "apps/frappe/frappe/desk/reportview.py", line 65, in execute
return DatabaseQuery(doctype).execute(*args, **kwargs)
File "apps/frappe/frappe/model/db_query.py", line 188, in execute
result = self.build_and_run()
File "apps/frappe/frappe/model/db_query.py", line 228, in build_and_run
return frappe.db.sql(
File "apps/frappe/frappe/database/database.py", line 219, in sql
self._cursor.execute(query, values)
File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 148, in execute
result = self._query(query)
File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 310, in _query
conn.query(q)
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 548, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 775, in _read_query_result
result.read()
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 1156, in read
first_packet = self.connection._read_packet()
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 725, in _read_packet
packet.raise_for_error()
File "env/lib/python3.10/site-packages/pymysql/protocol.py", line 221, in raise_for_error
err.raise_mysql_exception(self._data)
File "env/lib/python3.10/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.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 'Administrator'' or `tabLead`.lead_owner = ''Administrator'')\n\t\t\t group by `ta...' at line 3")
Request Data
{
"type": "POST",
"args": {
"doctype": "Lead",
"fields": "[\"`tabLead`.`name`\",\"`tabLead`.`owner`\",\"`tabLead`.`creation`\",\"`tabLead`.`modified`\",\"`tabLead`.`modified_by`\",\"`tabLead`.`_user_tags`\",\"`tabLead`.`_comments`\",\"`tabLead`.`_assign`\",\"`tabLead`.`_liked_by`\",\"`tabLead`.`docstatus`\",\"`tabLead`.`idx`\",\"`tabLead`.`job_title`\",\"`tabLead`.`status`\",\"`tabLead`.`company_name`\",\"`tabLead`.`territory`\",\"`tabLead`.`title`\",\"`tabLead`.`image`\",\"`tabLead`.`disabled`\"]",
"filters": "[]",
"order_by": "`tabLead`.`modified` desc",
"start": 0,
"page_length": 20,
"view": "List",
"group_by": "`tabLead`.`name`",
"with_comment_count": true
},
"freeze": false,
"freeze_message": "Loading...",
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.desk.reportview.get"
}
Response Data
{
"exception": "pymysql.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 'Administrator'' or `tabLead`.lead_owner = ''Administrator'')\\n\\t\\t\\t group by `ta...' at line 3\")"
}