Symptom
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.
Environment
- SAP SuccessFactors Employee Central
- Rehire
- Centralized Services
Reproducing the Issue
- 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
- Go to Rehire Inactive Employee
- Search for an inactive user to rehire
- Select “Rehire Employee”
- Select Event Reason
- Fill all the mandatory information
- Click Submit
- An application error is shown.
Resolution
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:
- Go to Admin Center > Manage Organization, Pay and Job Structures
- Search for the workflow that is supposed to get triggered for Hire/Rehire
- Take Action > Make Correction
- Remove the Alternate Workflow value and make it blank/No Selection
- Save.
The Engineering Team are working on enhancing the error message. This KBA will be updated when we have more details on it.
Keywords
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