Skip to content

Not getting Employees for the Payrol #4135

@Pauldic

Description

@Pauldic

Information about bug

Though there is no visible error on the UI and it reports clearly there is "No employees found" though I have one employee on the system, whom should be listed based based on the selected filter. And even without any filter still no employee is listed. I suspect this might be a bug

Image Image Image

Module

Payroll

Version

Frappe Framework: v16.6.0 (version-16)
ERPNext: v16.5.0 (version-16)
Frappe HR: v16.4.0 (version-16)

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

22:37:42 web.1         | Traceback (most recent call last):
22:37:42 web.1         |   File "apps/frappe/frappe/app.py", line 121, in application
22:37:42 web.1         |     response = frappe.api.handle(request)
22:37:42 web.1         |   File "apps/frappe/frappe/api/__init__.py", line 63, in handle
22:37:42 web.1         |     data = endpoint(**arguments)
22:37:42 web.1         |   File "apps/frappe/frappe/api/v1.py", line 40, in handle_rpc_call
22:37:42 web.1         |     return frappe.handler.handle()
22:37:42 web.1         |            ~~~~~~~~~~~~~~~~~~~~~^^
22:37:42 web.1         |   File "apps/frappe/frappe/handler.py", line 53, in handle
22:37:42 web.1         |     data = execute_cmd(cmd)
22:37:42 web.1         |   File "apps/frappe/frappe/handler.py", line 86, in execute_cmd
22:37:42 web.1         |     return frappe.call(method, **frappe.form_dict)
22:37:42 web.1         |            ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22:37:42 web.1         |   File "apps/frappe/frappe/__init__.py", line 1124, in call
22:37:42 web.1         |     return fn(*args, **newargs)
22:37:42 web.1         |   File "apps/frappe/frappe/handler.py", line 292, in run_doc_method
22:37:42 web.1         |     response = doc.run_method(method)
22:37:42 web.1         |   File "apps/frappe/frappe/model/document.py", line 1181, in run_method
22:37:42 web.1         |     out = Document.hook(fn)(self, *args, **kwargs)
22:37:42 web.1         |   File "apps/frappe/frappe/model/document.py", line 1578, in composer
22:37:42 web.1         |     return composed(self, method, *args, **kwargs)
22:37:42 web.1         |   File "apps/frappe/frappe/model/document.py", line 1556, in runner
22:37:42 web.1         |     add_to_return_value(self, fn(self, *args, **kwargs))
22:37:42 web.1         |                               ~~^^^^^^^^^^^^^^^^^^^^^^^
22:37:42 web.1         |   File "apps/frappe/frappe/model/document.py", line 1178, in fn
22:37:42 web.1         |     return method_object(*args, **kwargs)
22:37:42 web.1         |   File "apps/frappe/frappe/utils/typing_validations.py", line 36, in wrapper
22:37:42 web.1         |     return func(*args, **kwargs)
22:37:42 web.1         |   File "apps/hrms/hrms/payroll/doctype/payroll_entry/payroll_entry.py", line 242, in fill_employee_details
22:37:42 web.1         |     frappe.throw(error_msg, title=_("No employees found"))
22:37:42 web.1         |     ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22:37:42 web.1         |   File "apps/frappe/frappe/utils/messages.py", line 148, in throw
22:37:42 web.1         |     msgprint(
22:37:42 web.1         |     ~~~~~~~~^
22:37:42 web.1         |        msg,
22:37:42 web.1         |      ^^^^
22:37:42 web.1         |     ...<6 lines>...
22:37:42 web.1         |        primary_action=primary_action,
22:37:42 web.1         |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22:37:42 web.1         |     )
22:37:42 web.1         |     ^
22:37:42 web.1         |   File "apps/frappe/frappe/utils/messages.py", line 109, in msgprint
22:37:42 web.1         |     _raise_exception()
22:37:42 web.1         |     ~~~~~~~~~~~~~~~~^^
22:37:42 web.1         |   File "apps/frappe/frappe/utils/messages.py", line 58, in _raise_exception
22:37:42 web.1         |     raise exc
22:37:42 web.1         | frappe.exceptions.ValidationError: No employees found for the mentioned criteria:Company: SoftDongle Currency: NGNPayroll Payable Account: Payroll Payable - SDDepartment: OperationsStart date: 2026-01-01End date: 2026-01-31

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions