Migrate from erp 12 to 14

Hi, i have run bench migrate and i get this error
File “/opt/bench/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 186, in execute_patch
_patch()
patchmodule = ‘frappe.patches.v14_0.update_workspace2 # 20.09.2021’
method = None
methodargs = None
has_patch_file = True
patch = ‘frappe.patches.v14_0.update_workspace2.execute’
docstring = ‘’
_patch = <function execute at 0x7fc1ad3172e0>
start_time = 1679168987.8237076
File “/opt/bench/frappe-bench/apps/frappe/frappe/patches/v14_0/update_workspace2.py”, line 22, in execute
content = create_content(doc)
child_tables = [‘Workspace Number Card’, ‘Workspace Chart’, ‘Has Role’, ‘Workspace Quick List’, ‘Workspace Link’, ‘Workspace Shortcut’]
child_table = ‘Workspace Shortcut’
seq = 0
workspace = {‘name’: ‘Accounting’}
doc = <Workspace: Accounting>
File “/opt/bench/frappe-bench/apps/frappe/frappe/patches/v14_0/update_workspace2.py”, line 29, in create_content
if doc.onboarding:
doc = <Workspace: Accounting>
content = []
builtins.AttributeError: ‘Workspace’ object has no attribute ‘onboarding’

do you have a clue

You can’t go from 12 - 14. You have to hop to 13 first before going to 14. this ensures that all the patches relating to each version are applied to your database as something else might break without those patches. Hence if you’re attempting to jump from 12 - 14 I suggest you take a step back and move to 13 first.

2 Likes

Now im geting an issue

module_name = ‘frappe.core.doctype.desk_page.desk_page’
msg = “Module import failed for Desk Page, the DocType you’re trying to open might be deleted.
Error: No module named ‘frappe.core.doctype.desk_page’”
builtins.ImportError: Module import failed for Desk Page, the DocType you’re trying to open might be deleted.
Error: No module named ‘frappe.core.doctype.desk_page’

Did you upgrade to v13 as flexysky suggested?
you need to run a schema sync bench migrate or a bench update --reset

1 Like