Solve the Error INVALID_KEY_OR_REF Invalid custrecord_pr_psd_payee reference key XXX when processing a payrun.
PART 1: Error Checking To solve this, make sure to copy the details of the error :
Error in payroll process. Error message is: INVALID_KEY_OR_REF Invalid custrecord_pr_psd_payee reference key XXXX. nlapiCreateError(payroll_sl_processor_createpayslip.js$16:1262)
This error refers to the field 'custrecord_pr_psd_payee' having an invalid value.
To know where this field is located check the error to see what it is creating.
In this error, it is creating Payslips. nlapiCreateError(payroll_sl_processor_createpayslip.js$16:1262)
Part 2: Finding the Record Navigate to Customization > SuiteBundler > Search and Install Bundle > List and look for Jcurve Payroll Click on the components Tab
Since the Payee is in the Detail of a Payslip, look for
Go to Customization > List, Record & Fields > Record types Filter From Bundle = 16575 ( This is the Jcurve Payroll Bundle ID)
Look for Payslip Detail and Click on it
This will show the custom record type details of the 'Payslip Details'
Click the Fields Tab and look for the field custrecord_pr_psd_payee
Notice the Payee is actually the Supplier
PART 3: Checking the Record Open the Supplier Record Make sure that the Supplier with ID = XXX is active Make sure all if its required fields are filled out.
Once the changes are made, go back to your Payrun and hit Submit to Process that Pay Run
PART 1: Error Checking
To solve this, make sure to copy the details of the error :
Error in payroll process. Error message is: INVALID_KEY_OR_REF
Invalid custrecord_pr_psd_payee reference key XXXX.
nlapiCreateError(payroll_sl_processor_createpayslip.js$16:1262)
This error refers to the field 'custrecord_pr_psd_payee' having an invalid value.
To know where this field is located check the error to see what it is creating.
In this error, it is creating Payslips.
nlapiCreateError(payroll_sl_processor_createpayslip.js$16:1262)
Part 2: Finding the Record
Navigate to Customization > SuiteBundler > Search and Install Bundle > List and look for Jcurve Payroll
Click on the components Tab
Since the Payee is in the Detail of a Payslip, look for
Go to Customization > List, Record & Fields > Record types
Filter
From Bundle = 16575
( This is the Jcurve Payroll Bundle ID)
Look for Payslip Detail and Click on it
This will show the custom record type details of the 'Payslip Details'
Click the Fields Tab and look for the field custrecord_pr_psd_payee
Notice the Payee is actually the Supplier
PART 3: Checking the Record
Open the Supplier Record
Make sure that the Supplier with ID = XXX is active
Make sure all if its required fields are filled out.
Once the changes are made, go back to your Payrun and hit Submit to Process that Pay Run