Error migrate custom app

when i try to do a “bench migrate” to update my custom app i get this error message:

Traceback (most recent call last):
File “/usr/lib/python3.8/runpy.py”, line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File “/usr/lib/python3.8/runpy.py”, line 87, in _run_code
exec(code, run_globals)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/utils/bench_helper.py”, line 104, in
main()
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/utils/bench_helper.py”, line 19, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/jupiter/jupiter-frappe/env/lib/python3.8/site-packages/click/core.py”, line 829, in call
return self.main(*args, **kwargs)
File “/home/jupiter/jupiter-frappe/env/lib/python3.8/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/home/jupiter/jupiter-frappe/env/lib/python3.8/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/jupiter/jupiter-frappe/env/lib/python3.8/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/jupiter/jupiter-frappe/env/lib/python3.8/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/jupiter/jupiter-frappe/env/lib/python3.8/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/home/jupiter/jupiter-frappe/env/lib/python3.8/site-packages/click/decorators.py”, line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/commands/init.py”, line 27, in func
ret = f(frappe.dict(ctx.obj), *args, **kwargs)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/commands/site.py”, line 306, in migrate
migrate(
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/migrate.py”, line 73, in migrate
sync_fixtures()
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/utils/fixtures.py”, line 24, in sync_fixtures
import_doc(frappe.get_app_path(app, “fixtures”, fname))
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/core/doctype/data_import/data_import.py”, line 186, in import_doc
import_file_by_path(
File “/home/jupiter/jupiter-frappe/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/jupiter/jupiter-frappe/apps/frappe/frappe/modules/import_file.py”, line 152, in import_doc
doc.insert()
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/document.py”, line 237, in insert
self.run_before_save_methods()
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/document.py”, line 960, in run_before_save_methods
self.run_method(“validate”)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/document.py”, line 858, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/document.py”, line 1147, in composer
return composed(self, method, *args, **kwargs)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/document.py”, line 1130, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/document.py”, line 852, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 79, in validate
self.make_repeatable()
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 601, in make_repeatable
create_custom_field(self.name, df)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py”, line 142, in create_custom_field
custom_field.insert()
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/document.py”, line 230, in insert
self.run_method(“before_insert”)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/document.py”, line 858, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/document.py”, line 1147, in composer
return composed(self, method, *args, **kwargs)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/document.py”, line 1130, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/document.py”, line 852, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py”, line 36, in before_insert
meta = frappe.get_meta(self.dt, cached=False)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/init.py”, line 881, in get_meta
return frappe.model.meta.get_meta(doctype, cached=cached)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/meta.py”, line 43, in get_meta
return load_meta(doctype)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/meta.py”, line 46, in load_meta
return Meta(doctype)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/meta.py”, line 83, in init
super(Meta, self).init(“DocType”, doctype)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/document.py”, line 112, in init
self.load_from_db()
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/meta.py”, line 88, in load_from_db
super(Meta, self).load_from_db()
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/model/document.py”, line 155, in load_from_db
frappe.throw(
("{0} {1} not found").format(
(self.doctype), self.name), frappe.DoesNotExistError)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/init.py”, line 432, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’, is_minimizable=is_minimizable, wide=wide, as_list=as_list)
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/init.py”, line 411, in msgprint
_raise_exception()
File “/home/jupiter/jupiter-frappe/apps/frappe/frappe/init.py”, line 365, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.DoesNotExistError: DocType Payment Entry not found

Please help me

try to execute migration with command --skip failing with migrate and also
try to execute commands like bench reload-doctype “Payment Entry”

this command not working.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.