Skip to content

User Type Employee Self Service not found #1059

@umaish1277

Description

@umaish1277

Information about bug

While installing User Type Employee Self Service not found error occured.

Module

Loan Management

Version

erpnext 17.x.x-develop develop (8806977)
frappe 17.x.x-develop develop (d124305)
hrms 17.0.0-dev develop (b9d4e9c)
lending 0.0.1 develop (c605a3f)
payments 0.0.1 develop (92a9cfb)

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

Updating payroll setup for loans
An error occurred while installing lending: User Type Employee Self Service not found
Traceback with variables (most recent call last):
  File "apps/frappe/frappe/commands/site.py", line 508, in install_app
    _install_app(app, verbose=context.verbose, force=force)
      context = CliCtxObj(force=False, profile=False, sites=['erp.siddique.pk'], verbose=False)
      apps = ('lending')
      force = False
      _install_app = <function install_app at 0x7afbb9196820>
      filelock = <function filelock at 0x7afbba3ec510>
      exit_code = 0
      site = 'erp.siddique.pk'
      app = 'lending'
      err = User Type Employee Self Service not found
  File "apps/frappe/frappe/installer.py", line 334, in install_app
    frappe.get_attr(fn)(name)
      name = 'lending'
      verbose = False
      set_as_patched = True
      force = False
      sync_jobs = <function sync_jobs at 0x7afbb7ad07d0>
      sync_for = <function sync_for at 0x7afbb7ad1d20>
      sync_customizations = <function sync_customizations at 0x7afbba25e2a0>
      sync_fixtures = <function sync_fixtures at 0x7afbb7ad21f0>
      installed_apps = ['frappe', 'erpnext', 'payments', 'hrms']
      app = 'erpnext'
      required_app = 'erpnext'
      other_class_overrides = {'Employee': ['hrms.overrides.employee_master.EmployeeMaster'], 'Timesheet': ['hrms.overrides.employee_timesheet.EmployeeTimesheet'], 'Payment Entry': ['hrms.overrides.employee_payment_entry.EmployeePaymentEntry'], 'Project': ['hrms.overrides.employee_project.EmployeeProject']}
      fn = 'hrms.setup.after_app_install'
      after_install = 'lending.install.after_install'
      app_hooks = {'accounting_dimension_doctypes': ['Loan', 'Loan Disbursement', 'Loan Interest Accrual', 'Loan Demand', 'Loan Repayment', 'Loan Refund', 'Sales Invoice', 'Journal Entry'], 'add_to_apps_screen': [{'name': 'lending', 'logo': '/assets/lending/images/frappe-lending-logo.svg', 'title': 'Lending', 'route': '/app/lending', 'has_permission': 'lending.utils.check_app_permission'}], 'after_install': ['lending.install.after_install'], 'app_description': ['Open Source Lending software'], 'app_email': ['contact@frappe.io'], 'app_include_js': ['lending.bundle.js'], 'app_license': ['GNU General Public License (v3)'], 'app_logo_url': ['/assets/lending/images/frappe-lending-logo.svg'], 'app_name': ['lending'...t.doctype.process_loan_restructure_limit.process_loan_restructure_limit.calculate_monthly_restructure_limit']}, 'update_gl_dict_with_app_based_fields': ['lending.overrides.gl_entry.update_value_date_in_gl_dict'], 'voucher_subtypes': ['lending.loan_management.doctype.loan.loan.get_voucher_subtypes']}
  File "apps/hrms/hrms/setup.py", line 39, in after_app_install
    add_lending_docperms_to_ess()
      app_name = 'lending'
  File "apps/hrms/hrms/setup.py", line 587, in add_lending_docperms_to_ess
    doc = frappe.get_doc("User Type", "Employee Self Service")
  File "apps/frappe/frappe/model/utils/__init__.py", line 218, in wrapper
    return dispatch(args[0])(*args, **kw)
      args = ('User Type', 'Employee Self Service')
      kw = {}
      dispatch = <function simple_singledispatch.<locals>.dispatch at 0x7afbba26e400>
      func = <function get_doc at 0x7afbba26e350>
  File "apps/frappe/frappe/model/document.py", line 125, in get_doc_str
    doc = controller(doctype, name, **kwargs)
      doctype = 'User Type'
      name = 'Employee Self Service'
      kwargs = {}
      controller = frappe.core.doctype.user_type.user_type.UserType
  File "apps/frappe/frappe/model/document.py", line 208, in __init__
    self.load_from_db()
      self = User Type (Employee Self Service)
      args = ('User Type', 'Employee Self Service')
      kwargs = {}
      first_arg = 'User Type'
      __class__ = frappe.model.document.Document
  File "apps/frappe/frappe/model/document.py", line 276, in load_from_db
    frappe.throw(
      self = User Type (Employee Self Service)
      is_doctype = False
      for_update = ''
      d = []
      __class__ = frappe.model.document.Document
  File "apps/frappe/frappe/utils/messages.py", line 148, in throw
    msgprint(
      msg = 'User Type Employee Self Service not found'
      exc = User Type Employee Self Service not found
      title = None
      is_minimizable = False
      wide = False
      as_list = False
      primary_action = None
  File "apps/frappe/frappe/utils/messages.py", line 109, in msgprint
    _raise_exception()
      msg = 'User Type Employee Self Service not found'
      title = None
      raise_exception = User Type Employee Self Service not found
      as_table = False
      as_list = False
      indicator = 'red'
      alert = False
      primary_action = None
      is_minimizable = False
      wide = False
      realtime = False
      _raise_exception = <function msgprint.<locals>._raise_exception at 0x7afbb52c0510>
      inspect = <module 'inspect' from '/usr/lib/python3.14/inspect.py'>
      out = {'message': 'User Type Employee Self Service not found', 'as_table': False, 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': '5548d8e0d0c28f1268c56674b3e4d49009efa8c3c8bde21d1ea1bda7'}
  File "apps/frappe/frappe/utils/messages.py", line 58, in _raise_exception
    raise exc
      exc = User Type Employee Self Service not found
      inspect = <module 'inspect' from '/usr/lib/python3.14/inspect.py'>
      msg = 'User Type Employee Self Service not found'
      out = {'message': 'User Type Employee Self Service not found', 'as_table': False, 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': '5548d8e0d0c28f1268c56674b3e4d49009efa8c3c8bde21d1ea1bda7'}
      raise_exception = User Type Employee Self Service not found
frappe.exceptions.DoesNotExistError: User Type Employee Self Service not found

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions