Who's Online
1 registered (spiro), 3 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Recent Posts
Pension Schemes Setup
by kp_rapolu
Today at 03:09 PM
RBAC and Security Profiles
by CT
Today at 02:05 PM
Q: multiple assignments absence processing
by CT
Today at 12:34 PM
How managers initiates SSHR request of employees
by Saqib Rahat
Today at 09:00 AM
French Localizations
by bcooper
Yesterday at 07:11 AM
Setting up budgets in HRMS
by MarinaH
Yesterday at 06:06 AM
Attach documents in the SIT/EIT
by MarinaH
Yesterday at 03:09 AM
Talent management function in self service menu
by EBS_USER
06/09/10 11:23 PM
Basic Setup for CORE HR without Payroll
by EBS_USER
06/09/10 11:17 PM
FYI: P60s to be available in Self Service
by kp_rapolu
01/09/10 03:42 PM
Top Posters (30 Days)
SBi 31
CT 16
bcooper 15
Saqib Rahat 11
PeterP 10
EBS_USER 9
kp_rapolu 8
Geoff Dixon 8
delboy 5
MarinaH 5
(Views)Popular Topics
Family Pack K issues thread 8849
CREATE_GRADE api returns:PLS-00306: wrong number o 6175
Still trying to locate... 4660
Creating hr jobs ORA-20001: HR_289477_JOB_GROUP_ID 4444
Review of my Release 12 laptop 4226
Log-on problems for existing users 3538
Viewing Output of another user 3261
Family Pack K 3128
October UK-OUG? 3090
HR_PF.K RUP4 2908
Topic Options
Rate This Topic
#4562 - 12/06/09 10:33 AM ORA-01086: savepoint 'CREATE_EMPLOYEE'
whi5tler Offline
lurker

Registered: 11/02/08
Posts: 6
Loc: Berkshire, UK
Morning Aces,

I was wondering if anybody could help. We are getting the error below on our DEV environment when we run the API HR_EMPLOYEE_API.CREATE_EMPLOYEE with P_VALIDATE set to TRUE. This does not produce the same error on production and if we run it with P_VALIDATE set to FALSE the API completes successful. There are no savepoints in the calling code just the API. Thanks in advance.

ORA-01086: savepoint 'CREATE_EMPLOYEE' never established
ORA-06512: at "APPS.HR_EMPLOYEE_API", line 989
ORA-06510: PL/SQL: unhandled user-defined exception

RDBMS : 9.2.0.8.0
Oracle Applications : 11.5.10.2

Top
#4564 - 12/06/09 02:33 PM Re: ORA-01086: savepoint 'CREATE_EMPLOYEE' [Re: whi5tler]
CT Offline
veteran
***

Registered: 11/03/05
Posts: 820
Loc: Back at Fort Apache, Gosport!
Hi Mr whi5tler, and a warm welcome to the forum.

Can I venture to ask what version of the api package you have in each case?

to find this (and one assumes you have apps access to the relevant instances - or know of a tame house-trained DBA who does) you need to do:

SELECT type, text
FROM user_source
WHERE name = 'HR_EMPLOYEE_API'
--AND type = 'PACKAGE BODY'
AND text like '%$Header%';

It looks like you have some subtle version differences across the two instances.

I have seen this in 'older' versions of the APIs where the bit of code that sets a savepoint gets bypassed for some reason, but at the point where the api decides it's in 'validate only' mode, it forces an exception. Within the exception handler, it does a 'rollback to <savepoint>' - which fails because the savepoint was not set in the first place. I must confess though I am surprised to see this surface again.

Anyway, hope this helps.
_________________________
L&K
CT

Top
#4565 - 12/06/09 02:42 PM Re: ORA-01086: savepoint 'CREATE_EMPLOYEE' [Re: CT]
whi5tler Offline
lurker

Registered: 11/02/08
Posts: 6
Loc: Berkshire, UK
Hi Clive,

Not sure you remember me but I'm Stacey the Welsh guy who used to sit with you and Bob Braund on the JPA project in Gosport.

Thanks for your help, here are the details you requested:

From DEV environment:
PACKAGE "/* $Header: peempapi.pkh 115.30 2006/03/03 05:38:37 lsilveir noship $ */
PACKAGE BODY "/* $Header: peempapi.pkb 115.63 2007/11/05 14:51:38 sidsaxen ship $ */

From PROD environment:
PACKAGE "/* $Header: peempapi.pkh 115.30 2006/03/03 05:38:37 lsilveir noship $ */
PACKAGE BODY "/* $Header: peempapi.pkb 115.63 2007/11/05 14:51:38 sidsaxen ship $ */

Both are the same frown Any other ideas?

Thanks again for your help.

Top
#4566 - 12/06/09 02:45 PM Re: ORA-01086: savepoint 'CREATE_EMPLOYEE' [Re: whi5tler]
whi5tler Offline
lurker

Registered: 11/02/08
Posts: 6
Loc: Berkshire, UK
The code in error:

exception
when hr_api.validate_enabled then
--
-- As the Validate_Enabled exception has been raised
-- we must rollback to the savepoint
--
ROLLBACK TO create_employee;

Top
#4569 - 12/06/09 03:41 PM Re: ORA-01086: savepoint 'CREATE_EMPLOYEE' [Re: whi5tler]
CT Offline
veteran
***

Registered: 11/03/05
Posts: 820
Loc: Back at Fort Apache, Gosport!
Oh hello Stacey, how's it going?

OK, that's blown my first theory right out of the water... so...

Is it the same data that's being loaded to each instance? I am wondering if there is some minor difference therein which might cause the code to branch slightly differently, and perhaps miss the 'set savepoint' bit in one case and not t'other. Out of interest, can you identify the relevant lines of code in the create_employee api whereby it decides whether or not to set the savepoint in the first place? As an aside, any particular reason you are using create_employee, and not create_gb_employee? Long shot though it is, it might be worth having a crack with that api to see if the problem goes away.

One other trick you could pull would be to put a pipe trace on the code that's calling the api (on the instance that's giving the problem of course), and then watch the story unfold from another session. If you do that, make sure you restrict it to processing one or two rows!
_________________________
L&K
CT

Top
#4572 - 15/06/09 08:16 AM Re: ORA-01086: savepoint 'CREATE_EMPLOYEE' [Re: CT]
Geoff Dixon Offline
sitting tennant
*****

Registered: 14/03/05
Posts: 354
Loc: Sussex by the Sea
The employees are in Ireland, Clive!
_________________________
Geoff
Offering opinions since 1962

Top
#4574 - 15/06/09 10:15 AM Re: ORA-01086: savepoint 'CREATE_EMPLOYEE' [Re: Geoff Dixon]
whi5tler Offline
lurker

Registered: 11/02/08
Posts: 6
Loc: Berkshire, UK
Yeah all good thanks Clive, how are you?

As Geoff said this is for Ireland. I will see if we can do what you have said.

Do you think this might be something to do with space issues?

Code below for the savepoint issue:

begin
if g_debug then
l_proc := g_package||'create_employee';
hr_utility.set_location('Entering:'|| l_proc, 10);
end if;
--
-- Issue a savepoint.
--
savepoint create_employee;
--
--
-- Truncate the time portion from all date parameters
-- which are passed in.
--
l_hire_date := trunc(p_hire_date);
l_date_employee_data_verified := trunc(p_date_employee_data_verified);
l_date_of_birth := trunc(p_date_of_birth);
l_date_of_death := trunc(p_date_of_death);
l_receipt_of_death_cert_date := trunc(p_receipt_of_death_cert_date);
l_dpdnt_adoption_date := trunc(p_dpdnt_adoption_date);
l_original_date_of_hire := trunc(p_original_date_of_hire);
l_adjusted_svc_date := trunc(p_adjusted_svc_date);
--
begin
--
-- Start of API User Hook for the before hook of create_employee
--
hr_employee_bk1.create_employee_b
(p_hire_date => l_hire_date

Top
#4575 - 15/06/09 02:49 PM Re: ORA-01086: savepoint 'CREATE_EMPLOYEE' [Re: whi5tler]
CT Offline
veteran
***

Registered: 11/03/05
Posts: 820
Loc: Back at Fort Apache, Gosport!
I can't for the life of me think why a space issue would cause that specific problem, but it's always worth checking out. I have had some unpleasant experiences in the past from trying to initialise balances when there were space problems on some indexes.

It's not immediately obvious from the code that something bad can happen. I have an R12 instance to hand, and the API there looks fairly well behaved. However, what I can't vouch for is what if anything is happening inside your user hooks? Do you have them enabled, and if so is there anything like a rollback to the same savepoint going on in there, or a commit, or a rollback even.

If it's not that, then the only course of action open to you it to set up a trace session as mentioned above.
_________________________
L&K
CT

Top
#4578 - 16/06/09 09:51 AM Re: ORA-01086: savepoint 'CREATE_EMPLOYEE' [Re: CT]
whi5tler Offline
lurker

Registered: 11/02/08
Posts: 6
Loc: Berkshire, UK
We're running a trace today. Hopefully this will help.

Thanks for your time Clive.

Top
#4656 - 15/07/09 09:24 AM Re: ORA-01086: savepoint 'CREATE_EMPLOYEE' [Re: whi5tler]
CT Offline
veteran
***

Registered: 11/03/05
Posts: 820
Loc: Back at Fort Apache, Gosport!
That trace is taking a heck of a time to run! sleep

Seriously, did you get to find out what was happening in the procedure?
_________________________
L&K
CT

Top


Moderator:  bcooper, CT 
Oracle R12.1.1 on your existing computer
Get up and running with Oracle on your existing computer in 5 minutes

Get up and running with Oracle on your existing computer in 5 minutes!

Alard Consulting Ltd are pleased to offer Oracle R12.1.1 on your existing computer.

Connect to Oracle R12 from your computer to do client demonstrations, your own development work, or test functional setup on a Vision environment without having to install and maintain Oracle.

Backup your work before making changes in case things go wrong. Just copy the files to a new directory before making the changes. If it doesn't work, copy the files back again, all from Windows. No other skills needed.

As everything is contained on a single external hard drive, you can take it with you to use wherever you need it.

For each sale from HCMAces a portion of the price will go to the running costs of this forum.

For more information see www.alard.net/products.html.

Forum Stats
494 Members
48 Forums
1213 Topics
5734 Posts

Max Online: 51 @ 12/08/10 02:30 AM
Today's Birthdays
No Birthdays
Recent vacancies
Top Posters
bcooper 945
CT 820
Geoff Dixon 354
SBi 291
delboy 291
vkumar 223
kp_rapolu 211
cbrookes 197
Gavin Harris 111
jmoyano 96
September
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