Issue while upgrading from V11 to V12
<pre>Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/home/jbdserv/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 97, in <module> main() File "/home/jbdserv/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main click.Group(commands=commands)(prog_name='bench') File "/home/jbdserv/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 764, in __call__ return self.main(*args, **kwargs) File "/home/jbdserv/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/home/jbdserv/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/jbdserv/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/jbdserv/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/jbdserv/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "/home/jbdserv/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 25, in _func ret = f(frappe._dict(ctx.obj), *args, **kwargs) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/commands/site.py", line 235, in migrate migrate(context.verbose, rebuild_website=rebuild_website, skip_failing=skip_failing) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/migrate.py", line 49, in migrate frappe.modules.patch_handler.run_all(skip_failing) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 41, in run_all run_patch(patch) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 30, in run_patch if not run_single(patchmodule = patch): File "/home/jbdserv/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 71, in run_single return execute_patch(patchmodule, method, methodargs) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 91, in execute_patch frappe.get_attr(patchmodule.split()[0] + ".execute")() File "/home/jbdserv/frappe-bench/apps/erpnext/erpnext/patches/v12_0/add_export_type_field_in_party_master.py", line 11, in execute make_custom_fields() File "/home/jbdserv/frappe-bench/apps/erpnext/erpnext/regional/india/setup.py", line 502, in make_custom_fields create_custom_fields(custom_fields, update=update) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py", line 145, in create_custom_fields custom_field.save() File "/home/jbdserv/frappe-bench/apps/frappe/frappe/model/document.py", line 272, in save return self._save(*args, **kwargs) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/model/document.py", line 325, in _save self.run_post_save_methods() File "/home/jbdserv/frappe-bench/apps/frappe/frappe/model/document.py", line 919, in run_post_save_methods self.run_method("on_update") File "/home/jbdserv/frappe-bench/apps/frappe/frappe/model/document.py", line 787, in run_method out = Document.hook(fn)(self, *args, **kwargs) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/model/document.py", line 1058, in composer return composed(self, method, *args, **kwargs) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/model/document.py", line 1041, in runner add_to_return_value(self, fn(self, *args, **kwargs)) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/model/document.py", line 781, in <lambda> fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py", line 61, in on_update validate_fields_for_doctype(self.dt) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 669, in validate_fields_for_doctype validate_fields(frappe.get_meta(doctype, cached=False)) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 977, in validate_fields check_search_fields(meta, fields) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 831, in check_search_fields frappe.throw(_("Search field {0} is not valid").format(fieldname)) File "/home/jbdserv/frappe-bench/apps/frappe/frappe/__init__.py", line 363, in throw msgprint(msg, raise_exception=exc, title=title, indicator='red') File "/home/jbdserv/frappe-bench/apps/frappe/frappe/__init__.py", line 349, in msgprint _raise_exception() File "/home/jbdserv/frappe-bench/apps/frappe/frappe/__init__.py", line 315, in _raise_exception raise raise_exception(msg) frappe.exceptions.ValidationError: Search field manufacturer is not valid </pre>