Getting this error in payroll entry while submitting

Getting this error in payroll entry while submitting .

App Versions

{
	"erpnext": "15.18.3",
	"frappe": "15.19.1",
	"gke_customization": "0.0.1",
	"gurukrupa_biometric": "0.0.1",
	"gurukrupa_customizations": "0.0.1",
	"hrms": "15.0.0-dev",
	"india_compliance": "15.7.0",
	"insights": "2.1.4",
	"jewellery_erpnext": "0.0.1",
	"payments": "0.0.1",
	"wiki": "2.0.0"
}

Route

Form/Payroll Entry/HR-PRUN-2024-00001

Traceback

Traceback (most recent call last):
  File "apps/hrms/hrms/payroll/doctype/payroll_entry/payroll_entry.py", line 1459, in submit_salary_slips_for_employees
    payroll_entry.make_accrual_jv_entry(submitted)
  File "apps/hrms/hrms/payroll/doctype/payroll_entry/payroll_entry.py", line 504, in make_accrual_jv_entry
    self.get_salary_component_total(
  File "apps/hrms/hrms/payroll/doctype/payroll_entry/payroll_entry.py", line 360, in get_salary_component_total
    account_details = self.get_account(component_dict=component_dict)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/hrms/hrms/payroll/doctype/payroll_entry/payroll_entry.py", line 488, in get_account
    account = self.get_salary_component_account(component)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/hrms/hrms/payroll/doctype/payroll_entry/payroll_entry.py", line 295, in get_salary_component_account
    frappe.throw(
  File "apps/frappe/frappe/__init__.py", line 602, in throw
    msgprint(
  File "apps/frappe/frappe/__init__.py", line 567, in msgprint
    _raise_exception()
  File "apps/frappe/frappe/__init__.py", line 518, in _raise_exception
    raise exc
frappe.exceptions.ValidationError: Please set account in Salary Component <a href="https://gk-v15-uat-testing.frappe.cloud/app/salary-component/House%20Rent%20Allowance">House Rent Allowance</a>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 110, in application
    response = frappe.api.handle(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/api/__init__.py", line 49, in handle
    data = endpoint(**arguments)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
    return frappe.handler.handle()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 49, in handle
    data = execute_cmd(cmd)
           ^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1718, in call
    return fn(*args, **newargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 326, in run_doc_method
    response = doc.run_method(method)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 960, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 1320, in composer
    return composed(self, method, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 1302, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 957, in fn
    return method_object(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/hrms/hrms/payroll/doctype/payroll_entry/payroll_entry.py", line 279, in submit_salary_slips
    submit_salary_slips_for_employees(self, salary_slips, publish_progress=False)
  File "apps/hrms/hrms/payroll/doctype/payroll_entry/payroll_entry.py", line 1467, in submit_salary_slips_for_employees
    log_payroll_failure("submission", payroll_entry, e)
  File "apps/hrms/hrms/payroll/doctype/payroll_entry/payroll_entry.py", line 1351, in log_payroll_failure
    error_message += "\n" + _("Check Error Log {0} for more details.").format(
TypeError: unsupported operand type(s) for +=: '_dict' and 'str'

Request Data

{
	"type": "POST",
	"args": {
		"docs": "{\"name\":\"HR-PRUN-2024-00001\",\"owner\":\"vishalrajput@gkexport.com\",\"creation\":\"2024-04-02 17:30:16.824210\",\"modified\":\"2024-04-02 17:31:39.561426\",\"modified_by\":\"vishalrajput@gkexport.com\",\"docstatus\":1,\"idx\":0,\"posting_date\":\"2024-04-02\",\"company\":\"Gurukrupa Export Private Limited\",\"currency\":\"INR\",\"exchange_rate\":1,\"payroll_payable_account\":\"Payroll Payable - GE\",\"status\":\"Failed\",\"salary_slip_based_on_timesheet\":0,\"payroll_frequency\":\"Monthly\",\"start_date\":\"2023-12-01\",\"end_date\":\"2023-12-31\",\"deduct_tax_for_unclaimed_employee_benefits\":0,\"deduct_tax_for_unsubmitted_tax_exemption_proof\":0,\"department\":\"IT\",\"number_of_employees\":3,\"validate_attendance\":0,\"cost_center\":\"Main - GE\",\"payment_account\":\"Bank Account - GE\",\"salary_slips_created\":1,\"salary_slips_submitted\":0,\"error_message\":\"(1054, \\\"Unknown column 'consider_working_hours' in 'field list'\\\")\\nCheck Error Log <a href=\\\"https://gk-v15-uat-testing.frappe.cloud/app/error-log/26b5a5d94f\\\">26b5a5d94f</a> for more details.\",\"doctype\":\"Payroll Entry\",\"employees\":[{\"name\":\"2210277c94\",\"owner\":\"vishalrajput@gkexport.com\",\"creation\":\"2024-04-02 17:30:16.824210\",\"modified\":\"2024-04-02 17:31:16.158859\",\"modified_by\":\"vishalrajput@gkexport.com\",\"docstatus\":1,\"idx\":1,\"employee\":\"HR-EMP-00483\",\"employee_name\":\"VISHALSINGH VISHWAJEET RAJPUT\",\"department\":\"IT\",\"designation\":\"Devops Engineer\",\"parent\":\"HR-PRUN-2024-00001\",\"parentfield\":\"employees\",\"parenttype\":\"Payroll Entry\",\"doctype\":\"Payroll Employee Detail\"},{\"name\":\"fb90a23cab\",\"owner\":\"vishalrajput@gkexport.com\",\"creation\":\"2024-04-02 17:30:16.824210\",\"modified\":\"2024-04-02 17:31:16.158859\",\"modified_by\":\"vishalrajput@gkexport.com\",\"docstatus\":1,\"idx\":2,\"employee\":\"HR-EMP-00495\",\"employee_name\":\"DHARM DHIRUBHAI VAGHASIYA\",\"department\":\"IT\",\"designation\":\"Software Engineer\",\"parent\":\"HR-PRUN-2024-00001\",\"parentfield\":\"employees\",\"parenttype\":\"Payroll Entry\",\"doctype\":\"Payroll Employee Detail\"},{\"name\":\"09f8a4c574\",\"owner\":\"vishalrajput@gkexport.com\",\"creation\":\"2024-04-02 17:30:16.824210\",\"modified\":\"2024-04-02 17:31:16.158859\",\"modified_by\":\"vishalrajput@gkexport.com\",\"docstatus\":1,\"idx\":3,\"employee\":\"HR-EMP-00656\",\"employee_name\":\"BHAVIKA SANJAYBHAI PATIL\",\"department\":\"IT\",\"designation\":\"Software Engineer\",\"parent\":\"HR-PRUN-2024-00001\",\"parentfield\":\"employees\",\"parenttype\":\"Payroll Entry\",\"doctype\":\"Payroll Employee Detail\"}],\"__last_sync_on\":\"2024-04-02T12:10:39.639Z\"}",
		"method": "submit_salary_slips",
		"args": "{}"
	},
	"freeze": true,
	"freeze_message": "Submitting Salary Slips and creating Journal Entry...",
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/run_doc_method",
	"request_id": "9096574b-57e5-44e0-a2f8-89c2de136b86"
}

Response Data

{
	"exception": "TypeError: unsupported operand type(s) for +=: '_dict' and 'str'",
	"exc_type": "TypeError",
	"_exc_source": "hrms (app)"
}

Hi @Vishal_Rajput,

I’ve shared a suggestion:
If you’ve installed Frappe ERPNext in version 15, make sure the hrms is also in version 15 to prevent errors.

If the hrms is in the development branch, switch to it:

bench switch-to-branch version-15 hrms

If you’ve uninstalled or installed the app, do this:

bench get-app --branch version-15 hrms

This is because the hrms app has a version 15 branch.

I hope this is clear and helpful.

Thank You!