Hello.
I have ERPNext version 13.13 and during migration to Version 14. i got this error message
this message doesnt show which naming series is casing the issue, how can i figure it out ?
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/neha/portal_aar/apps/frappe/frappe/utils/bench_helper.py", line 104, in <module>
main()
File "/home/neha/portal_aar/apps/frappe/frappe/utils/bench_helper.py", line 19, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/neha/portal_aar/env/lib/python3.10/site-packages/click/core.py", line 829, in _call_
return self.main(*args, **kwargs)
File "/home/neha/portal_aar/env/lib/python3.10/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/neha/portal_aar/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/neha/portal_aar/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/neha/portal_aar/env/lib/python3.10/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/neha/portal_aar/env/lib/python3.10/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/neha/portal_aar/env/lib/python3.10/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), args, *kwargs)
File "/home/neha/portal_aar/apps/frappe/frappe/commands/__init__.py", line 27, in _func
ret = f(frappe._dict(ctx.obj), args, *kwargs)
File "/home/neha/portal_aar/apps/frappe/frappe/commands/site.py", line 306, in migrate
migrate(
File "/home/neha/portal_aar/apps/frappe/frappe/migrate.py", line 73, in migrate
sync_fixtures()
File "/home/neha/portal_aar/apps/frappe/frappe/utils/fixtures.py", line 24, in sync_fixtures
import_doc(frappe.get_app_path(app, "fixtures", fname))
File "/home/neha/portal_aar/apps/frappe/frappe/core/doctype/data_import/data_import.py", line 186, in import_doc
import_file_by_path(
File "/home/neha/portal_aar/apps/frappe/frappe/modules/import_file.py", line 69, in import_file_by_path
import_doc(doc, force=force, data_import=data_import, pre_process=pre_process,
File "/home/neha/portal_aar/apps/frappe/frappe/modules/import_file.py", line 152, in import_doc
doc.insert()
File "/home/neha/portal_aar/apps/frappe/frappe/model/document.py", line 268, in insert
self.run_post_save_methods()
File "/home/neha/portal_aar/apps/frappe/frappe/model/document.py", line 1001, in run_post_save_methods
self.run_method("on_update")
File "/home/neha/portal_aar/apps/frappe/frappe/model/document.py", line 860, in run_method
out = Document.hook(fn)(self, args, *kwargs)
File "/home/neha/portal_aar/apps/frappe/frappe/model/document.py", line 1158, in composer
return composed(self, method, args, *kwargs)
File "/home/neha/portal_aar/apps/frappe/frappe/model/document.py", line 1141, in runner
add_to_return_value(self, fn(self, args, *kwargs))
File "/home/neha/portal_aar/apps/frappe/frappe/model/document.py", line 854, in <lambda>
fn = lambda self, args, *kwargs: getattr(self, method)(*args, **kwargs)
File "/home/neha/portal_aar/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py", line 76, in on_update
validate_fields_for_doctype(self.dt)
File "/home/neha/portal_aar/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 751, in validate_fields_for_doctype
validate_fields(meta)
File "/home/neha/portal_aar/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 1055, in validate_fields
check_illegal_default(d)
File "/home/neha/portal_aar/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 849, in check_illegal_default
frappe.throw(_("Default value for {0} must be in the list of options.").format(frappe.bold(d.fieldname)))
File "/home/neha/portal_aar/apps/frappe/frappe/__init__.py", line 438, in throw
msgprint(msg, raise_exception=exc, title=title, indicator='red', is_minimizable=is_minimizable, wide=wide, as_list=as_list)
File "/home/neha/portal_aar/apps/frappe/frappe/__init__.py", line 417, in msgprint
_raise_exception()
File "/home/neha/portal_aar/apps/frappe/frappe/__init__.py", line 371, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: Default value for <b>naming_series</b> must be in the list of options.```