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