Closed sinhpn92 closed 1 year ago
I'm also getting this error.
Inside sales invoice creation, when trying to add an item, the error is:
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 1715, 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/search.py", line 47, in search_link
results = search_widget(
^^^^^^^^^^^^^^
File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/desk/search.py", line 95, in search_widget
return frappe.call(
^^^^^^^^^^^^
File "apps/frappe/frappe/__init__.py", line 1715, 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/__init__.py", line 2457, in wrapper
return fn(**kwargs)
^^^^^^^^^^^^
File "apps/erpnext/erpnext/controllers/queries.py", line 273, in item_query
return frappe.db.sql(
^^^^^^^^^^^^^^
File "apps/frappe/frappe/database/postgres/database.py", line 203, in sql
return super().sql(modify_query(query), modify_values(values), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/database/database.py", line 217, in sql
self._cursor.execute(query, values)
psycopg2.errors.SyntaxError: LIMIT #,# syntax is not supported
LINE 16: limit '0', '10'
^
HINT: Use separate LIMIT and OFFSET clauses.
v15.6.1
Docker
POST /api/method/frappe.desk.search.search_link
txt=""
doctype=Item
ignore_user_permissions=0
reference_doctype=Sales Invoice Item
query=erpnext.controllers.queries.item_query
filters={"is_sales_item":1,"customer":"<customer>","has_variants":0}
Information about bug
I have got the error when using PostgresDB.
The query is not support Postgres. Pls check the log.
Module
stock
Version
Frappe Version: 14.46.0 ERPNext Version: 14.36.0
Installation method
None
Relevant log output / Stack trace / Full Error Message.
Route
Traceback
Request Data
Response Data