We are trying to migrate from V11 to V13 and have encountered this error when trying to save a new Stock Entry. Has anyone come across it before?
Traceback (most recent call last):
File “apps/frappe/frappe/desk/form/save.py”, line 21, in savedocs
doc.save()
File “apps/frappe/frappe/model/document.py”, line 287, in save
return self._save(*args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 309, in _save
return self.insert()
File “apps/frappe/frappe/model/document.py”, line 241, in insert
self._validate()
File “apps/frappe/frappe/model/document.py”, line 501, in _validate
self._validate_length()
File “apps/frappe/frappe/model/base_document.py”, line 720, in _validate_length
column_type = type_map[df.fieldtype][0] or None
KeyError: ‘Section Break’Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 68, in application
response = frappe.api.handle()
File “apps/frappe/frappe/api.py”, line 55, in handle
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 31, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 68, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “apps/frappe/frappe/init.py”, line 1214, in call
return fn(*args, **newargs)
File “apps/frappe/frappe/desk/form/save.py”, line 21, in savedocs
doc.save()
File “apps/frappe/frappe/model/document.py”, line 287, in save
return self._save(*args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 309, in _save
return self.insert()
File “apps/frappe/frappe/model/document.py”, line 241, in insert
self._validate()
File “apps/frappe/frappe/model/document.py”, line 501, in _validate
self._validate_length()
File “apps/frappe/frappe/model/base_document.py”, line 720, in _validate_length
column_type = type_map[df.fieldtype][0] or None
KeyError: ‘Section Break’