Not able to cancel or delete Interview Feedback


I am not able to delete Interview Feedback for a user, (it is not linked with anything else)

App Versions

	"erpnext": "14.63.3",
	"frappe": "14.66.2",
	"hrms": "14.22.0"


Form/Interview Feedback/HR-INT-FEED-0001


Traceback (most recent call last):
  File "apps/frappe/frappe/", line 95, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/", line 55, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/", line 47, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/", line 85, in execute_cmd
    return, **frappe.form_dict)
  File "apps/frappe/frappe/", line 1603, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/desk/form/", line 50, in cancel
  File "apps/frappe/frappe/model/", line 1007, in cancel
    return self._cancel()
  File "apps/frappe/frappe/model/", line 989, in _cancel
  File "apps/frappe/frappe/model/", line 305, in save
    return self._save(*args, **kwargs)
  File "apps/frappe/frappe/model/", line 357, in _save
  File "apps/frappe/frappe/model/", line 1087, in run_post_save_methods
  File "apps/frappe/frappe/model/", line 915, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "apps/frappe/frappe/model/", line 1267, in composer
    return composed(self, method, *args, **kwargs)
  File "apps/frappe/frappe/model/", line 1249, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "apps/frappe/frappe/model/", line 912, in fn
    return method_object(*args, **kwargs)
  File "apps/hrms/hrms/hr/doctype/interview_feedback/", line 22, in on_cancel
  File "apps/hrms/hrms/hr/doctype/interview_feedback/", line 73, in update_interview_details
    if entry.interview_feedback ==
AttributeError: 'InterviewDetail' object has no attribute 'interview_feedback'

Request Data

	"type": "POST",
	"args": {
		"doctype": "Interview Feedback",
		"name": "HR-INT-FEED-0001"
	"btn": {
		"jQuery360045677641190116861": {
			"events": {
				"click": [
						"type": "click",
						"origType": "click",
						"guid": 2524,
						"namespace": ""
	"freeze": true,
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/"

Response Data

	"exception": "AttributeError: 'InterviewDetail' object has no attribute 'interview_feedback'"

Hi @harshvadhiya,

It’s worked properly. Please check it.

Thank You!


Thank you for the reply…
but i’m still getting the error

have a look at this video

video is too short and can’t be understood.

Hi @NCP ,

Please see the below video for better understandings.

Please verify if the “Average Rating” field exists in the Feedback table.

Yes, it exists but it is hidden and read only.

In version 14, there is no feedback tab. The feedback tab is available in version 15. There may be some issue or customization that you added causing this problem. Please review all configurations and customizations again.

Thank You!

1 Like

Oh, Ok

Thank You.

Hi @NCP,

I just realised I have restored a backup of HRMS v16.0.0-dev (develop) to v14.22.0 (version-14)

but I forgot to remove the interview and interview feedback data, so is there any way I can delete that data from my HRMS version 14?

issue: not able to cancel or delete interview feedback

If you want to only interview and interview feedback to remove the data, you can do it using either the bench console or the bench mariadb.


Thank You!

It resulted table doesn’t exists

MariaDB [erpnext]> TRUNCATE `tabInterviewDetail`;
ERROR 1146 (42S02): Table 'erpnext.tabInterviewDetail' doesn't exist
TRUNCATE `tabInterview Detail`;

and it’s a child’s table but try it.

apply it and check it.

the query ran successful but the record is still there.

MariaDB [erpnext]> TRUNCATE `tabInterview Detail`;
Query OK, 0 rows affected (0.012 sec)

because it’s a child’s table.

Already I said, if you want to delete interview and interview feedback data then apply it.

TRUNCATE `tabInterview Feedback`;
TRUNCATE `tabInterview`;

First remove the Interview Feedback and after then Interview.

Thank You!

1 Like

Hi @NCP,

Thank you so much for the solution. Really appreciate your efforts.

I’m improving myself day-by-day. It was nice working with you.