I have switched v13 to v14 .and restored all data backup..but when I am running bench migrate Iam geting error.how can i resolve this

Executing erpnext.patches.v14_0.rename_ongoing_status_in_sla_documents in naqwomtest.com (_3f5df09d7e)

  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'frappe.core.doctype.naming_series'

 File "/home/frappe/frappe-live/apps/frappe/frappe/modules/import_file.py", line 214, in import_doc
    controller = get_controller(docdict["doctype"])
  File "/home/frappe/frappe-live/apps/frappe/frappe/model/base_document.py", line 81, in get_controller
    site_controllers[doctype] = _get_controller()
  File "/home/frappe/frappe-live/apps/frappe/frappe/model/base_document.py", line 63, in _get_controller
    module = load_doctype_module(doctype, module_name)
  File "/home/frappe/frappe-live/apps/frappe/frappe/modules/utils.py", line 244, in load_doctype_module
    raise ImportError(msg) from e
ImportError: Module import failed for Naming Series, the DocType you're trying to open might be deleted.<br> Error: No module named 'frappe.core.doctype.naming_series'
frappe@erp:~/frappe-live$ c apps/

Try Execute bench update --patch

You mostly get this problem, because there are differences in database schema between version 13 and v14…, So you are getting an error when performing a “migration”…

Maybe I can’t help, but I’m sure there are some solutions to this problem…

  • Maybe the upgrade patch can handle data migration (by executing patch files).
    Or: Anyway…
  • You can export data from the old site to the new site, perform a manual data migration… :innocent: