Closed balamurugan8848 closed 1 week ago
When we click the Recruitment Workspace from the sidebar under HR Module a Server Error Pops up saying "Possible source of error: transportation (app)"
HR
Frappe HR: v15.36.1 (pre-prod) ERPNext: v15.50.0 (pre-prod) Frappe Framework: v15.52.0 (pre-prod)
None
### App Versions { "assets": "0.0.1", "crm": "0.0.1", "erpnext": "15.50.0", "erpnext_india": "0.0.1", "exotel_integration": "0.0.1", "frappe": "15.52.0", "helpdesk": "1.4.0", "hr_addon": "0.0.1", "hrms": "15.36.1", "india_compliance": "15.15.0", "insights": "3.0.0", "payments": "0.0.1", "print_designer": "1.4.3", "projects": "0.0.1", "sales_commission": "0.0.1", "transportation": "0.0.1" } ### Route Workspaces/Recruitment ### Traceback Traceback (most recent call last): File "apps/frappe/frappe/app.py", line 114, 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 50, in handle data = execute_cmd(cmd) File "apps/frappe/frappe/handler.py", line 86, in execute_cmd return frappe.call(method, **frappe.form_dict) File "apps/frappe/frappe/__init__.py", line 1758, 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 909, in wrapper_fn retval = fn(*args, **get_newargs(fn, kwargs)) File "apps/frappe/frappe/desk/reportview.py", line 32, in get data = compress(execute(**args), args=args) File "apps/frappe/frappe/desk/reportview.py", line 80, in execute return DatabaseQuery(doctype).execute(*args, **kwargs) File "apps/transportation/transportation/transportation/customization/role_permission/child_permission.py", line 117, in execute result = self.build_and_run() File "apps/frappe/frappe/model/db_query.py", line 251, in build_and_run return frappe.db.sql( File "apps/frappe/frappe/database/postgres/database.py", line 326, in sql return super().sql(modify_query(query), modify_values(values), *args, **kwargs) File "apps/frappe/frappe/database/database.py", line 236, in sql self._cursor.execute(query, values) psycopg2.errors.InvalidTextRepresentation: invalid input syntax for type smallint: "" LINE 3: ...5-03-01' and coalesce("tabInterview"."docstatus", '') != '2' ^ ### Request Data { "type": "POST", "args": { "doctype": "Interview", "fields": "[\"name\",\"job_applicant\",\"status\",\"docstatus\",\"modified\"]", "filters": "{\"scheduled_on\":[\"Timespan\",\"this week\"],\"docstatus\":[\"!=\",\"2\"]}", "order_by": "modified desc", "start": 0, "page_length": 4 }, "headers": {}, "error_handlers": {}, "url": "/api/method/frappe.desk.reportview.get", "request_id": null } ### Response Data { "exception": "", "exc_type": "InvalidTextRepresentation", "_exc_source": "transportation (app)", "_debug_messages": "[\"Error in query:\\ninvalid input syntax for type smallint: \\\"\\\"\\nLINE 3: ...5-03-01' and coalesce(\\\"tabInterview\\\".\\\"docstatus\\\", '') != '2'\\n ^\\n\"]" }
@hrishikesh8848 @Satya8848
@balamurugan8848 this issue is also fixed
@hrishikesh8848 confirmed. Closing this issue.
Information about bug
When we click the Recruitment Workspace from the sidebar under HR Module a Server Error Pops up saying "Possible source of error: transportation (app)"
Module
HR
Version
Frappe HR: v15.36.1 (pre-prod) ERPNext: v15.50.0 (pre-prod) Frappe Framework: v15.52.0 (pre-prod)
Installation method
None
Relevant log output / Stack trace / Full Error Message.