SAP Knowledge Base Article - Public

2822607 - An Application Error occurs upon saving an update to a field in Employment Details

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

  1. Go to the Employee's Profile and scroll to the Employment Details Portlet.
  2. Click on the Pencil Icon to go to Edit Mode.
  3. Change any field's value.
  4. Click on Save.
  5. 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
    1. Go to Reporting > Adhoc Reports and create a Single Domain Person and Employment Export Report.
    2. In the Columns tab, click 'Select Columns'.
    3. Under Employee Information, select User/Employee ID, firstName, and lastName.
    4. Under Employee Job Info, select start-date, event-reason, and attachment-id.
    5. In the Filters tab, click 'Refine Criteria'.
    6. Under Employee Information, select User/Employee ID > By My Selection and type in the User ID of the affected Employee.
    7. Generate the Report to see which Job Info record has an invalid data for attachment-id.
    8. Once the specific Job Info record is identified, go to the affected Employee's Profile.
    9. Go to Job History and select the identified Job Info record with the invalid data for attachment-id. Click on the 'Delete' button.
    10. 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