Try ERPNext Buy Support Partners Foundation

Bench Update errors out KeyError: 'payroll'

Hi ,
So i happend to switch branch using bench switch-to-branch version-12,
Output :
SUCCESS: Successfully switched branches for: frappe, erpnext
Please run bench update --patch to be safe from any differences in database schema

Following which
bench update --patch errors out as follows:
Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 99, in
main()
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/mansi/WS/sts/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/mansi/WS/sts/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/mansi/WS/sts/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/mansi/WS/sts/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/mansi/WS/sts/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/mansi/WS/sts/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/mansi/WS/sts/frappe-bench/env/lib/python3.6/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/commands/init.py”, line 26, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/commands/site.py”, line 266, in migrate
migrate(context.verbose, rebuild_website=rebuild_website, skip_failing=skip_failing)
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/migrate.py”, line 48, in migrate
frappe.modules.patch_handler.run_all(skip_failing)
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 41, in run_all
run_patch(patch)
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 30, in run_patch
if not run_single(patchmodule = patch):
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 71, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 89, in execute_patch
exec(patchmodule.split(“execute:”)[1],globals())
File “”, line 1, in
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/init.py”, line 805, in reload_doctype
force=force, reset_permissions=reset_permissions)
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/init.py”, line 817, in reload_doc
return frappe.modules.reload_doc(module, dt, dn, force=force, reset_permissions=reset_permissions)
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/modules/utils.py”, line 174, in reload_doc
return import_files(module, dt, dn, force=force, reset_permissions=reset_permissions)
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 27, in import_files
reset_permissions=reset_permissions)
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 31, in import_file
path = get_file_path(module, dt, dn)
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 38, in get_file_path
path = os.path.join(get_module_path(module),
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/modules/utils.py”, line 166, in get_module_path
return frappe.get_module_path(module)
File “/home/mansi/WS/sts/frappe-bench/apps/frappe/frappe/init.py”, line 842, in get_module_path
return get_pymodule_path(local.module_app[module] + “.” + module, *joins)
KeyError: ‘payroll’.

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