Symptom
- An Application Error appears when saving a field change in Employment Details Portlet
- Server logs shows errors related to attachment-id: java.lang.NumberFormatException: For input string: "{module:reference:c0-eXXX, attachmentId:reference:c0-eXXX}"
- The attachment-id field in Reporting shows unusual value such as "-1"
- The plus "+" icon for Attachments section in Job Information and Employment Details is greyed out or disabled
Environment
SAP SuccessFactors Employee Central
Reproducing the Issue
- Go to the Employee's Profile and scroll to the Employment Details Portlet.
- Click on the Pencil Icon to go to Edit Mode.
- Change any field's value.
- Click on Save.
- An Application Error occurs.
Cause
There is an invalid data for attachment-id field in Job Information saved in the Database.
For Product Support Only: Please see Internal Memo.
Resolution
There are two options to correct to correct this issue:
- Option 1: Delete and recreate the Job Info Record where the bad data was created
- Go to Reporting > Adhoc Reports and create a Single Domain Person and Employment Export Report.
- In the Columns tab, click 'Select Columns'.
- Under Employee Information, select User/Employee ID, firstName, and lastName.
- Under Employee Job Info, select start-date, event-reason, and attachment-id.
- In the Filters tab, click 'Refine Criteria'.
- Under Employee Information, select User/Employee ID > By My Selection and type in the User ID of the affected Employee.
- Generate the Report to see which Job Info record has an invalid data for attachment-id.
- Once the specific Job Info record is identified, go to the affected Employee's Profile.
- Go to Job History and select the identified Job Info record with the invalid data for attachment-id. Click on the 'Delete' button.
- Click 'Insert a New Record' and recreate the same record. Make sure to attach a good copy of the attachment and no errors should appear in the attachment process.
- In case the Record is a Termination Record, delete the Termination Record to make the Employee active again and reinitiate the Termination Process.
- Option 2: Perform a Job History Full Purge Import for the affected Employee. Here is a KBA that you can use as a guide for doing a Full Purge of Job Information:
- 2317955 - Correct or Remove Job Information record via Import in Full Purge mode
See Also
2317955 - Correct or Remove Job Information record via Import in Full Purge mode
Keywords
application error, application error when editing employment details, module:reference, attachmentId:reference, java.lang.NumberFormatException: For input string, attachment , KBA , LOD-SF-EC-EMP , Employment Information (Employment Details) , LOD-SF-EC-JOB , Job Information , Problem
Product
SAP SuccessFactors Employee Central all versions