getting this server error
/api/method/frappe.desk.form.save.savedocs:1
Failed to load resource: the server responded with a status of 417 ()Understand this error
Traceback (most recent call last):
File “apps/frappe/frappe/email/doctype/notification/notification.py”, line 128, in validate_condition
frappe.safe_eval(self.condition, None, get_context(temp_doc.as_dict()))
File “apps/frappe/frappe/model/base_document.py”, line 465, in as_dict
doc = self.get_valid_dict(convert_dates_to_str=convert_dates_to_str, ignore_nulls=no_nulls)
File “apps/frappe/frappe/model/base_document.py”, line 371, in get_valid_dict
value = frappe.safe_eval(
File “apps/frappe/frappe/init.py”, line 2372, in safe_eval
return safe_eval(code, eval_globals, eval_locals)
File “apps/frappe/frappe/utils/safe_exec.py”, line 133, in safe_eval
return eval(
File “<safe_eval>”, line 1, in
NameError: name ‘Employee’ is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 115, in application
response = frappe.api.handle(request)
File “apps/frappe/frappe/api/init.py”, line 49, in handle
data = endpoint(**arguments)
File “apps/frappe/frappe/api/v1.py”, line 36, in handle_rpc_call
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 49, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “apps/frappe/frappe/init.py”, line 1768, in call
return fn(*args, **newargs)
File “apps/frappe/frappe/utils/typing_validations.py”, line 31, in wrapper
return func(*args, **kwargs)
File “apps/frappe/frappe/desk/form/save.py”, line 39, in savedocs
doc.save()
File “apps/frappe/frappe/model/document.py”, line 337, in save
return self._save(*args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 373, in save
self.run_before_save_methods()
File “apps/frappe/frappe/model/document.py”, line 1091, in run_before_save_methods
self.run_method(“validate”)
File “apps/frappe/frappe/model/document.py”, line 962, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1322, in composer
return composed(self, method, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1304, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “apps/frappe/frappe/model/document.py”, line 959, in fn
return method_object(*args, **kwargs)
File “apps/frappe/frappe/email/doctype/notification/notification.py”, line 93, in validate
self.validate_condition()
File “apps/frappe/frappe/email/doctype/notification/notification.py”, line 130, in validate_condition
frappe.throw((“The Condition ‘{0}’ is invalid”).format(self.condition))
File “apps/frappe/frappe/init.py”, line 645, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 610, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 561, in _raise_exception
raise exc
frappe.exceptions.ValidationError: The Condition ‘doc.status==“Exit Confirmed”’ is invalid
(anonymous) @ desk.bundle.KY2PYOC2.js:453Understand this error
/api/method/frappe.desk.form.save.savedocs:1
Failed to load resource: the server responded with a status of 417 ()Understand this error
Traceback (most recent call last):
File “apps/frappe/frappe/email/doctype/notification/notification.py”, line 128, in validate_condition
frappe.safe_eval(self.condition, None, get_context(temp_doc.as_dict()))
File “apps/frappe/frappe/model/base_document.py”, line 465, in as_dict
doc = self.get_valid_dict(convert_dates_to_str=convert_dates_to_str, ignore_nulls=no_nulls)
File “apps/frappe/frappe/model/base_document.py”, line 371, in get_valid_dict
value = frappe.safe_eval(
File “apps/frappe/frappe/init.py”, line 2372, in safe_eval
return safe_eval(code, eval_globals, eval_locals)
File “apps/frappe/frappe/utils/safe_exec.py”, line 133, in safe_eval
return eval(
File “<safe_eval>”, line 1, in
NameError: name ‘Employee’ is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 115, in application
response = frappe.api.handle(request)
File “apps/frappe/frappe/api/init.py”, line 49, in handle
data = endpoint(**arguments)
File “apps/frappe/frappe/api/v1.py”, line 36, in handle_rpc_call
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 49, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “apps/frappe/frappe/init.py”, line 1768, in call
return fn(*args, **newargs)
File “apps/frappe/frappe/utils/typing_validations.py”, line 31, in wrapper
return func(*args, **kwargs)
File “apps/frappe/frappe/desk/form/save.py”, line 39, in savedocs
doc.save()
File “apps/frappe/frappe/model/document.py”, line 337, in save
return self._save(*args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 373, in save
self.run_before_save_methods()
File “apps/frappe/frappe/model/document.py”, line 1091, in run_before_save_methods
self.run_method(“validate”)
File “apps/frappe/frappe/model/document.py”, line 962, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1322, in composer
return composed(self, method, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1304, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “apps/frappe/frappe/model/document.py”, line 959, in fn
return method_object(*args, **kwargs)
File “apps/frappe/frappe/email/doctype/notification/notification.py”, line 93, in validate
self.validate_condition()
File “apps/frappe/frappe/email/doctype/notification/notification.py”, line 130, in validate_condition
frappe.throw((“The Condition ‘{0}’ is invalid”).format(self.condition))
File “apps/frappe/frappe/init.py”, line 645, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 610, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 561, in _raise_exception
raise exc
frappe.exceptions.ValidationError: The Condition ‘doc.employee_status==“Exit Confirmed”’ is invalid
(anonymous) @ desk.bundle.KY2PYOC2.js:453Understand this error
/api/method/frappe.desk.form.save.savedocs:1
Failed to load resource: the server responded with a status of 417 ()Understand this error
Traceback (most recent call last):
File “apps/frappe/frappe/email/doctype/notification/notification.py”, line 128, in validate_condition
frappe.safe_eval(self.condition, None, get_context(temp_doc.as_dict()))
File “apps/frappe/frappe/model/base_document.py”, line 465, in as_dict
doc = self.get_valid_dict(convert_dates_to_str=convert_dates_to_str, ignore_nulls=no_nulls)
File “apps/frappe/frappe/model/base_document.py”, line 371, in get_valid_dict
value = frappe.safe_eval(
File “apps/frappe/frappe/init.py”, line 2372, in safe_eval
return safe_eval(code, eval_globals, eval_locals)
File “apps/frappe/frappe/utils/safe_exec.py”, line 133, in safe_eval
return eval(
File “<safe_eval>”, line 1, in
NameError: name ‘Employee’ is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 115, in application
response = frappe.api.handle(request)
File “apps/frappe/frappe/api/init.py”, line 49, in handle
data = endpoint(**arguments)
File “apps/frappe/frappe/api/v1.py”, line 36, in handle_rpc_call
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 49, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “apps/frappe/frappe/init.py”, line 1768, in call
return fn(*args, **newargs)
File “apps/frappe/frappe/utils/typing_validations.py”, line 31, in wrapper
return func(*args, **kwargs)
File “apps/frappe/frappe/desk/form/save.py”, line 39, in savedocs
doc.save()
File “apps/frappe/frappe/model/document.py”, line 337, in save
return self._save(*args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 373, in save
self.run_before_save_methods()
File “apps/frappe/frappe/model/document.py”, line 1091, in run_before_save_methods
self.run_method(“validate”)
File “apps/frappe/frappe/model/document.py”, line 962, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1322, in composer
return composed(self, method, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1304, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “apps/frappe/frappe/model/document.py”, line 959, in fn
return method_object(*args, **kwargs)
File “apps/frappe/frappe/email/doctype/notification/notification.py”, line 93, in validate
self.validate_condition()
File “apps/frappe/frappe/email/doctype/notification/notification.py”, line 130, in validate_condition
frappe.throw((“The Condition ‘{0}’ is invalid”).format(self.condition))
File “apps/frappe/frappe/init.py”, line 645, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 610, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 561, in _raise_exception
raise exc
frappe.exceptions.ValidationError: The Condition ‘doc.employee_status==““Exit Confirmed””’ is invalid
(anonymous) @ desk.bundle.KY2PYOC2.js:453Understand this error
/api/method/frappe.desk.form.load.getdoc?doctype=Exit%20Interview&name=HR-EXIT-INT-00005&_=1719563945709:1
Failed to load resource: the server responded with a status of 500 ()Understand this error
Unable to handle failed response
SyntaxError: Unexpected token ‘<’, “
<”… is not valid JSON
at JSON.parse ()
at frappe.request.report_error (desk.bundle.KY2PYOC2.js:453:8126)
at 500 (desk.bundle.KY2PYOC2.js:453:3845)
at Object. (desk.bundle.KY2PYOC2.js:453:5809)
at I (libs.bundle.TIV7ZGVY.js:1:26927)
at Object.fireWith [as rejectWith] (libs.bundle.TIV7ZGVY.js:1:27719)
at en (libs.bundle.TIV7ZGVY.js:4:6076)
at XMLHttpRequest. (libs.bundle.TIV7ZGVY.js:4:8531)
(anonymous) @ desk.bundle.KY2PYOC2.js:453Understand this error
exit_interview__custom_js:7 Administrator
/api/method/frappe.desk.form.load.getdoc?doctype=Exit%20Interview&name=HR-EXIT-INT-00005&_=1719563945710:1
Failed to load resource: the server responded with a status of 500 ()Understand this error
Unable to handle failed response
SyntaxError: Unexpected token ‘<’, “
<”… is not valid JSON
at JSON.parse ()
at frappe.request.report_error (desk.bundle.KY2PYOC2.js:453:8126)
at 500 (desk.bundle.KY2PYOC2.js:453:3845)
at Object. (desk.bundle.KY2PYOC2.js:453:5809)
at I (libs.bundle.TIV7ZGVY.js:1:26927)
at Object.fireWith [as rejectWith] (libs.bundle.TIV7ZGVY.js:1:27719)
at en (libs.bundle.TIV7ZGVY.js:4:6076)
at XMLHttpRequest. (libs.bundle.TIV7ZGVY.js:4:8531)
(anonymous) @ desk.bundle.KY2PYOC2.js:453Understand this error
/api/method/frappe.desk.form.load.getdoc?doctype=Exit%20Interview&name=HR-EXIT-INT-00005&_=1719563945711:1
Failed to load resource: the server responded with a status of 500 ()Understand this error
Unable to handle failed response
SyntaxError: Unexpected token ‘<’, “
<”… is not valid JSON
at JSON.parse ()
at frappe.request.report_error (desk.bundle.KY2PYOC2.js:453:8126)
at 500 (desk.bundle.KY2PYOC2.js:453:3845)
at Object. (desk.bundle.KY2PYOC2.js:453:5809)
at I (libs.bundle.TIV7ZGVY.js:1:26927)
at Object.fireWith [as rejectWith] (libs.bundle.TIV7ZGVY.js:1:27719)
at en (libs.bundle.TIV7ZGVY.js:4:6076)
at XMLHttpRequest. (libs.bundle.TIV7ZGVY.js:4:8531)
(anonymous) @ desk.bundle.KY2PYOC2.js:453Understand this error
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to Moment.js | Guides for more info.
Arguments:
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: undefined, _f: undefined, _strict: undefined, locale: [object Object]
Error
at Function.createFromInputFallback (https://demo-hrms.assimilate.co.in/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:7:3)
at jn (https://demo-hrms.assimilate.co.in/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:7:24628)
at mr (https://demo-hrms.assimilate.co.in/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:7:28419)
at Xi (https://demo-hrms.assimilate.co.in/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:7:28284)
at Ki (https://demo-hrms.assimilate.co.in/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:7:28002)
at Zn (https://demo-hrms.assimilate.co.in/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:7:28780)
at Fe (https://demo-hrms.assimilate.co.in/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:4:112815)
at Function.ne [as tz] (https://demo-hrms.assimilate.co.in/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:7:61602)
at Object.convert_to_user_tz (https://demo-hrms.assimilate.co.in/assets/frappe/dist/js/desk.bundle.KY2PYOC2.js:776:442)
at Qo (https://demo-hrms.assimilate.co.in/assets/frappe/dist/js/desk.bundle.KY2PYOC2.js:770:4358)
ut @ libs.bundle.TIV7ZGVY.js:4
(anonymous) @ libs.bundle.TIV7ZGVY.js:5
jn @ libs.bundle.TIV7ZGVY.js:7
mr @ libs.bundle.TIV7ZGVY.js:7
Xi @ libs.bundle.TIV7ZGVY.js:7
Ki @ libs.bundle.TIV7ZGVY.js:7
Zn @ libs.bundle.TIV7ZGVY.js:7
Fe @ libs.bundle.TIV7ZGVY.js:4
ne @ libs.bundle.TIV7ZGVY.js:7
convert_to_user_tz @ desk.bundle.KY2PYOC2.js:776
Qo @ desk.bundle.KY2PYOC2.js:770
(anonymous) @ desk.bundle.KY2PYOC2.js:770
each @ libs.bundle.TIV7ZGVY.js:1
each @ libs.bundle.TIV7ZGVY.js:1
frappe.datetime.refresh_when @ desk.bundle.KY2PYOC2.js:770
(anonymous) @ desk.bundle.KY2PYOC2.js:770Understand this warning
/api/method/frappe.desk.form.load.getdoc?doctype=Exit%20Interview&name=HR-EXIT-INT-00004&=1719563945712:1
Failed to load resource: the server responded with a status of 500 ()Understand this error
Unable to handle failed response
SyntaxError: Unexpected token ‘<’, “
<”… is not valid JSON
at JSON.parse ()
at frappe.request.report_error (desk.bundle.KY2PYOC2.js:453:8126)
at 500 (desk.bundle.KY2PYOC2.js:453:3845)
at Object. (desk.bundle.KY2PYOC2.js:453:5809)
at I (libs.bundle.TIV7ZGVY.js:1:26927)
at Object.fireWith [as rejectWith] (libs.bundle.TIV7ZGVY.js:1:27719)
at en (libs.bundle.TIV7ZGVY.js:4:6076)
at XMLHttpRequest. (libs.bundle.TIV7ZGVY.js:4:8531)
(anonymous) @ desk.bundle.KY2PYOC2.js:453Understand this error
we tested with latest version 15, so please upgrade the version and test it.
Please update it.
Ok I will Update