Hello
I am getting the following error when trying to upgrade from v12 to v13
Traceback (most recent call last):
File "/home/erpfrappe/alamia-bench/apps/frappe/frappe/model/base_document.py", line 375, in db_insert
frappe.db.sql("""INSERT INTO `tab{doctype}` ({columns})
File "/home/erpfrappe/alamia-bench/apps/frappe/frappe/database/database.py", line 150, in sql
self._cursor.execute(query, values)
File "/home/erpfrappe/alamia-bench/env/lib/python3.8/site-packages/pymysql/cursors.py", line 148, in execute
result = self._query(query)
File "/home/erpfrappe/alamia-bench/env/lib/python3.8/site-packages/pymysql/cursors.py", line 310, in _query
conn.query(q)
File "/home/erpfrappe/alamia-bench/env/lib/python3.8/site-packages/pymysql/connections.py", line 548, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/erpfrappe/alamia-bench/env/lib/python3.8/site-packages/pymysql/connections.py", line 775, in _read_query_result
result.read()
File "/home/erpfrappe/alamia-bench/env/lib/python3.8/site-packages/pymysql/connections.py", line 1156, in read
first_packet = self.connection._read_packet()
File "/home/erpfrappe/alamia-bench/env/lib/python3.8/site-packages/pymysql/connections.py", line 725, in _read_packet
packet.raise_for_error()
File "/home/erpfrappe/alamia-bench/env/lib/python3.8/site-packages/pymysql/protocol.py", line 221, in raise_for_error
err.raise_mysql_exception(self._data)
File "/home/erpfrappe/alamia-bench/env/lib/python3.8/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.IntegrityError: (1062, "Duplicate entry 'Weight Variation' for key 'PRIMARY'")