Salary Slip processing error ValueError: too many values to unpack (expected 2)

payroll_based_on, consider_unmarked_attendance_as = frappe.db.get_value("Payroll Settings", None, ["payroll_based_on","consider_unmarked_attendance_as"])

ValueError: too many values to unpack (expected 2)

@aakvatech, Have you find any solution?

Facing same issue.

File "/home/frappe/erpnext/apps/erpnext/erpnext/payroll/doctype/salary_slip/salary_slip.py", line 143, in get_emp_and_working_day_details
payroll_based_on, consider_unmarked_attendance_as = frappe.db.get_value("Payroll Settings", None, ["payroll_based_on","consider_unmarked_attendance_as"])

ValueError: too many values to unpack (expected 2)

Set the based on to Attendance (1), and then Present (2) and then Save.

After save change the (1) back to Leave and Save.

1 Like