Project Task error on upgrade to version 12

Hi there.

I have updated to the new version-11 and then going to upgrade to version-12.
We have 4 site in the same bench and everything looks fine except one site.

When I run

bench upgrade
the process is failed on Project Task.

Executing erpnext.patches.v12_0.update_due_date_in_gle in erp.yxyxyxyx.hu (34cfafd045f8da32)

Success: Done in 2.312s
Executing erpnext.patches.v12_0.add_default_buying_selling_terms_in_company in erp.yxyxyxyx.hu (34cfafd045f8da32)
Success: Done in 1.233s
Executing erpnext.patches.v12_0.update_ewaybill_field_position in erp.yxyxyxyx.hu (34cfafd045f8da32)
Success: Done in 0.034s
Updating DocTypes for frappe : [========================================]
Updating DocTypes for erpnext : [========================================]
Updating customizations for Address
Updating customizations for Contact
Updating customizations for Project
Updating customizations for Task
Updating customizations for ToDo
Updating customizations for Issue
Updating customizations for Project Task
Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 97, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py”, line 25, in func
ret = f(frappe.dict(ctx.obj), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py”, line 234, in migrate
migrate(context.verbose, rebuild_website=rebuild_website, skip_failing=skip_failing)
File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 53, in migrate
sync_customizations()
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py”, line 96, in sync_customizations
sync_customizations_for_doctype(data, folder)
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py”, line 152, in sync_customizations_for_doctype
validate_fields_for_doctype(doctype)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 560, in validate_fields_for_doctype
doc = frappe.get_doc(“DocType”, doctype)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 734, in get_doc
doc = frappe.model.document.get_doc(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 69, in get_doc
return controller(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 104, in init
self.load_from_db()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 147, in load_from_db
frappe.throw(
("{0} {1} not found").format(
(self.doctype), self.name), frappe.DoesNotExistError)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 360, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 346, in msgprint
_raise_exception()
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 315, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.DoesNotExistError: DocType Project Task not found
frappe@erpdev:~/frappe-bench$

I have a customization .json Project Task but due this error have removed it, but the failure is still there.
What can I do to fullfill the upgrade.

I have done the bench update before the process.
Please let me know what I need to check to do this upgrade.

Thank you.

Regards Gary