Error updating document

Hello Team

I am having issues updating issues, i am faced with error message below

Traceback (most recent call last):
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 231, in save
return self._save(*args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 264, in _save
self.run_before_save_methods()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 772, in run_before_save_methods
self.run_method(“validate”)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 669, in run_method
self.run_email_alerts(method)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 717, in run_email_alerts
_evaluate_alert(alert)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 699, in _evaluate_alert
evaluate_alert(self, alert.name, alert.event)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/email/doctype/email_alert/email_alert.py”, line 210, in evaluate_alert
alert.send(doc)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/email/doctype/email_alert/email_alert.py”, line 139, in send
attachments = [frappe.attach_print(doc.doctype, doc.name)] if self.attach_print else None)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 418, in sendmail
communication=communication, now=now, read_receipt=read_receipt, is_notification=is_notification)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/email/queue.py”, line 60, in send
email_account = get_outgoing_email_account(True, append_to=reference_doctype)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/email/smtp.py”, line 62, in get_outgoing_email_account
email_account.password = email_account.get_password()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 660, in get_password
return get_decrypted_password(self.doctype, self.name, fieldname, raise_exception=raise_exception)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/password.py”, line 16, in get_decrypted_password
return decrypt(auth[0][0])
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/password.py”, line 101, in decrypt
plain_text = cstr(cipher_suite.decrypt(encode(pwd)))
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/cryptography/fernet.py”, line 103, in decrypt
raise InvalidToken
InvalidToken

Traceback (most recent call last):
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/app.py”, line 56, in application
response = frappe.handler.handle()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py”, line 42, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 231, in save
return self._save(*args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 264, in _save
self.run_before_save_methods()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 772, in run_before_save_methods
self.run_method(“validate”)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 669, in run_method
self.run_email_alerts(method)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 717, in run_email_alerts
_evaluate_alert(alert)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 699, in _evaluate_alert
evaluate_alert(self, alert.name, alert.event)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/email/doctype/email_alert/email_alert.py”, line 210, in evaluate_alert
alert.send(doc)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/email/doctype/email_alert/email_alert.py”, line 139, in send
attachments = [frappe.attach_print(doc.doctype, doc.name)] if self.attach_print else None)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 418, in sendmail
communication=communication, now=now, read_receipt=read_receipt, is_notification=is_notification)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/email/queue.py”, line 60, in send
email_account = get_outgoing_email_account(True, append_to=reference_doctype)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/email/smtp.py”, line 62, in get_outgoing_email_account
email_account.password = email_account.get_password()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 660, in get_password
return get_decrypted_password(self.doctype, self.name, fieldname, raise_exception=raise_exception)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/password.py”, line 16, in get_decrypted_password
return decrypt(auth[0][0])
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/password.py”, line 101, in decrypt
plain_text = cstr(cipher_suite.decrypt(encode(pwd)))
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/cryptography/fernet.py”, line 103, in decrypt
raise InvalidToken
InvalidToken

Hi,
Please check this

Thank you @shraddha

@ccfiel Hello…

I am experiencing similar issues and reading through your fix. What old records are you referring to? and how exactly do i delete these records ?

Warm regards