Payroll Error - The given Key was not Present in the dictionary; Procedure name: InsertTranHeadData; Module Name: dsPayrollproessTran....

This error is related to the Batch Transactions.

Kindly follow bellow procedure in resolving such issue.

You will find the name of the employee in the error message as highlighted in the above screen shot with the related issue, go through below process in resolving such issue:

1. Go to Earning and Deduction and search for the employee
2. Delete all the earnings and deductions excluding the updated flat rates, Membership and default Salary head
3. Re-assigned the Batch Transactions to the employee again (If there are different Batch Transactions based on different allocations, ensure the right Batch Transaction is assigned to the employee).
4. Reprocess Payroll
5. If the error message occurs again, repeat processes 1-4