Payroll Entry Failure | Party Type and Party is required for Receivable / Payable account Emplyoee Advances
Author: ryannamaniCreated Sep 27, 2026Updated Sep 27, 2026
Labelsbug
Information about bug
Step 1 : Created a New GL Account under Loans as "Emplyoee Advances" with Account Type as Receivable
Step 2 : Create an Employee Advance
Step 3 : Create the Payment Entry
Step 4 : Create an Salary Component as Emplyee Advance with Type as Deduction and assign the "Emplyee Advances" GL Account
Step 5: Create a New Additional Salary with the Employee Advance Salary Component
Stem 6 : Create Payroll Entry --> Get Employee --> upon Generating Pay Slips --> Click Submit (ERROR)
All this also happense with the exisiting default GL accounts "Debtors"
Module
Payroll
Version
Installation method
FrappeCloud
Relevant log output / Stack trace / Full Error Message.
Traceback with variables (most recent call last):
File "apps/hrms/hrms/payroll/doctype/payroll_entry/payroll_entry.py", line 1698, in submit_salary_slips_for_employees
payroll_entry.make_accrual_jv_entry(submitted)
payroll_entry = Payroll Entry (HR-PRUN-2026-00025)
salary_slips = (('Sal Slip/HR-EMP-00002/00013', 'Junior Assistant (14k)'), ('Sal Slip/HR-EMP-00003/00010', 'Operator (30k)'), ('Sal Slip/HR-EMP-00004/00001', 'Junior Operator (25k)'), ('Sal Slip/HR-EMP-00005/00001', 'Junior Assistant (14k)'))
publish_progress = False
submitted = [Salary Slip (Sal Slip/HR-EMP-00002/00013), Salary Slip (Sal Slip/HR-EMP-00003/00010), Salary Slip (Sal Slip/HR-EMP-00004/00001), Salary Slip (Sal Slip/HR-EMP-00005/00001)]
unsubmitted = []
count = 4
entry = ('Sal Slip/HR-EMP-00005/00001', 'Junior Assistant (14k)')
salary_slip = Salary Slip (Sal Slip/HR-EMP-00005/00001)
e = Row 2: Party Type and Party is required for Receivable / Payable account Emplyoee Advances - YIPL
File "apps/hrms/hrms/payroll/doctype/payroll_entry/payroll_entry.py", line 629, in make_accrual_jv_entry
self.make_journal_entry(
self = Payroll Entry (HR-PRUN-2026-00025)
submitted_salary_slips = [Salary Slip (Sal Slip/HR-EMP-00002/00013), Salary Slip (Sal Slip/HR-EMP-00003/00010), Salary Slip (Sal Slip/HR-EMP-00004/00001), Salary Slip (Sal Slip/HR-EMP-00005/00001)]
employee_wise_accounting_enabled = 1
earnings = {('Salary - YIPL', 'Main - YIPL'): 67355.0}
deductions = {('Emplyoee Advances - YIPL', 'Main - YIPL'): 8500.0}
precision = 5
accounts = [{'account': 'Salary - YIPL', 'exchange_rate': 1.0, 'cost_center': 'Main - YIPL', 'project': None, 'debit_in_account_currency': 67355.0, 'doctype': 'Journal Entry Account'}, {'account': 'Emplyoee Advances - YIPL', 'exchange_rate': 1.0, 'cost_center': 'Main - YIPL', 'project': None, 'credit_in_account_currency': 8500.0, 'doctype': 'Journal Entry Account'}, {'account': 'Payroll Payable - YIPL', 'exchange_rate': 1.0, 'cost_center': 'Main - YIPL', 'project': None, 'credit_in_account_currency': 10387.0, 'reference_type': 'Payroll Entry', 'reference_name': 'HR-PRUN-2026-00025', 'party_type': 'Employee', 'party': 'HR-EMP-00002', 'doctype': 'Journal Entry Account'}, {'account': 'Payroll Payable -...t': 'Payroll Payable - YIPL', 'exchange_rate': 1.0, 'cost_center': 'Main - YIPL', 'project': None, 'credit_in_account_currency': 12629.0, 'reference_type': 'Payroll Entry', 'reference_name': 'HR-PRUN-2026-00025', 'party_type': 'Employee', 'party': 'HR-EMP-00004', 'doctype': 'Journal Entry Account'}]
currencies = ['INR']
payable_amount = 58855.0
accounting_dimensions = []
company_currency = 'INR'
File "apps/hrms/hrms/payroll/doctype/payroll_entry/payroll_entry.py", line 670, in make_journal_entry
journal_entry.save(ignore_permissions=True)
self = Payroll Entry (HR-PRUN-2026-00025)
accounts = [{'account': 'Salary - YIPL', 'exchange_rate': 1.0, 'cost_center': 'Main - YIPL', 'project': None, 'debit_in_account_currency': 67355.0, 'doctype': 'Journal Entry Account'}, {'account': 'Emplyoee Advances - YIPL', 'exchange_rate': 1.0, 'cost_center': 'Main - YIPL', 'project': None, 'credit_in_account_currency': 8500.0, 'doctype': 'Journal Entry Account'}, {'account': 'Payroll Payable - YIPL', 'exchange_rate': 1.0, 'cost_center': 'Main - YIPL', 'project': None, 'credit_in_account_currency': 10387.0, 'reference_type': 'Payroll Entry', 'reference_name': 'HR-PRUN-2026-00025', 'party_type': 'Employee', 'party': 'HR-EMP-00002', 'doctype': 'Journal Entry Account'}, {'account': 'Payroll Payable -...t': 'Payroll Payable - YIPL', 'exchange_rate': 1.0, 'cost_center': 'Main - YIPL', 'project': None, 'credit_in_account_currency': 12629.0, 'reference_type': 'Payroll Entry', 'reference_name': 'HR-PRUN-2026-00025', 'party_type': 'Employee', 'party': 'HR-EMP-00004', 'doctype': 'Journal Entry Account'}]
currencies = ['INR']
payroll_payable_account = 'Payroll Payable - YIPL'
voucher_type = 'Journal Entry'
user_remark = 'Accrual Journal Entry for salaries from 2026-08-21 to 2026-09-20'
submitted_salary_slips = [Salary Slip (Sal Slip/HR-EMP-00002/00013), Salary Slip (Sal Slip/HR-EMP-00003/00010), Salary Slip (Sal Slip/HR-EMP-00004/00001), Salary Slip (Sal Slip/HR-EMP-00005/00001)]
submit_journal_entry = True
employee_wise_accounting_enabled = 1
multi_currency = 0
journal_entry = Journal Entry (ACC-JV-2026-00580)
File "apps/frappe/frappe/model/document.py", line 557, in save
return self._save(*args, **kwargs)
self = Journal Entry (ACC-JV-2026-00580)
args = ()
kwargs = {'ignore_permissions': True}
File "apps/frappe/frappe/model/document.py", line 579, in _save
return self.insert()
self = Journal Entry (ACC-JV-2026-00580)
ignore_permissions = True
ignore_version = None
File "apps/frappe/frappe/model/document.py", line 486, in insert
self.run_before_save_methods()
self = Journal Entry (ACC-JV-2026-00580)
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 1411, in run_before_save_methods
self.run_method("validate")
self = Journal Entry (ACC-JV-2026-00580)
File "apps/frappe/frappe/model/document.py", line 1260, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
self = Journal Entry (ACC-JV-2026-00580)
method = 'validate'
args = ()
kwargs = {}
fn = <function Document.run_method.<locals>.fn at 0x7f0948818460>
File "apps/frappe/frappe/model/document.py", line 1661, in composer
return composed(self, method, *args, **kwargs)
self = Journal Entry (ACC-JV-2026-00580)
args = ()
kwargs = {}
hooks = [<function validate_accounting_period_on_doc_save at 0x7f09a2555900>, <function validate_expense_claim_in_jv at 0x7f09c1aa4f60>, <function validate at 0x7f09c1aa5640>, <function apply at 0x7f0949883ed0>, <function check_for_running_deletion_job at 0x7f09486310c0>]
method = 'validate'
doc_events = {'*': {'on_update': ['frappe.desk.notifications.clear_doctype_notifications', 'frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions', 'frappe.core.doctype.file.utils.attach_files_to_document', 'frappe.automation.doctype.assignment_rule.assignment_rule.apply', 'frappe.automation.doctype.assignment_rule.assignment_rule.update_due_date', 'frappe.core.doctype.user_type.user_type.apply_permissions_for_non_standard_user_type', 'frappe.core.doctype.permission_log.permission_log.make_perm_log', 'frappe.search.sqlite_search.update_doc_index'], 'after_rename': ['frappe.desk.notifications.clear_doctype_notifications'], 'on_cancel': ['frappe.desk.notifications.clear_doctype_n...ssion.on_trash']}, 'DocShare': {'before_validate': ['crm.integrations.erpnext.doc_share.before_validate'], 'after_insert': ['crm.integrations.erpnext.doc_share.after_insert'], 'on_update': ['crm.integrations.erpnext.doc_share.on_update'], 'on_trash': ['crm.integrations.erpnext.doc_share.on_trash']}}
handler = 'erpnext.setup.doctype.transaction_deletion_record.transaction_deletion_record.check_for_running_deletion_job'
composed = <function Document.hook.<locals>.compose.<locals>.runner at 0x7f0948af9b10>
compose = <function Document.hook.<locals>.compose at 0x7f0948af9bc0>
f = <function Document.run_method.<locals>.fn at 0x7f0948818460>
File "apps/frappe/frappe/model/document.py", line 1635, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
self = Journal Entry (ACC-JV-2026-00580)
method = 'validate'
args = ()
kwargs = {}
add_to_return_value = <function Document.hook.<locals>.add_to_return_value at 0x7f0948af9e80>
fn = <function Document.run_method.<locals>.fn at 0x7f0948818460>
hooks = (<function validate_accounting_period_on_doc_save at 0x7f09a2555900>, <function validate_expense_claim_in_jv at 0x7f09c1aa4f60>, <function validate at 0x7f09c1aa5640>, <function apply at 0x7f0949883ed0>, <function check_for_running_deletion_job at 0x7f09486310c0>)
File "apps/frappe/frappe/model/document.py", line 1257, in fn
return method_object(*args, **kwargs)
self = Journal Entry (ACC-JV-2026-00580)
args = ()
kwargs = {}
method_object = <bound method JournalEntry.validate of <JournalEntry: doctype=Journal Entry ACC-JV-2026-00580>>
method = 'validate'
File "apps/erpnext/erpnext/accounts/doctype/journal_entry/journal_entry.py", line 140, in validate
self.validate_party()
self = Journal Entry (ACC-JV-2026-00580)
File "apps/erpnext/erpnext/accounts/doctype/journal_entry/journal_entry.py", line 605, in validate_party
frappe.throw(
self = Journal Entry (ACC-JV-2026-00580)
d = Journal Entry Account (8mg5l8pb7b)
account_type = 'Receivable'
File "apps/frappe/frappe/utils/messages.py", line 159, in throw
msgprint(
msg = 'Row 2: Party Type and Party is required for Receivable / Payable account Emplyoee Advances - YIPL'
exc = frappe.exceptions.ValidationError
title = None
is_minimizable = False
wide = False
as_list = False
primary_action = None
allow_dangerous_html = False
File "apps/frappe/frappe/utils/messages.py", line 118, in msgprint
_raise_exception()
msg = 'Row 2: Party Type and Party is required for Receivable / Payable account Emplyoee Advances - YIPL'
title = None
raise_exception = frappe.exceptions.ValidationError
as_table = False
as_list = False
indicator = 'red'
alert = False
primary_action = None
is_minimizable = False
wide = False
realtime = False
allow_dangerous_html = False
clean_html = <function clean_html at 0x7f09c73c7a00>
_raise_exception = <function msgprint.<locals>._raise_exception at 0x7f09c1aa5850>
inspect = <module 'inspect' from '/usr/lib/python3.14/inspect.py'>
out = {'message': 'Row 2: Party Type and Party is required for Receivable / Payable account Emplyoee Advances - YIPL', 'as_table': False, 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': '273beefcf5c7df67d64e0ed97e520e78de54c8f72438a53620bbeee2'}
File "apps/frappe/frappe/utils/messages.py", line 59, in _raise_exception
raise exc
exc = Row 2: Party Type and Party is required for Receivable / Payable account Emplyoee Advances - YIPL
inspect = <module 'inspect' from '/usr/lib/python3.14/inspect.py'>
msg = 'Row 2: Party Type and Party is required for Receivable / Payable account Emplyoee Advances - YIPL'
out = {'message': 'Row 2: Party Type and Party is required for Receivable / Payable account Emplyoee Advances - YIPL', 'as_table': False, 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': '273beefcf5c7df67d64e0ed97e520e78de54c8f72438a53620bbeee2'}
raise_exception = frappe.exceptions.ValidationError
frappe.exceptions.ValidationError: Row 2: Party Type and Party is required for Receivable / Payable account Emplyoee Advances - YIPLCode of Conduct
- I agree to follow this project's Code of Conduct
Source: frappe/hrms