SAP Knowledge Base Article - Public

2559860 - HRIS Sync: Daily HRIS Sync Job Failure (IndexOutOfBoundsException) caused by Contingent Worker Data

Symptom

HRIS SYNC JOB failure caused by IndexOutOfBoundsException from SendNotificationMailForEmailTemplateImpl

 

MonitorJob.PNG

Environment

  • Employee Central - HRIS SYNC
  • Employee Central - External & Contingent Workforce enabled

Reproducing the Issue

  1. Go to Provisioning > Monitor Jobs
  2. Use the "Job Type" drop-down menu to filter on the second "HRIS Sync" job in the list

HRISSync_2nd.jpg

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:

  1. Go to Provisioning > Company Settings
  2. Disable the Feature : Enable Contingent Workers
  3. Go to Provisioning > Manage Scheduled Jobs > Run the Daily HRIS SYNC job manually
  4. Result: Daily HRIS SYNC job ran Successfully
  5. Go to Provisioning > Company Settings
  6. Enable Feature: Enable Contingent Workers
  7. Go to Provisioning > Manage Scheduled Jobs > Run the Daily HRIS SYNC job manually
  8. Result: Daily HRIS SYNC job ran Successfully

1Worker.png

 

If you do not have access to Provisioning, please open a Support Incident 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

Product

SAP SuccessFactors Employee Central all versions