Error in Frappe Helpdesk Installation - Existing site

Hi,

While installing Frappe Helpdesk I am getting the below mentioned error.

To override the below error - I first tried to install with ignore_mandatory=True in “document.py”.

But the installation came up with no left menu and with just plain ticket screen with no options (screenshot shown below).

Blockquote
An error occurred while installing helpdesk: [Contact, Sumit Bhanushali-1]: last_name
Traceback with variables (most recent call last):
File “apps/frappe/frappe/commands/site.py”, line 445, in install_app
_install_app(app, verbose=context.verbose, force=force)
context = {‘sites’: [‘xxxyyy.com’], ‘force’: False, ‘verbose’: False, ‘profile’: False}
apps = (‘helpdesk’,)
force = False
_install_app = <function install_app at 0xf7bc7d108fe0>
filelock = <function filelock at 0xf7bc7d106200>
exit_code = 0
site = ‘xxxyyy.com
app = ‘helpdesk’
err = MandatoryError(‘[Contact, Sumit Bhanushali-1]: last_name’)
File “apps/frappe/frappe/installer.py”, line 311, in install_app
frappe.get_attr(after_install)()
name = ‘helpdesk’
verbose = False
set_as_patched = True
force = False
sync_jobs = <function sync_jobs at 0xf7bc7baba480>
sync_for = <function sync_for at 0xf7bc7babb2e0>
sync_customizations = <function sync_customizations at 0xf7bc7d096980>
sync_fixtures = <function sync_fixtures at 0xf7bc7babb600>
app_hooks = {‘after_install’: [‘helpdesk.setup.install.after_install’], ‘after_migrate’: [‘helpdesk.search.build_index_in_background’], ‘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_install’: [‘helpdesk.setup.install.before_install’], ‘doc_events’: {‘Contact’: {‘before_insert’: [‘helpdesk.helpdesk.hooks.contact.before_insert’]}, ‘Assignment Rule’: {‘on_trash’: [‘helpdesk.overrides.on_assignment_rule_trash’]}}, ‘has_permission’: {‘HD Ticket’: [‘helpdesk.helpdesk.doctype.hd_ticket.hd_ticket.has_permission’]}, ‘ignore_links_on_delete’: [‘HD Notification’, ‘HD Ticket Comment’], ‘permission_query_conditions’: {‘HD Ticket’: [‘helpdesk.helpdesk.doctype.hd_ticket.hd_ticket.permission_query’]}, ‘scheduler_events’: {‘all’: [‘helpdesk.search.build_index_if_not_exists’]}, 'w…
installed_apps = [‘frappe’, ‘erpnext’, ‘hrms’, ‘india_compliance’, ‘payments’]
before_install = ‘helpdesk.setup.install.before_install’
out = None
after_install = ‘helpdesk.setup.install.after_install’
File “apps/helpdesk/helpdesk/setup/install.py”, line 29, in after_install
create_welcome_ticket()
File “apps/helpdesk/helpdesk/setup/welcome_ticket.py”, line 26, in create_welcome_ticket
create_contact()
File “apps/helpdesk/helpdesk/setup/welcome_ticket.py”, line 58, in create_contact
).insert()
File “apps/frappe/frappe/model/document.py”, line 292, in insert
self._validate()
self = <Contact: Sumit Bhanushali-1>
ignore_permissions = None
ignore_links = None
ignore_if_duplicate = False
ignore_mandatory = None
set_name = None
set_child_names = True
File “apps/frappe/frappe/model/document.py”, line 574, in _validate
self._validate_mandatory()
self = <Contact: Sumit Bhanushali-1>
File “apps/frappe/frappe/model/document.py”, line 911, in _validate_mandatory
raise frappe.MandatoryError(
self = <Contact: Sumit Bhanushali-1>
missing = [(‘last_name’, ‘Error: Value missing for Contact: Last Name’)]
d = <ContactEmail: r7s07t1s18 parent=Sumit Bhanushali-1>
idx = ‘last_name’
msg = ‘Error: Value missing for Contact: Last Name’
frappe.exceptions.MandatoryError: [Contact, Sumit Bhanushali-1]: last_name

Blockquote

I think there is a setup to do first:

  • Create a Helpdesk Agent
  • Create a Helpdesk Team
  • Go to the Helpdesk General Settings and check then uncheck Setup Complete (I had to do this, maybe a subtle bug somewhere)
  • Then it will show you the Setup Wizard on /helpdesk
1 Like

Hi @corentin Thank you very much. It worked.

  • Create a Helpdesk Agent
  • Create a Helpdesk Team
  • Go to the Helpdesk General Settings and check then uncheck Setup Complete (I had to do this, maybe a subtle bug somewhere)
  • Then it will show you the Setup Wizard on /helpdesk