SAP Knowledge Base Article - Public

3400621 - Application error on rehiring an inactive employee - CS2H2023


When rehiring an inactive employee via Rehire Inactive Employee tool and after filling the required details on click 'Submit' button, we get an application error.


  • SAP SuccessFactors Employee Central
  • Rehire
  • Centralized Services

Reproducing the Issue

  1. In Admin Center  -> Company System and Logo Settings, the switch "Enable Centralized Services to Add New Employee, Add New Employee for Fixed Term, and Rehire Inactive Employee" is enabled
  2. Go to Rehire Inactive Employee
  3. Search for an inactive user to rehire
  4. Select “Rehire Employee”
  5. Select Event Reason
  6. Fill all the mandatory information
  7. Click Submit
  8. An application error is shown.


The issue occurs when Future Dated Alternate Workflow is configured for Hire/Rehire scenarios. Future Dated Alternate Workflows are generally for effective dated entities, like jobInfo and not for Hire/Rehire scenarios. Please refer to the following handbook for more details: Implementing and Managing Workflows > Creating an Individual Workflow

Please remove the Future Dated Alternate Workflow configuration for the transaction to be successful. You can do so by doing the following:

  1. Go to Admin Center > Manage Organization, Pay and Job Structures
  2. Search for the workflow that is supposed to get triggered for Hire/Rehire
  3. Take Action > Make Correction
  4. Remove the Alternate Workflow value and make it blank/No Selection
  5. Save.

The Engineering Team are working on enhancing the error message. This KBA will be updated when we have more details on it. 


KI2311, b2311, service layer, Regular Error occurred: sf_class=com.successfactors.hris.dao.hibernate.EmpAddressDAOImpl, getAllFutureRecordsForFutureNotification, WorkflowServiceException, class java.lang.String cannot be cast to class java.lang.Long, java.lang.String and java.lang.Long are in module java.base of loader 'bootstrap', getFutureDatedAlternateWorkflow, INC6549274, CS2H2023, alternate workflow , KBA , LOD-SF-EC-HIR-RIE , Rehire Inactive Employee , Bug Filed


SAP SuccessFactors Employee Central 2311 ; SAP SuccessFactors HXM Core 2311