Hello,
i have created the employee, now i want to rename the employee id but i receive below error while renaming the document
Traceback (most recent call last):
File "apps/frappe/frappe/model/document.py", line 1614, in execute_action
getattr(doc, __action)(**kwargs)
File "apps/frappe/frappe/model/document.py", line 1012, in _rename
self.name = rename_doc(doc=self, new=name, merge=merge, force=force, validate=validate_rename)
File "apps/frappe/frappe/model/rename_doc.py", line 172, in rename_doc
update_link_field_values(link_fields, old, new, doctype)
File "apps/frappe/frappe/model/rename_doc.py", line 430, in update_link_field_values
frappe.db.set_value(parent, {docfield: old}, docfield, new, update_modified=False)
File "apps/frappe/frappe/database/database.py", line 1019, in set_value
query.run(debug=debug)
File "apps/frappe/frappe/query_builder/utils.py", line 87, in execute_query
result = frappe.db.sql(query, params, *args, **kwargs) # nosemgrep
File "apps/frappe/frappe/database/database.py", line 244, in sql
self._cursor.execute(query, values)
File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 153, in execute
result = self._query(query)
File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 322, in _query
conn.query(q)
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 563, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 825, in _read_query_result
result.read()
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 1199, in read
first_packet = self.connection._read_packet()
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 775, in _read_packet
packet.raise_for_error()
File "env/lib/python3.10/site-packages/pymysql/protocol.py", line 219, in raise_for_error
err.raise_mysql_exception(self._data)
File "env/lib/python3.10/site-packages/pymysql/err.py", line 150, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1292, "Truncated incorrect DECIMAL value: 'AQ23456'")
HR Setting for employee naming is as mentioned below:
Can anyone suggest the solution for that?
Thanks in Advance