Hello,
I am upgrading from version 12 to version 13-beta
I have already run bench switch-to-branch version-13-beta and branch was switch successfully.
But when I run command
bench update --patch I face the following error “Table ‘1bd3e0294da19198.tabApplicable On Account’ doesn’t exist”)
Migrating site1.local Executing erpnext.patches.v13_0.update_old_loans in site1.local (1bd3e0294da19198) Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 99, in <module> main() File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main click.Group(commands=commands)(prog_name='bench') File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 764, in __call__ return self.main(*args, **kwargs) File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 26, in _func ret = f(frappe._dict(ctx.obj), *args, **kwargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 296, in migrate skip_search_index=skip_search_index File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 67, in migrate frappe.modules.patch_handler.run_all(skip_failing) File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 41, in run_all run_patch(patch) File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 30, in run_patch if not run_single(patchmodule = patch): File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 71, in run_single return execute_patch(patchmodule, method, methodargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 91, in execute_patch frappe.get_attr(patchmodule.split()[0] + ".execute")() File "/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v13_0/update_old_loans.py", line 104, in execute loan=loan.name) File "/home/frappe/frappe-bench/apps/erpnext/erpnext/loan_management/doctype/process_loan_interest_accrual/process_loan_interest_accrual.py", line 53, in process_loan_interest_accrual_for_term_loans loan_process.submit() File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 918, in submit self._submit() File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 907, in _submit self.save() File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 285, in save return self._save(*args, **kwargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 307, in _save self.insert() File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 268, in insert self.run_post_save_methods() File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 986, in run_post_save_methods self.run_method("on_submit") File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 848, in run_method out = Document.hook(fn)(self, *args, **kwargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1137, in composer return composed(self, method, *args, **kwargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1120, in runner add_to_return_value(self, fn(self, *args, **kwargs)) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 842, in <lambda> fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs) File "/home/frappe/frappe-bench/apps/erpnext/erpnext/loan_management/doctype/process_loan_interest_accrual/process_loan_interest_accrual.py", line 27, in on_submit loan_type=self.loan_type, accrual_type=self.accrual_type) File "/home/frappe/frappe-bench/apps/erpnext/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py", line 167, in make_accrual_interest_entry_for_term_loans make_loan_interest_accrual_entry(args) File "/home/frappe/frappe-bench/apps/erpnext/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py", line 217, in make_loan_interest_accrual_entry loan_interest_accrual.submit() File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 918, in submit self._submit() File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 907, in _submit self.save() File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 285, in save return self._save(*args, **kwargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 337, in _save self.run_post_save_methods() File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 986, in run_post_save_methods self.run_method("on_submit") File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 848, in run_method out = Document.hook(fn)(self, *args, **kwargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1137, in composer return composed(self, method, *args, **kwargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1120, in runner add_to_return_value(self, fn(self, *args, **kwargs)) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 842, in <lambda> fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs) File "/home/frappe/frappe-bench/apps/erpnext/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py", line 29, in on_submit self.make_gl_entries() File "/home/frappe/frappe-bench/apps/erpnext/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py", line 78, in make_gl_entries make_gl_entries(gle_map, cancel=cancel, adv_adj=adv_adj) File "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/general_ledger.py", line 20, in make_gl_entries save_entries(gl_map, adv_adj, update_outstanding, from_repost) File "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/general_ledger.py", line 130, in save_entries make_entry(entry, adv_adj, update_outstanding, from_repost) File "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/general_ledger.py", line 139, in make_entry gle.submit() File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 918, in submit self._submit() File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 907, in _submit self.save() File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 285, in save return self._save(*args, **kwargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 307, in _save self.insert() File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 268, in insert self.run_post_save_methods() File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 985, in run_post_save_methods self.run_method("on_update") File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 848, in run_method out = Document.hook(fn)(self, *args, **kwargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1137, in composer return composed(self, method, *args, **kwargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1120, in runner add_to_return_value(self, fn(self, *args, **kwargs)) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 842, in <lambda> fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs) File "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/gl_entry/gl_entry.py", line 45, in on_update self.validate_allowed_dimensions() File "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/gl_entry/gl_entry.py", line 98, in validate_allowed_dimensions dimension_filter_map = get_dimension_filter_map() File "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/accounting_dimension_filter/accounting_dimension_filter.py", line 43, in get_dimension_filter_map """, as_dict=1) File "/home/frappe/frappe-bench/apps/frappe/frappe/database/database.py", line 153, in sql self._cursor.execute(query) File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/pymysql/cursors.py", line 170, in execute result = self._query(query) File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/pymysql/cursors.py", line 328, in _query conn.query(q) File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/pymysql/connections.py", line 517, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/pymysql/connections.py", line 732, in _read_query_result result.read() File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/pymysql/connections.py", line 1075, in read first_packet = self.connection._read_packet() File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/pymysql/connections.py", line 684, in _read_packet packet.check_error() File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/pymysql/protocol.py", line 220, in check_error err.raise_mysql_exception(self._data) File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/pymysql/err.py", line 109, in raise_mysql_exception raise errorclass(errno, errval) pymysql.err.ProgrammingError: (1146, "Table '1bd3e0294da19198.tabApplicable On Account' doesn't exist")
I already tried
bench migrate
bench update --reset
bench setup requirements
both return the same error
How can I solve this? Thanks