HXC_TIMESTORE_DEPOSIT.create_time_entry errors with ORA-06502 (Doc ID 1311369.1)

Last updated on OCTOBER 31, 2016

Applies to:

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

Symptoms

Creating a timecard using the HXC_TIMESTORE_DEPOSIT.Create_Time_Entry API causes the following error...

ORA-06502: PL/SQL: numeric or value error


-- Steps To Reproduce:
The issue can be reproduced at will with the following steps:

1. Find the earliest EFFECTIVE_START_DATE for a Person using the following select.

select min(EFFECTIVE_START_DATE) from per_all_people_f where person_id = 20419;

01-JAN-2006

2. Attempt to create a timecard using the API for that person on the day before the person's earliest EFFECTIVE_START_DATE.

HXC_TIMESTORE_DEPOSIT.create_time_entry ( p_measure => 1
, p_day => fnd_date.canonical_to_date('2005/12/31 01:00:00')
, p_resource_id => 21968
, p_resource_type => 'PERSON'
, p_comment_text => null
, p_deposit_process => 'OTL Deposit Process'
, p_app_blocks => l_app_blocks
, p_app_attributes => l_app_attributes
, p_time_building_block_id => l_bb_id
);

3. Get the following error.

ORA-06502: PL/SQL: numeric or value error

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