Unknown column 'parenttype' in 'field list'


when i try to delete journal entry i got this error

App Versions

{
	"erpeaz": "0.0.1",
	"erpnext": "14.77.2",
	"frappe": "14.85.2",
	"frappe_whatsapp": "1.0.7",
	"hrms": "16.0.0-dev",
	"india_compliance": "14.26.3",
	"ksa_vat": "0.0.1",
	"posawesome": "6.3.0"
}

Route

Form/Journal Entry/W-JN-2024-2025-00011

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 97, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 48, 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 1619, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/desk/form/linked_with.py", line 43, in get_submitted_linked_docs
    visited_documents = tree.get_all_children()
  File "apps/frappe/frappe/desk/form/linked_with.py", line 84, in get_all_children
    child_docs = self.get_next_level_children(parent_dt, parent_docs)
  File "apps/frappe/frappe/desk/form/linked_with.py", line 111, in get_next_level_children
    get_referencing_documents(
  File "apps/frappe/frappe/desk/form/linked_with.py", line 345, in get_referencing_documents
    res = frappe.get_all(from_table, filters=filters, fields=["name", "parenttype", "parent"], order_by=None)
  File "apps/frappe/frappe/__init__.py", line 1938, in get_all
    return get_list(doctype, *args, **kwargs)
  File "apps/frappe/frappe/__init__.py", line 1910, in get_list
    return frappe.model.db_query.DatabaseQuery(doctype).execute(*args, **kwargs)
  File "apps/frappe/frappe/model/db_query.py", line 190, in execute
    result = self.build_and_run()
  File "apps/frappe/frappe/model/db_query.py", line 231, in build_and_run
    return frappe.db.sql(
  File "apps/frappe/frappe/database/database.py", line 244, in sql
    self._cursor.execute(query, values)
  File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 153, in execute
    result = self._query(query)
  File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 322, in _query
    conn.query(q)
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 563, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 825, in _read_query_result
    result.read()
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 1199, in read
    first_packet = self.connection._read_packet()
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 775, in _read_packet
    packet.raise_for_error()
  File "env/lib/python3.10/site-packages/pymysql/protocol.py", line 219, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "env/lib/python3.10/site-packages/pymysql/err.py", line 150, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.OperationalError: (1054, "Unknown column 'parenttype' in 'field list'")

Request Data

{
	"type": "POST",
	"args": {
		"doctype": "Journal Entry",
		"name": "W-JN-2024-2025-00011"
	},
	"freeze": true,
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.desk.form.linked_with.get_submitted_linked_docs"
}

Response Data

{
	"exception": "pymysql.err.OperationalError: (1054, \"Unknown column 'parenttype' in 'field list'\")"
}

Hi,

Did this error appear the first time a journal entry deletion was attempted or have journal entries been deleted without errors in the past?

Are the apps known to be compatible at their current versions?

Does migrating the site complete without errors?

deletion was previously attempted but were no issues.dont know about the version compatible .yes migration have issues

What is the hosting environment?

If changes or customization were made, or apps installed, since the last time a journal entry was deleted successfully, perhaps rolling the changes back will help.

Journal Entry doctype is not a child doctype and I don’t believe it has any children so the error message is (to me) confusing

This post may be relevant: ERPNext and Frappe HR compatible versions? - #2 by NCP