Who's Online
0 registered (), 2 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Recent Posts
In which table is external learning data stored
by DMC
Yesterday at 03:43 PM
Pension Auto Enrolment
by CT
Yesterday at 09:46 AM
Vehicle Mileage Setup
by Shyam
Yesterday at 06:45 AM
11.5.10 "Extended Support" extended til..... when?
by Vigneswar Battu
17/05/12 10:59 AM
Hacking element definitions
by CT
15/05/12 08:42 AM
GB EOY reports
by Vigneswar Battu
09/05/12 02:07 PM
Oracle Payroll and Cash Management
by Vigneswar Battu
08/05/12 03:08 PM
BG setup/changes - brain dump
by Ryan
05/05/12 07:20 PM
Fusion Collateral
by CT
04/05/12 11:09 AM
BEE - ordering Batch lines
by Vigneswar Battu
03/05/12 04:22 PM
Top Posters (30 Days)
delboy 37
CT 35
Vigneswar Battu 15
pat.woodall 9
bcooper 4
Mani 3
7Giri 3
Gus 3
Ryan 3
SBi 2
(Views)Popular Topics
Family Pack K issues thread 20107
CREATE_GRADE api returns:PLS-00306: wrong number o 15174
Still trying to locate... 13817
Creating hr jobs ORA-20001: HR_289477_JOB_GROUP_ID 11848
Viewing Output of another user 10266
HR_PF.K RUP4 10240
Review of my Release 12 laptop 9703
Enhanced Retro & Release 12 9375
Adding a taskflow button to a form 9111
Family Pack K 7882
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#1255 - 01/04/05 01:44 PM Data Pump and Valueset Validation Issues
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1182
Loc: Bath
Baz hinted at this in another thread but I thought I would bring it out into a thread of its own. . .We have a situation where we desire to use Data Pump to load element entries. All fine and dandy except: these days one has the option to configure an input value to be validated via a Valueset. Not only that but said valueset may be of the table-based persuasion. This is actually very bad news for us here at the well-known paymasters of our nation's armed services. . .Because these wretched valuesets contain references to the FND_SESSIONS table and in a couple of instances also refer to $PROFILES$.PER_BUSINESS_GROUP_ID the Data Pump process fails as: .1. It can't set itself a row in FND_SESSIONS .2. It can't interpret the context of $PROFILES$ . .The standard 'workaround' for these issues would be to set something up in an API-level before/after user hook that sorts out the FND_SESSIONS row and the apps_initialise process. For us this is a potentially very tortuous process to set up (we'd have to do it for every API that deals with valuesets). Also the additional run-time burden is likely to be significant as it will run for each batch line processed. . .So after all that here's my question: .Can anyone tell me if they've been able to 'persuade' the DP engine (or even the slave process) to take on an fnd_sessions row and to do an apps_initialise? If so could I get a wee sneaky-beaky at what you added? . .Cheers mateys . .CT
_________________________
L&K
CT

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

Top
#1256 - 01/04/05 02:34 PM Re: Data Pump and Valueset Validation Issues
jhatten Offline
hacker

Registered: 15/03/05
Posts: 95
Loc: London
CT . .Baz is your man - I think I'm right in saying he spent all his time at a certain national airline hacking Data Pump to bits and worked out how to register custom api's e.g. . .INSERT INTO hr_api_modules . (api_module_id . api_module_type . module_name . data_within_business_group . legislation_code . module_package . last_update_date . last_updated_by . last_update_login . created_by . creation_date) . VALUES . (hr_api_modules_s.nextval . 'AI' . 'CREATE_OSE' . 'Y' . null . 'XXCONHRP_OSE_API_PKG' . sysdate . -1 . -1 . -1 . sysdate) ./ . .execute hr_pump_meta_mapper.generate('xxconhrp_ose_api_pkg' 'create_ose'); . .So could you create your own dp api that is simply a wrapper that will do the insert in fnd_sessions call apps_initialise and then the standard api? . .Failing that I think the way dp works out how to validate stuff is controlled by rows in hr_pump_module_parameters. . .HTH . .Jay

Top
#1257 - 05/04/05 12:26 PM Re: Data Pump and Valueset Validation Issues
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1182
Loc: Bath
OK we have shed a little light on what exactly is going on here (NB all investigations have been undertaken on an 11.5.10 instance)... . .It appears that where there is validation of data against a flexfield structure (eg UPDATE_EMP_ASG_CRITERIA) the api does the decent thing and calls HR_KFLEX_UTILITY.set_Session and HR_KFLEX_UTILITY.set_profile prior to calling the upd_or_sel_kflex_comb - so there is every reason to expect that any valuesets used by flexfields will be properly executed during the relevant api call. . .HOWEVER - In the validation of element entry values the valueset validation is only being done in the context of an input value with not a sniff of a flexfield structure anywhere. .So even though the validation routine PAY_INPUT_VALUES_PKG (called from HR_ENTRY_API) contains a piece of code that properly resolves any references to $PROFILES$ because it doesn't set a session date it cannot properly resolve table-based validations involving joins with FND_SESSIONS. . .Now comes the best bit - you'll know from bitter experience that the historical response in these situations was to 'use a user-hook'? Well guess which one api doesn't have a user-hook capability! . .Hurrah!
_________________________
L&K
CT

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

Top
#1258 - 05/04/05 03:34 PM Re: Data Pump and Valueset Validation Issues
bcooper Offline

Guru
*****

Registered: 11/03/05
Posts: 1112
Loc: Earth, Europe, England, here
Word from support (when asked when we encountered the same issue) is that you should not be making reference to $PROFILE$ stuff in valuesets. . .However i do recall a rather wayward support representative hinting that we could simply 'disable' the valueset whilst loading and then re-enabling it afterwards PROVIDING we could guarantee that the data was sound as a pound.
_________________________
HCM Aces is for sale! Please contact me if you are interested.
Also my random musings courtesy of Twitter

Top
#1259 - 05/04/05 04:10 PM Re: Data Pump and Valueset Validation Issues
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1182
Loc: Bath
We've done a quick test with using the direct api call (py_element_entry_api.create_element_entry) and lo and behold we get the same problem (HR_34927_ELE_ENTRY_VSET_INVLD). However when one quietly creates an FND_SESSIONS row beforehand all is well! Interestingly the valueset in question contained references to $PROFILES$ as well as FND_SESSIONS and I didn't need to do anything explicit to monkey around with $PROFILES$. Ergo it must be handling it correctly - in fact if you look at the package function PAY_INPUT_VALUES_PKG.decode_vset_meaning you'll see for yourself that it disects the 'where' clause looking for instances of $PROFILES$ to replace with kosher values! . .So we're all TAR'd up now watch this space...
_________________________
L&K
CT

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

Top
#1260 - 05/04/05 04:38 PM Re: Data Pump and Valueset Validation Issues
jhatten Offline
hacker

Registered: 15/03/05
Posts: 95
Loc: London
You didn't like my suggested hack then? I was educated at the Copper School of Hack don't you know. . .Doesn't this problem exist in other api's though - I have vague memories of past conversions were the standard practice was turn off any table validation values (person ass ppg dff) - or am I just going mad with SOY EOY????????

Top
#1261 - 05/04/05 05:27 PM Re: Data Pump and Valueset Validation Issues
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1182
Loc: Bath
[quote:b4e86e5e40]You didn't like my suggested hack then? I was educated at the Copper School of Hack don't you know. [/quote:b4e86e5e40] .This I know... :roll: . .I've not looked in intimate detail at each and every API that looks at flexfields but I did look at the UPDATE_EMP_ASG_CRITERIA wherein one finds a liberal sprinkling of references to HR_KFLEX_UTILITY.set_session .set_profile etc. for the various flexfields it deals with. . .What I'm finding now though is that there seems to be no equivalent in the descriptive flex package HR_DFLEX_UTILITY!!! Oh gawd....
_________________________
L&K
CT

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

Top
#1262 - 06/04/05 07:42 AM Re: Data Pump and Valueset Validation Issues
bcooper Offline

Guru
*****

Registered: 11/03/05
Posts: 1112
Loc: Earth, Europe, England, here
You could always do what we had to do in the past before they (HR Dev) sorted the Flex validation...and that is comment out the dflex_utility code so that it does nothing (other than return). Provided you can validate the values before loading them (which could potentially be quicker and safer) it makes the loading job a lot easier.
_________________________
HCM Aces is for sale! Please contact me if you are interested.
Also my random musings courtesy of Twitter

Top
#1263 - 06/04/05 09:14 AM Re: Data Pump and Valueset Validation Issues
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1182
Loc: Bath
I rather fancy that were I to suggest that at this particular site I'd be lined up to partake in the next bayonet practice (receiving rather than dishing out). But I'll bear it in mind - maybe I'll con someone else into making the suggestion...
_________________________
L&K
CT

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

Top
#1264 - 06/04/05 12:25 PM Re: Data Pump and Valueset Validation Issues
cbrookes Offline
nothin' better to do

Registered: 14/03/05
Posts: 197
Loc: Detained at HM pleasure
Wouldn't give them much bayonet practice aiming at something as [s:4db0be105a]big[/s:4db0be105a] slim as that. . .<Post amended by moderator to replace wholly inaccurate adjective with something a lot nearer the truth>

Top
Page 1 of 2 1 2 >



Moderator:  bcooper, CT 
Forum Stats
790 Members
48 Forums
1580 Topics
7641 Posts

Max Online: 67 @ 14/04/12 05:38 PM
Today's Birthdays
No Birthdays
Recent vacancies
Top Posters
CT 1182
bcooper 1112
delboy 594
Geoff Dixon 369
SBi 356
vkumar 223
kp_rapolu 213
cbrookes 197
Gavin Harris 163
Gus 145
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