Some custom fields were added to Item Tax Template in V13 then Migrated to V14. and exported in the fixture.
getting error while migrating.
Installing india_compliance...
Updating DocTypes for india_compliance: [========================================] 100%
Setting up Income Tax...
Installation for India Compliance failed due to an error. Please try re-installing the app or report the issue on https://github.com/resilient-tech/india-compliance/issues/new if not resolved.
An error occurred while installing india_compliance: Customer: Fieldname column_break_66 appears multiple times in rows 70, 70
Traceback (most recent call last):
File "apps/frappe/frappe/commands/site.py", line 413, in install_app
_install_app(app, verbose=context.verbose, force=force)
File "apps/frappe/frappe/installer.py", line 304, in install_app
frappe.get_attr(after_install)()
File "apps/india_compliance/india_compliance/install.py", line 55, in after_install
raise e
File "apps/india_compliance/india_compliance/install.py", line 39, in after_install
setup_income_tax()
File "apps/india_compliance/india_compliance/income_tax_india/setup.py", line 7, in after_install
create_custom_fields(CUSTOM_FIELDS, update=True)
File "apps/frappe/frappe/custom/doctype/custom_field/custom_field.py", line 209, in create_custom_fields
create_custom_field(doctype, df, ignore_validate=ignore_validate)
File "apps/frappe/frappe/custom/doctype/custom_field/custom_field.py", line 175, in create_custom_field
custom_field.insert()
File "apps/frappe/frappe/model/document.py", line 283, in insert
self.run_post_save_methods()
File "apps/frappe/frappe/model/document.py", line 1076, in run_post_save_methods
self.run_method("on_update")
File "apps/frappe/frappe/model/document.py", line 908, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1260, in composer
return composed(self, method, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1242, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "apps/frappe/frappe/model/document.py", line 905, in fn
return method_object(*args, **kwargs)
File "apps/frappe/frappe/custom/doctype/custom_field/custom_field.py", line 87, in on_update
validate_fields_for_doctype(self.dt)
File "apps/frappe/frappe/core/doctype/doctype/doctype.py", line 1032, in validate_fields_for_doctype
validate_fields(meta)
File "apps/frappe/frappe/core/doctype/doctype/doctype.py", line 1458, in validate_fields
check_unique_fieldname(meta.get("name"), d.fieldname)
File "apps/frappe/frappe/core/doctype/doctype/doctype.py", line 1073, in check_unique_fieldname
frappe.throw(
File "apps/frappe/frappe/__init__.py", line 522, in throw
msgprint(
File "apps/frappe/frappe/__init__.py", line 490, in msgprint
_raise_exception()
File "apps/frappe/frappe/__init__.py", line 442, in _raise_exception
raise raise_exception(msg)
frappe.core.doctype.doctype.doctype.UniqueFieldnameError: Customer: Fieldname column_break_66 appears multiple times in rows 70, 70
Please suggest.