Symptom
Issue can appear in any of the below ways:
- On System UI - Time Off ESS UI crashes, an error message like “Error occurred while trying to invoke the method com.successfactors.absence.bean.holiday.Holiday. getHolidayCode()” of a null object loaded from local variable ‘holiday’ is displayed.
- On Mobile App - The user is able to view calendar in Time Off Absence Calendar in SF mobile app but holidays/weekly off are not highlighted by any icon or color.
Environment
- SAP SuccessFactors HXM Core
- Employee Central
- Time Off - Mobile
- LOD-SF-EC-TIM-MOB
Reproducing the Issue
Error will occur when navigating as follows:
- On System UI- Navigate to “Time Off” e.g. via People Profile or Action Search “View My Time Off”
- On Mobile App- Start Mobile Application > Navigate to Absence calendar from 'Time off' tab
Cause
This issue occurs if a Holiday is set to “Inactive” in “Manage Data” despite the Holiday still being referenced in an active Holiday Calendar.
Note: Since release b2105 there is a validation in place to prevent this happening. In Manage Data, when saving the system now checks if a Holiday is still in used. If yes, it can’t be set to status inactive.
However, this kind of invalid configuration could still be present in the system if no cleanup has been done, hence causing issues.
Resolution
Check the assigned Holidays in used in Holiday Calendar
- Remove inactive Holidays or
- set the Holiday back to active again to overcome the error.
Keywords
Holiday Calendar error, Holiday eror, Time Off not reflecting in Mobile, Time Off error, getHolidayCode() , KBA , LOD-SF-EC-TIM-MOB , Time Mobile , Problem