My Oracle Support Banner

HXC_TIMESTORE_DEPOSIT.create_time_entry errors with ORA-06502 if the period is farther Back Than The start date of Employment. (Doc ID 1311369.1)

Last updated on AUGUST 14, 2020

Applies to:

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


Creating a timecard using the HXC_TIMESTORE_DEPOSIT.Create_Time_Entry API for period that is father back than the start date of employment

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;


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

Expected more clear error message




To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.