Skip to main content

Error: Value cannot be null. Parameter name: first

Record has failed to send to SelectPay with XML error: Value cannot be null. Parameter name: first

H
Written by Harry Ledger
Updated over 3 months ago

This issue has been identified as caused by any employee who has an appointment with a payroll name and number assigned, but no pay method has been selected.
​
You will need to ensure that there are no employees in the system with a payroll name and payroll number, but no pay method.
​
This can be done via a data export by following these steps.

  1. Log in to the SelectHR Administrator Tool.

  2. Click Import/Export Data.

  3. Click Create an export definition.

  4. Click Select the data to export.

  5. Change the database to SelectHR.

  6. Log in.

  7. Copy the below SQL:

  8. Select Person.Snapshot.[Person Number], Person.Snapshot.[First Name], Person.Snapshot.Surname, Person.Snapshot.[Effective Status], Person.Snapshot.[Payroll Name], Person.Snapshot.[Payroll Number], Person.Snapshot.[Pay Method] From Person.Snapshot Where (Person.Snapshot.[Payroll Name] Is Not Null And Person.Snapshot.[Payroll Number] Is Not Null And Person.Snapshot.[Pay Method] Is Null) Or (Person.Snapshot.[Payroll Name] Is Not Null And Person.Snapshot.[Pay Method] Is Null) Or (Person.Snapshot.[Payroll Number] Is Not Null And Person.Snapshot.[Pay Method] Is Null)
  9. In the top left of the data export window, click Options, Paste SQL from clipboard.

  10. Click Data.

If the employee who has not had changes come through to SelectPay is on the data list, you will need to go into their appointment and add a pay method.

Did this answer your question?