Divide By Zero Error When Generating Earnings and Deductions for Semi-monthly Employees
In generating payroll, I received the following error:
[Microsoft][SQL Server Native Client 11.0][SQL Server]Divide by zero error encountered.
Enterprise ERP PayrollÂ
Payroll Processing
Generate Earnings and Deductions
Employee Job/SalaryÂ
Allocation Detail
The divide by zero error was due to an employee having Split Allocation detail in Employee Job/Salary for the Location and Group B/U range being generated, however the allocation percentages were not defined for the Pays
The Allocation detail from Employee Job Salary needed to be reviewed from Job/Salary, to review the allocation detail of all of the Pays for the Employee's in the Group and Location the Employee Pay Allocation Export to Excel was used. To create the Allocation Export:
Navigate to Employee Job/Salary (Payroll>Employee Maintenance>Employee Job/Salary)
Search for the employee's current pays, by selecting Current for the search period. Define the Location code, Group B/U, select Accept.
Select Excel from the top menu
When prompted select Allocation Info
Review the Export file and find the employee records that have split allocation with no defined percentages
Return to Employee Job/Salary, and Search for the Employee and Pay code with the blank percentages
Select Update, add the percentages to Allocation detail for each pay
Return to Payroll Start and Status>Generate Earnings and Deductions
Select Define and Accept then Execute.
The records should generate without further divide by zero errors