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/”, line 55, in application
response = frappe.handler.handle()
File “/home/shahid/think/frappe-think/apps/frappe/frappe/”, line 19, in handle
File “/home/shahid/think/frappe-think/apps/frappe/frappe/”, line 40, in execute_cmd
ret =, **frappe.form_dict)
File “/home/shahid/think/frappe-think/apps/frappe/frappe/”, line 898, in call
return fn(*args, **newargs)
File “/home/shahid/think/frappe-think/apps/frappe/frappe/”, 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/”, line 22, in runserverobj
File “/home/shahid/think/frappe-think/apps/frappe/frappe/model/”, line 520, in check_if_latest
File “/home/shahid/think/frappe-think/apps/frappe/frappe/model/”, 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


thanks for pointing out

i changed my code