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