Fix Duplicate Script Constant Error

Overview

A DUPLICATE_SCONST_FOUND error occurs when there is a Pay Component Sub Type with a Script Constant that is identical to another. This can cause reporting issues, among other problems.

In the example above, the error message tells us “Script Constant OVERTIME_1.0 is assigned to multiple Pay Component Sub Type records”, therefore “OVERTIME_1.0” is the Script Constant that has been duplicated and needs to be fixed.

Fortunately, this issue is simple to resolve:

How to clear a duplicate

  1.  Navigate to your Pay component subtype list: Payroll > Payroll Setup > Pay Component Subtype.

     

  2. Change the View to PR-Script Constant to make finding the duplicate easier.

     

  3. Turn on inline edit, filter by Script Constant to put them in alphabetical order, and then find the duplicates.

     

  4. Find the record with the higher Internal ID - this indicates it was created later, and is likely the duplicate.
    Clear the script constant field from the duplicate and turn off inline edit.