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
#6765 - 12/07/11 02:19 AM Performance Review API
Gavin Harris Offline
nothin' better to do
*****

Registered: 12/02/08
Posts: 163
Loc: Down under...
Hi Guys,

Quick question as have been pulling my Hair out about this one!!

I have written a Procedure to utilise the API: hr_perf_review_api.create_perf_review.

This works great when I do not try to add in data to the DFF. I have enabled Attribute2 to hold some comments. However, everytime I call my Proc with text to be stored into Attribute2, I get the error:

ORA-20001: A value has been provided for a non-enabled or non-existent descriptive flexfield segment.
ORA-06512: at "APPS.HR_PERF_REVIEW_API", line 526
ORA-06512: at "APPS.VBAP_PERF_REVIEW_UPLOAD", line 109
ORA-06512: at line 2

I know this is probably something VERY simple that I have missed, but any hints would be great!!!

Here is the API Call that I am using:

hr_perf_review_api.create_perf_review
(
p_validate => FALSE,
p_performance_review_id => ln_performance_review_id,
p_person_id => ln_person_id,
p_performance_rating => p_rating,
p_review_date => p_effective_date,
p_attribute_category => 'Global Data Elements',
p_attribute2 => p_comments,
p_object_version_number => ln_object_version_num,
p_next_review_date_warning => lb_date_warning
);

Thank you for any help!!
Gav
_________________________
Gavin Harris
Sleeping on it...

Link to me on http://www.linkedin.com/in/gavinharris

Top
#6768 - 12/07/11 09:36 AM Re: Performance Review API [Re: Gavin Harris]
CT Offline
Guru
***

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

Try making p_attribute_category => NULL...
_________________________
L&K
CT

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

Top
#6769 - 12/07/11 10:10 AM Re: Performance Review API [Re: Gavin Harris]
Gavin Harris Offline
nothin' better to do
*****

Registered: 12/02/08
Posts: 163
Loc: Down under...
Good shout... Will test it again in the morning. Sure it didn't work out previously, but well worth a try!

Cheers Clive!
_________________________
Gavin Harris
Sleeping on it...

Link to me on http://www.linkedin.com/in/gavinharris

Top
#6770 - 12/07/11 10:49 AM Re: Performance Review API [Re: Gavin Harris]
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
Gav
That might be a red herring, as I have just tried a test on a (different) API here with and without p_attribute_category => 'Global Data Elements' and they both work.

So I would therefore ask the following :
1. Is attribute2 available to Global Data Elements context? ie not used on some specific context
2. Is the DFF compiled etc
3. Is the segment enabled?
4. Can you enter the same info via the screen?
(with due apologies if you have already checked all this)
_________________________
L&K
CT

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

Top
#6771 - 12/07/11 11:41 PM Re: Performance Review API [Re: Gavin Harris]
Gavin Harris Offline
nothin' better to do
*****

Registered: 12/02/08
Posts: 163
Loc: Down under...
Hay Clive,

Just tried again this AM and bag all working... Hmm. I wonder if (and this is not too big a supprise!) I was executing my code in Dev1 when Logged into Dev2...

I said it would be simple!

Thank you for the help, and sorry for being an idiot! ;o)

Gavin
_________________________
Gavin Harris
Sleeping on it...

Link to me on http://www.linkedin.com/in/gavinharris

Top
#6772 - 13/07/11 12:35 PM Re: Performance Review API [Re: Gavin Harris]
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
No apologies needed mate, so long as you're off and running now. I think we need more idiots on here anyway : what you did there is not so bad, we've all done that - I once waited 20 mins for a SQL query to do something, only to realised I'd copied it in a Notepad window by mistake! blush Now that is the hallmark of a card-carrying idiot!
_________________________
L&K
CT

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

Top



Moderator:  Administrator, Geoff Dixon 
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