Error On Cancelled Doctype

I got this error in web browser’s Console

Traceback (most recent call last):
File “/home/shahid/think/frappe-think/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/shahid/think/frappe-think/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/shahid/think/frappe-think/apps/frappe/frappe/handler.py”, line 40, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/shahid/think/frappe-think/apps/frappe/frappe/init.py”, line 898, in call
return fn(*args, **newargs)
File “/home/shahid/think/frappe-think/apps/frappe/frappe/handler.py”, line 71, in runserverobj
frappe.desk.form.run_method.runserverobj(method, docs=docs, dt=dt, dn=dn, arg=arg, args=args)
File “/home/shahid/think/frappe-think/apps/frappe/frappe/desk/form/run_method.py”, line 22, in runserverobj
doc.check_if_latest()
File “/home/shahid/think/frappe-think/apps/frappe/frappe/model/document.py”, line 520, in check_if_latest
self.check_docstatus_transition(tmp.docstatus)
File “/home/shahid/think/frappe-think/apps/frappe/frappe/model/document.py”, line 562, in check_docstatus_transition
raise frappe.ValidationError, _(“Cannot edit cancelled document”)
ValidationError: Cannot edit cancelled document

when i opened cancelled document of student applicant

can any one please help me with this

thanks regard

Hi @shahid_ecit ,
Have you written any class method for changing the docfield? Which frappe call is triggering this error?

1 Like

yes

thanks for pointing out

i changed my code