Symptom
HRIS SYNC JOB failure caused by IndexOutOfBoundsException from SendNotificationMailForEmailTemplateImpl
Environment
- Employee Central - HRIS SYNC
- Employee Central - External & Contingent Workforce enabled
Reproducing the Issue
- Go to Provisioning > Monitor Jobs
- Use the "Job Type" drop-down menu to filter on the second "HRIS Sync" job in the list
Example:
Job Type: HRIS SYNC
Server address: Job Server (Worker Id:sc2bs2job99t-123456789)
Job Detail:
Full exception:com.successfactors.jobscheduler.ScheduledJobExecutionException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at com.successfactors.hris.service.scheduledjob.hrissync.HrisSyncJob.executeJob(HrisSyncJob.java:607) at com.successfactors.jobscheduler.jobimpl.SimpleJob.execute(SimpleJob.java:399) at sun.reflect.GeneratedMethodAccessor1240.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.successfactors.perflog.PerfLogProxy.invoke(PerfLogProxy.java:137) at com.sun.proxy.$Proxy344.execute(Unknown Source) at com.successfactors.schedulerservice.JobExecutionProxy.execute(JobExecutionProxy.java:232) at com.successfactors.schedulerservice.workermgmt.WorkerThread$ExecuteJob.execute(WorkerThread.java:219) at com.successfactors.schedulerservice.workermgmt.WorkerThread$ExecuteJob.access$2(WorkerThread.java:215) at com.successfactors.schedulerservice.workermgmt.WorkerThread.run(WorkerThread.java:83) Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:635) at java.util.ArrayList.get(ArrayList.java:411) at com.successfactors.employment.service.contingentworkforce.impl.SendNotificationMailForEmailTemplateImpl.getGORecord(SendNotificationMailForEmailTemplateImpl.java:273) at com.successfactors.employment.service.contingentworkforce.impl.SendNotificationMailForEmailTemplateImpl.populateRecipientList(SendNotificationMailForEmailTemplateImpl.java:224) at com.successfactors.employment.service.contingentworkforce.impl.SendNotificationMailForEmailTemplateImpl.execute(SendNotificationMailForEmailTemplateImpl.java:170) at
Cause
The issue is caused by IndexOutOfBoundsException from SendNotificationMailForEmailTemplateImpl. Please note that Engineering are investigating the cause via ECT-85559. But, the below Resolution permenantly resolves the problem.
Resolution
To resolve this issue, please follow these steps:
- Go to Provisioning > Company Settings
- Disable the Feature : Enable Contingent Workers
- Go to Provisioning > Manage Scheduled Jobs > Run the Daily HRIS SYNC job manually
- Result: Daily HRIS SYNC job ran Successfully
- Go to Provisioning > Company Settings
- Enable Feature: Enable Contingent Workers
- Go to Provisioning > Manage Scheduled Jobs > Run the Daily HRIS SYNC job manually
- Result: Daily HRIS SYNC job ran Successfully
If you do not have access to Provisioning, please open a Support case is SAP Cloud Product Support.
See Also
- 2080730 - Employee Central: HRIS Sync - Troubleshooting Guide
Keywords
ECT-85559, HRIS SYNC, Contingent Workers, contingent workforce, SendNotificationMailForEmailTemplateImpl.getGORecord, IndexOutOfBoundsException , KBA , LOD-SF-EC-HRS , HRIS Sync , LOD-SF-EC , Employee Central , LOD-SF-EC-CWF , Contingent Workforce , Problem