Can't migrate ERPNEXT 13 to ERPNEXT 14

Hello, I tried, migrating my production server into 14
But i ran into lots of problem,
I’m having this problem
how can i fix this thanks

Traceback (most recent call last):
  File "/usr/lib/python3.10/", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/", line 86, in _run_code
    exec(code, run_globals)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/", line 109, in <module>
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/", line 18, in main
  File "/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/", line 782, in main
    rv = self.invoke(ctx)
  File "/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/commands/", line 29, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/commands/", line 549, in migrate
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/", line 174, in run
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/", line 40, in wrapper
    ret = method(*args, **kwargs)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/", line 136, in post_schema_updates
    frappe.get_single("Portal Settings").sync_menu()
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/website/doctype/portal_settings/", line 37, in sync_menu
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/", line 301, in save
    return self._save(*args, **kwargs)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/", line 334, in _save
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/", line 896, in _validate_links
    frappe.throw(_("Could not find {0}").format(msg), frappe.LinkValidationError)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/", line 524, in throw
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/", line 492, in msgprint
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/", line 444, in _raise_exception
    raise raise_exception(msg)
frappe.exceptions.LinkValidationError: Could not find Row #20: Reference Document Type: Certification Application


You have a Doctype Certification Application and one of your records (somewhere) link to an unexistant Certification Application.

Witch Doctype are linked to Certification Application ?

Take care LMS and School are now separate App, you’ll have to install in your site them before launch bench migrate

Thanks Henry, It was more of a problem of the way I installed frappe and ERPnext, I reinstalled everything, I migrated node, pip to all new version, and it work.
But after many pros and cons, erpnext14 with my old database was too unstable, I will try again maybe later.
But thanks for the comment !

Please check frappe.exceptions.LinkValidationError: row #1 could not be found: UOM: Nos - #2 by Tufan_Kaynak2