Looking for ERPnext upgradation from 12.X to 13, but failed to do

Whenever I am trying to use the command “bench migrate”, it has given a below error,

File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py”, line 158, in create_custom_fields
custom_field.save()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 284, in save
return self._save(*args, **kwargs)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 336, in _save
self.run_post_save_methods()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 982, in run_post_save_methods
self.run_method(“on_update”)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 847, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 1136, in composer
return composed(self, method, *args, **kwargs)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 1119, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 841, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py”, line 69, in on_update
validate_fields_for_doctype(self.dt)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 686, in validate_fields_for_doctype
validate_fields(meta)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 997, in validate_fields
validate_data_field_type(d)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 951, in validate_data_field_type
frappe.msgprint(text_str + df_options_str, title=“Invalid Data Field”, raise_exception=True)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/init.py”, line 403, in msgprint
_raise_exception()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/init.py”, line 359, in _raise_exception
raise ValidationError(msg)
frappe.exceptions.ValidationError: Sales Person is an invalid Data field.

Only Options allowed for Data field are:

  • Email
  • Name
  • Phone

Can anyone suggest to resolve this error or steps to upgrade ERPnext version from 12.X to 13

Check the Type in this Field. Have you customised?

Yes, but we change the type to Link.

but now another error facing “An unexpected error occurred: “/opt/bitnami/apps/erpnext/htdocs/package.json: Unexpected end of JSON input”.”