V8 upgrade - Warehouse balance error

I’m trying to upgrade from v6 to v8. At some point I run into this error.
Executing erpnext.patches.v7_0.create_warehouse_nestedset in site1.local (1bd3e0294d) Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 162, 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/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module> main() File "/home/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main click.Group(commands=commands)(prog_name='bench') File "/home/erp/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__ return self.main(*args, **kwargs) File "/home/erp/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 696, in main rv = self.invoke(ctx) File "/home/erp/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/erp/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/erp/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/erp/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke return callback(*args, **kwargs) File "/home/erp/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/erp/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 24, in _func ret = f(frappe._dict(ctx.obj), *args, **kwargs) File "/home/erp/frappe-bench/apps/frappe/frappe/commands/site.py", line 214, in migrate migrate(context.verbose, rebuild_website=rebuild_website) File "/home/erp/frappe-bench/apps/frappe/frappe/migrate.py", line 31, in migrate frappe.modules.patch_handler.run_all() File "/home/erp/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 29, in run_all if not run_single(patchmodule = patch): File "/home/erp/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 63, in run_single return execute_patch(patchmodule, method, methodargs) File "/home/erp/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 83, in execute_patch frappe.get_attr(patchmodule.split()[0] + ".execute")() File "/home/erp/frappe-bench/apps/erpnext/erpnext/patches/v7_0/create_warehouse_nestedset.py", line 29, in execute make_warehouse_nestedset(company) File "/home/erp/frappe-bench/apps/erpnext/erpnext/patches/v7_0/create_warehouse_nestedset.py", line 65, in make_warehouse_nestedset create_default_warehouse_group(company, stock_account_group, ignore_mandatory) File "/home/erp/frappe-bench/apps/erpnext/erpnext/patches/v7_0/create_warehouse_nestedset.py", line 100, in create_default_warehouse_group wh.insert(ignore_permissions=True) File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 219, in insert self.run_post_save_methods() File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 790, in run_post_save_methods self.run_method("on_update") File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 666, in run_method out = Document.hook(fn)(self, *args, **kwargs) File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 892, in composer return composed(self, method, *args, **kwargs) File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 875, in runner add_to_return_value(self, fn(self, *args, **kwargs)) File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 660, in <lambda> fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs) File "/home/erp/frappe-bench/apps/erpnext/erpnext/stock/doctype/warehouse/warehouse.py", line 52, in on_update self.create_account_head() File "/home/erp/frappe-bench/apps/erpnext/erpnext/stock/doctype/warehouse/warehouse.py", line 78, in create_account_head ac_doc.insert() File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 192, in insert self.run_before_save_methods() File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 772, in run_before_save_methods self.run_method("validate") File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 666, in run_method out = Document.hook(fn)(self, *args, **kwargs) File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 892, in composer return composed(self, method, *args, **kwargs) File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 875, in runner add_to_return_value(self, fn(self, *args, **kwargs)) File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 660, in <lambda> fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs) File "/home/erp/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/account.py", line 38, in validate self.validate_warehouse_account() File "/home/erp/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/account.py", line 193, in validate_warehouse_account fmt_money(stock_balance, currency=self.account_currency), self.warehouse)) File "/home/erp/frappe-bench/apps/frappe/frappe/__init__.py", line 316, in throw msgprint(msg, raise_exception=exc, title=title, indicator='red') File "/home/erp/frappe-bench/apps/frappe/frappe/__init__.py", line 306, in msgprint _raise_exception() File "/home/erp/frappe-bench/apps/frappe/frappe/__init__.py", line 279, in _raise_exception raise raise_exception, encode(msg) frappe.exceptions.ValidationError: Account balance (0.00) for All Warehouses - TFL and stock value (11,391,658,917.03) for warehouse All Warehouses - TFL must be same.

What could be issue here? The only other similar issue was this one https://discuss.frappe.io/t/warehouse-stock-account-link-error/17875 but I’m not certain it’s the same issue.

Hi @tri193rd

We have been fixed this issue in develop branch already. In next week develop will merge into master then you will try to migrate your account again.