After Applying Latest Timecard , Saving Timecard Errors "java.lang.StringIndexOutOfBoundsException: String index out of range: -1"

(Doc ID 2237477.1)

Last updated on APRIL 17, 2018

Applies to:

Oracle Time and Labor - Version 12.1 HRMS RUP9 and later
Information in this document applies to any platform.


On : 12.1 HRMS RUP9 version, Seeded Timecard Layouts

When attempting to save timecard after apply seeded latest timecard template with projects or cost centers

## Detail 0 ##
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(
at oracle.apps.hxc.selfservice.timecard.Timecard.getSetofEmptyRows(
at oracle.apps.hxc.selfservice.timecard.Timecard.areAllAttributesAttached(
at oracle.apps.hxc.selfservice.timecard.webui.TimecardUpdate.matchBlocksAndAttributes(

The issue can be reproduced at will with the following steps:
1. Timecard period = 16-31 OCT 2016
Open timecard and apply latest timecard and save it:
Click Apply Template
This is new timecard from last timecard as shown below:
Save timecard – Click “Save “ button as shown above
This is the error page We get and force us to logout:


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms