Error during installing Helpdesk - DocType User Invitation not found

frappe@ubuntu2404:~/frappe-bench$ bench --site guoneng install-app helpdesk --force

Installing helpdesk…
Updating DocTypes for helpdesk : [========================================] 100%
An error occurred while installing helpdesk: DocType User Invitation not found
Traceback with variables (most recent call last):
File “apps/frappe/frappe/commands/site.py”, line 484, in install_app
_install_app(app, verbose=context.verbose, force=force)
context = {‘sites’: [‘guoneng’], ‘force’: False, ‘verbose’: False, ‘profile’: False}
apps = (‘helpdesk’,)
force = True
_install_app = <function install_app at 0x700b70110900>
filelock = <function filelock at 0x700b713bf380>
exit_code = 0
site = ‘guoneng’
app = ‘helpdesk’
err = DoesNotExistError(‘DocType User Invitation not found’)
File “apps/frappe/frappe/installer.py”, line 326, in install_app
frappe.get_attr(after_install)()
name = ‘helpdesk’
verbose = False
set_as_patched = True
force = True
sync_jobs = <function sync_jobs at 0x700b6f558d60>
sync_for = <function sync_for at 0x700b6f559a80>
sync_customizations = <function sync_customizations at 0x700b70f5ad40>
sync_fixtures = <function sync_fixtures at 0x700b6f559da0>
app_hooks = {‘add_to_apps_screen’: [{‘name’: ‘helpdesk’, ‘logo’: ‘/assets/helpdesk/desk/favicon.svg’, ‘title’: ‘Helpdesk’, ‘route’: ‘/helpdesk’, ‘has_permission’: ‘helpdesk.api.permission.has_app_permission’}], ‘after_install’: [‘helpdesk.setup.install.after_install’], ‘after_migrate’: [‘helpdesk.search.build_index_in_background’, ‘helpdesk.search.download_corpus’], ‘app_color’: [‘grey’], ‘app_description’: [‘Customer Service Software’], ‘app_email’: [‘hello@frappe.io’], ‘app_icon’: [‘octicon octicon-file-directory’], ‘app_license’: [‘AGPLv3’], ‘app_name’: [‘helpdesk’], ‘app_publisher’: [‘Frappe Technologies’], ‘app_title’: [‘Helpdesk’], ‘before_tests’: [‘helpdesk.test_utils.before_tests’], ‘doc_events’: {‘Contact’: {‘before_insert’: [‘helpdesk.overrides.contact.before_insert’]}, ‘Assignment Rule’: {‘on_trash’: [‘helpdesk.extends.assignment_rule.on_assignment_rule_trash’]}}, ‘has_permission’: {‘HD Ticket’: [‘helpdesk.helpdesk.doctype.hd_ticket.hd_ticket.has_permission’]}, ‘ignore_links_on_delete’:…
installed_apps = [‘frappe’, ‘erpnext’, ‘hrms’, ‘builder’, ‘insights’, ‘lms’, ‘studio’, ‘erpnext_shipping’, ‘crm’, ‘print_designer’, ‘helpdesk’]
after_install = ‘helpdesk.setup.install.after_install’
File “apps/helpdesk/helpdesk/setup/install.py”, line 21, in after_install
add_agent_manager_permissions()
File “apps/helpdesk/helpdesk/setup/install.py”, line 228, in add_agent_manager_permissions
add_permission(dt, “Agent Manager”)
doc_to_permissions = {‘Email Account’: [‘create’, ‘delete’, ‘write’], ‘File’: [‘create’, ‘delete’, ‘write’], ‘Contact’: [‘create’, ‘delete’, ‘write’], ‘Communication’: [‘create’, ‘delete’, ‘write’], ‘User Invitation’: [‘create’, ‘write’], ‘Role’: }
dt = ‘User Invitation’
p = ‘write’
File “apps/frappe/frappe/permissions.py”, line 688, in add_permission
validate_permissions_for_doctype(doctype)
doctype = ‘User Invitation’
role = ‘Agent Manager’
permlevel = 0
ptype = ‘read’
validate_permissions_for_doctype = <function validate_permissions_for_doctype at 0x700b62287f60>
custom_docperm = <CustomDocPerm: 790mdktedf parent=User Invitation>
File “apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 1685, in validate_permissions_for_doctype
doctype = frappe.get_doc(“DocType”, doctype)
doctype = ‘User Invitation’
for_remove = False
alert = False
File “apps/frappe/frappe/init.py”, line 1308, in get_doc
return frappe.model.document.get_doc(*args, **kwargs)
args = (‘DocType’, ‘User Invitation’)
kwargs = {}
frappe = <module ‘frappe’ from ‘apps/frappe/frappe/init.py’>
File “apps/frappe/frappe/model/document.py”, line 85, in get_doc
return controller(*args, **kwargs)
args = (‘DocType’, ‘User Invitation’)
kwargs = {}
doctype = ‘DocType’
controller = <class ‘frappe.core.doctype.doctype.doctype.DocType’>
File “apps/frappe/frappe/model/document.py”, line 126, in init
self.load_from_db()
self = <DocType: User Invitation>
args = (‘DocType’, ‘User Invitation’)
kwargs = {}
class = <class ‘frappe.model.document.Document’>
File “apps/frappe/frappe/model/document.py”, line 179, in load_from_db
frappe.throw(
self = <DocType: User Invitation>
get_value_kwargs = {‘for_update’: None, ‘as_dict’: True, ‘order_by’: None}
d = None
class = <class ‘frappe.model.document.Document’>
File “apps/frappe/frappe/init.py”, line 609, in throw
msgprint(
msg = ‘DocType User Invitation not found’
exc = DoesNotExistError(‘DocType User Invitation not found’)
title = None
is_minimizable = False
wide = False
as_list = False
primary_action = None
File “apps/frappe/frappe/init.py”, line 574, in msgprint
_raise_exception()
msg = ‘DocType User Invitation not found’
title = None
raise_exception = DoesNotExistError(‘DocType User Invitation not found’)
as_table = False
as_list = False
indicator = ‘red’
alert = False
primary_action = None
is_minimizable = False
wide = False
realtime = False
sys = <module ‘sys’ (built-in)>
_raise_exception = <function msgprint.._raise_exception at 0x700b61dd3740>
inspect = <module ‘inspect’ from ‘/usr/lib/python3.12/inspect.py’>
out = {‘message’: ‘DocType User Invitation not found’, ‘title’: ‘Message’, ‘indicator’: ‘red’, ‘raise_exception’: 1, ‘__frappe_exc_id’: ‘5f84278fb3af2f785d16486e1f03c46dd344512939aa9d06c3b5c9fd’}
File “apps/frappe/frappe/init.py”, line 525, in _raise_exception
raise exc
exc = DoesNotExistError(‘DocType User Invitation not found’)
inspect = <module ‘inspect’ from ‘/usr/lib/python3.12/inspect.py’>
msg = ‘DocType User Invitation not found’
out = {‘message’: ‘DocType User Invitation not found’, ‘title’: ‘Message’, ‘indicator’: ‘red’, ‘raise_exception’: 1, ‘__frappe_exc_id’: ‘5f84278fb3af2f785d16486e1f03c46dd344512939aa9d06c3b5c9fd’}
raise_exception = DoesNotExistError(‘DocType User Invitation not found’)
frappe.exceptions.DoesNotExistError: DocType User Invitation not found

Rerun this command bench get-app helpdesk or bench get-app --branch branch_name helpdesk_github_link.

then install helpdesk on site .

Hello, thanks for sharing this issue.
Helpdesk main branch is supported with version 15 of the frappe framework, and the develop branch with develop branch of frappe framework.

I have added a compatibility matrix in the helpdesk’s readme,
link: GitHub - frappe/helpdesk: Modern, Streamlined, Free and Open Source Customer Service Software

But you can see the doctype User Invitation only exists in develop branch and not version 15

1 Like

Very helpful Replay, Thank you.