SAP Knowledge Base Article - Public

3148062 - Getting Errors when importing the candidate profile in Provisioning

Symptom

When running the job "Candidate Import" in Provisioning as described in the KBA 2767574 - How to Import Candidate Profile via Legacy Data Import - Recruiting Management, the job gets completed, but when checking the details you see that it failed with this error message:

test.test@test.com : while trying to invoke the method java.lang.String.trim() of a null object loaded from local variable 'fieldValue'

Please note that "test.test@test.com" is just an example and refers to the primaryEmail value in the csv file that was uploaded in the SFTP server. 

Environment

SAP SuccessFactors Recruiting Management

Reproducing the Issue

Prerequisite: 

The "Candidate Import" job is configured as described in the KBA 2767574 - How to Import Candidate Profile via Legacy Data Import - Recruiting Management.

  1. Go to Provisioning
  2. Scheduled Jobs
  3. Search for "Candidate Import"
  4. Click on "Run it now"
  5. Go to Monitor Jobs
  6. Search for the job "Candidate Import"
  7. Click on Details
  8. The job failed with this error message: test.test@test.com : while trying to invoke the method java.lang.String.trim() of a null object loaded from local variable 'fieldValue'

Cause

When checking the logs in our internal SAP tool, we see entries like the ones below:

unable to validate field sf_class=com.successfactors.rcmcommon.util.CandidateStandardFieldSetter depth=1 java.lang.NoSuchMethodException: com.successfactors.rcmcandidate.bean.CandidateBean.getEmployeeId()

unable to validate field sf_class=com.successfactors.rcmcommon.util.CandidateStandardFieldSetter depth=1 java.lang.NoSuchMethodException: com.successfactors.rcmcandidate.bean.CandidateBean.getCoverLetter()

The csv file that was uploaded in the SFTP server contains fields that are not supported. In this case the fields are employeeId and coverLetter. 

Resolution

Ensure that the csv file uploaded on the SFTP server and used for the "Candidate Import" job has only supported fields. A sample csv file can be downloaded from the KBA 2767574 - How to Import Candidate Profile via Legacy Data Import - Recruiting Management.

See Also

2767574 - How to Import Candidate Profile via Legacy Data Import - Recruiting Management

Keywords

Import, Candidate, Profile, Error, Provisioning, java.lang.String.trim, getEmployeeId, getCoverLetter, Index 21 out of bounds for length 21 , KBA , LOD-SF-RCM-CAN , General Candidate Issues (not Offers, not Profiles) , Problem

Product

SAP SuccessFactors Recruiting all versions