Upgrade to ver 13 error

Hi,

I am upgrading a ver 11 instance to ver 13. I built a Ver 13 server, restored the site and migrated the site and I got this error. I tried reloading the document but that didn’t work.

Any suggestions?

Thanks

Jay

Executing frappe.patches.v12_0.update_auto_repeat_status_and_not_submittable in site (_1387a6cef2979d47)

Traceback (most recent call last):
File “/usr/lib/python3.8/runpy.py”, line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File “/usr/lib/python3.8/runpy.py”, line 87, in _run_code
exec(code, run_globals)
File “/home/site/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 110, in
main()
File “/home/site/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/home/site/frappe-bench/env/lib/python3.8/site-packages/click/core.py”, line 829, in call
return self.main(*args, **kwargs)
File “/home/site/frappe-bench/env/lib/python3.8/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/home/site/frappe-bench/env/lib/python3.8/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/site/frappe-bench/env/lib/python3.8/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/site/frappe-bench/env/lib/python3.8/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/site/frappe-bench/env/lib/python3.8/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/home/site/frappe-bench/env/lib/python3.8/site-packages/click/decorators.py”, line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/site/frappe-bench/apps/frappe/frappe/commands/init.py”, line 31, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/site/frappe-bench/apps/frappe/frappe/commands/site.py”, line 433, in migrate
migrate(context.verbose, skip_failing=skip_failing, skip_search_index=skip_search_index)
File “/home/site/frappe-bench/apps/frappe/frappe/migrate.py”, line 69, in migrate
frappe.modules.patch_handler.run_all(skip_failing)
File “/home/site/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 47, in run_all
run_patch(patch)
File “/home/site/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 36, in run_patch
if not run_single(patchmodule=patch):
File “/home/site/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 81, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/site/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 105, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/site/frappe-bench/apps/frappe/frappe/patches/v12_0/update_auto_repeat_status_and_not_submittable.py”, line 29, in execute
create_custom_field(doc.reference_doctype, df)
File “/home/site/frappe-bench/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py”, line 176, in create_custom_field
custom_field.insert()
File “/home/site/frappe-bench/apps/frappe/frappe/model/document.py”, line 256, in insert
self.run_method(“before_insert”)
File “/home/site/frappe-bench/apps/frappe/frappe/model/document.py”, line 943, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/site/frappe-bench/apps/frappe/frappe/model/document.py”, line 1264, in composer
return composed(self, method, *args, **kwargs)
File “/home/site/frappe-bench/apps/frappe/frappe/model/document.py”, line 1246, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/site/frappe-bench/apps/frappe/frappe/model/document.py”, line 940, in fn
return method_object(*args, **kwargs)
File “/home/site/frappe-bench/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py”, line 44, in before_insert
frappe.throw(
File “/home/site/frappe-bench/apps/frappe/frappe/init.py”, line 504, in throw
msgprint(
File “/home/site/frappe-bench/apps/frappe/frappe/init.py”, line 479, in msgprint
_raise_exception()
File “/home/site/frappe-bench/apps/frappe/frappe/init.py”, line 434, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: A field with the name ‘auto_repeat’ already exists in doctype Purchase Order.

Though I cannot be sure since I’ve been “offline” from ERPNext for a few months - the guys recently helped me out with an upgrade from v12-> v14…more specifically v12->v13->v14…
It seems like a 2 version jump is not advised/possible, so try for what it’s worth…
v11->v12(+migrate)->v13(+migrate)