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

Last updated on FEBRUARY 24, 2017

Applies to:

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

Symptoms

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

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



STEPS
-----------------------
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:


Cause

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