Overview:
As Infinet Cloud Payroll release updates on a regular basis, scripts will be replaced with newer versions. Unfortunately there are scenarios where these old (deprecated) scripts are not correctly removed by NetSuite’s bundle update process. This issue, usually presents itself as “infinet” is not defined error as per the screenshot below.
Error Message: ReferenceError: "infinet" is not defined. (payroll_lib_main.js#1)
If you receive the above error or have been linked to this article by Support then you will need to delete the scripts manually. Please follow the instructions below.
To Delete Deprecated Scripts:
-
Log into NetSuite as an Administrator or Payroll Administrator - Unlocked.
-
Go to the Scripts page, via:
-
The menu, select Customization > Scripts > Scripts
-
Global search, enter Page: Scripts and select the result
-
-
Expand the FILTERS section and set everything as per the screenshot below.
-
Using the browser’s find command (ctrl + F, or cmd + F), search for a Script ID (e.g. customscript_pr_cs_payslip_approval).
-
Click the Edit link for the relative Script
-
From the Actions menu, select Delete
-
Confirm deletion by clicking OK in the popup.
-
Repeat for every script listed below
List of Scripts to Delete
The following Scripts should not exist in your account, if they do then please use the instructions above to delete.
-
customscript_pr_cs_payslip_approval
-
customscript_payroll_payslip_approval
-
customscript_pr_cs_one_off
-
customscript_pr_cs_superfund
-
customscript_pr_cs_recalculate_payslip
-
customscript_pr_sch_rollback
-
customscript_pr_sl_roll_back
-
customscript_sl_pr_employeeassistant
-
customscript_sl_getlicense
-
customscript_pr_sl_one_off
-
customscript_pr_sl_employee_leaveimport
-
customscript_pr_help
-
customscript_pr_ss_vendor
-
customscript_pr_ss_employee_buttons
-
customscript_pr_ss_basic_time_sheet
-
customscript_pr_ss_emp_bank_account_all
-
customscript_pr_cs_rollback
-
customscript_pr_cs_payslip
-
customscript_pr_cs_popup
-
customscript_pr_sl_popup
-
customscript_pr_ss_employee_super
-
customscript_pr_ss_help
-
customscript_pr_payrun_user_event
-
customscript_payroll_payslip_user_event
-
customscript_pr_ss_leave_history
-
customscript_pr_sl_recalculate_payslip
In case you encounter some scripts which are locked hence you are unable to delete the old scripts, the alternate solution is to make it Inactive. On the Scripts page, click the INACTIVE box next to the scripts that you will be deleting, then hit Submit button at the top to save it.
See screenshot below:
To make it easier for you to locate all the old scripts to be inactivated, click the FROM BUNDLE column name to rearrange it by bundle. Locate bundle ID: 16575 to see all related scripts.