Who's Online
1 registered (Chris Abraham), 2 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Recent Posts
P11d's
by Chris Abraham
0 seconds ago
Oracle eBsuiness HRMS Trusted Recon Query Help
by CT
Today at 02:24 PM
Concurrent Request - running slow
by CT
Today at 12:48 PM
Pension Auto Enrolment
by delboy
Today at 12:13 PM
Oracle eBsuiness HRMS Trusted Reconcilaition Help
by Mani
Today at 07:35 AM
Element to recover value in balance on leaving
by jkavia
Yesterday at 11:04 AM
Assignment EIT not displaying in Self Service
by CT
Yesterday at 06:45 AM
Vehicle Mileage Setup
by Chris Abraham
21/05/12 12:24 PM
In which table is external learning data stored
by DMC
21/05/12 08:45 AM
Oracle Payroll and Cash Management
by Gus
20/05/12 11:27 AM
Top Posters (30 Days)
CT 40
delboy 39
Vigneswar Battu 15
pat.woodall 10
Mani 6
Gus 4
bcooper 4
Ryan 3
Jan 3
DMC 3
(Views)Popular Topics
Family Pack K issues thread 20170
CREATE_GRADE api returns:PLS-00306: wrong number o 15200
Still trying to locate... 13855
Creating hr jobs ORA-20001: HR_289477_JOB_GROUP_ID 11907
Viewing Output of another user 10324
HR_PF.K RUP4 10298
Review of my Release 12 laptop 9747
Enhanced Retro & Release 12 9402
Adding a taskflow button to a form 9140
Family Pack K 7910
Topic Options
Rate This Topic
#7196 - 21/12/11 03:04 PM ota_delegate_booking_api Issue
MAL Offline
regular

Registered: 02/11/07
Posts: 25
Loc: Manchester
Hi,

I am trying to update the p_successful_attendance_flag in the ota_delegate_bookings table. I am using the apps.ota_delegate_booking_api.update_delegate_booking with the below script:

declare

l_ovn number := 1;
l_tfl_object_version_number number := null;
l_finance_line_id number := null;

begin

apps.ota_delegate_booking_api.update_delegate_booking
(p_validate =>true,
p_effective_date => trunc(sysdate),
p_booking_id => 1072572,
p_object_version_number => l_ovn,
p_successful_attendance_flag => 'Y',
p_tfl_object_version_number => l_tfl_object_version_number,
p_finance_line_id => l_finance_line_id
);

end;


When I run this I am getting the below error:

ORA-20001: The primary key specified is invalid

Cause: The primary key values specified are invalid and do not exist in the schema.

Action: Check the primary key values before attempting to carry out the operation again.
ORA-06512: at "APPS.OTA_DELEGATE_BOOKING_API", line 2723
ORA-06512: at line 9


I think this is around the p_tfl_object_version_number and p_finance_line_id parameters, I have checked ota_finance_lines and there are no rows in this table.

Can anyone suggest a way that I can use this API?

Many thanks

Martin

Top
#7197 - 21/12/11 03:18 PM Re: ota_delegate_booking_api Issue [Re: MAL]
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
Martin

It suggests to me that the row is not in the OTA_DELEGATE_BOOKINGS table that has that booking_id...

Messages regarding dodgy ovn's usually go on about "Invalid Object" or similar.

Just to humour me, what happens with this query:

SELECT *
FROM OTA_DELEGATE_BOOKINGS
WHERE BOOKING_ID = 1072572;

?

Edited to add: Having looked at the package, the fact that you have omitted the parameter p_pdate_finance_line means that the default of 'N' should not require any action with finance lines.


Edited by CT (21/12/11 03:25 PM)
Edit Reason: Afterthought
_________________________
L&K
CT

Remember: A dog is for life, not just for Christmas... unless you're in Korea

Top
#7198 - 22/12/11 07:44 AM Re: ota_delegate_booking_api Issue [Re: MAL]
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
Just seen on another forum that this is by no means a new, isolated problem... I wonder if it's a bug?

Anyway, you could find out more by tracing your process:

in your test prog, do this:

begin
hr_utility.trace_off;
hr_utility.trace_on();
hr_utility.set_trace_options('TRACE_DEST:DBMS_OUTPUT');

<call your code here>

hr_utility.trace_off;
end;

When you run it (in TOAD, at least) you should get some dbms_output lines with the path the process took - that might shed some more light on where it went wrong!
_________________________
L&K
CT

Remember: A dog is for life, not just for Christmas... unless you're in Korea

Top
#7199 - 22/12/11 09:40 AM Re: ota_delegate_booking_api Issue [Re: MAL]
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
Indeed, a known bug: 12647700
_________________________
L&K
CT

Remember: A dog is for life, not just for Christmas... unless you're in Korea

Top
#7200 - 22/12/11 11:08 AM Re: ota_delegate_booking_api Issue [Re: CT]
MAL Offline
regular

Registered: 02/11/07
Posts: 25
Loc: Manchester
Thanks CT,

I did think that with the omission of the p_update_finance_line it may not need the finace line information and default to 'N'. Especially when in the table there doesn't seem to be any data referencing the finace table.

I have attached my DBMS trace output, but there wasn't much there:

Entering: OTA_DELEGATE_BOOKING_API. update_delegate_booking 10
Entering: OTA_DELEGATE_BOOKING_BK2.UPDATE_DELEGATE_BOOKING_B 10
Leaving: OTA_DELEGATE_BOOKING_BK2.UPDATE_DELEGATE_BOOKING_B 20
Entering: ota_tdb_shd.lck 5
Leaving: OTA_DELEGATE_BOOKING_API. update_delegate_booking 90

Thank you for the bug information, I will get onto Oracle about this.

Many thanks for your help

Martin

Top
#7201 - 22/12/11 12:13 PM Re: ota_delegate_booking_api Issue [Re: MAL]
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
Yep, looks like the problem is in the ota_tdb_shd.lck procedure - this is where the api tries to set up its internal storage with the current state of the booking record prior to applying your required changes. The query is not finding the row, even though it should. Still, the bug fix should sort you out.
_________________________
L&K
CT

Remember: A dog is for life, not just for Christmas... unless you're in Korea

Top



Moderator:  bcooper, CT 
Forum Stats
792 Members
48 Forums
1584 Topics
7663 Posts

Max Online: 67 @ 14/04/12 05:38 PM
Today's Birthdays
No Birthdays
Recent vacancies
Top Posters
CT 1188
bcooper 1112
delboy 597
Geoff Dixon 369
SBi 356
vkumar 223
kp_rapolu 213
cbrookes 197
Gavin Harris 163
Gus 146
May
Su M Tu W Th F Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31