Who's Online
0 registered (), 1 Guest and 6 Spiders online.
Key: Admin, Global Mod, Mod
Recent Posts
Abseces in oracle hrms, super user: how to do I:
by tovia123
Today at 01:18 PM
Update EIT in SSHR
by Sahir
Yesterday at 03:45 PM
End of Year Legislation Patch for 11i
by delboy
Yesterday at 01:35 PM
Interfacing iRec and external sites
by DanC
09/02/12 11:42 PM
Capturing, Storing, & Paying Banked Overtime
by Paul
09/02/12 08:51 PM
Time and Labour & Oracle Projects
by Paul
09/02/12 07:34 PM
Search Engine Optimizers
by delboy
09/02/12 01:30 PM
Function for getting retropay-maintained balances
by CT
08/02/12 12:21 PM
Grade End Date
by Chris
03/02/12 10:46 AM
OLM Mandatory Enrolments
by bcooper
01/02/12 12:23 PM
Top Posters (30 Days)
CT 26
delboy 24
bcooper 14
Sahir 5
Gus 5
tovia123 5
Tim Bailey 3
SBi 3
christm 3
Simon_Mc 3
(Views)Popular Topics
Family Pack K issues thread 18240
CREATE_GRADE api returns:PLS-00306: wrong number o 13772
Still trying to locate... 12214
Creating hr jobs ORA-20001: HR_289477_JOB_GROUP_ID 10658
Viewing Output of another user 9137
HR_PF.K RUP4 8851
Review of my Release 12 laptop 8500
Adding a taskflow button to a form 7861
Enhanced Retro & Release 12 7689
Family Pack K 7127
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#1255 - 01/04/05 12:44 PM Data Pump and Valueset Validation Issues
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1080
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 01: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 11:26 AM Re: Data Pump and Valueset Validation Issues
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1080
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 02:34 PM Re: Data Pump and Valueset Validation Issues
bcooper Offline

Guru
*****

Registered: 11/03/05
Posts: 1095
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 03:10 PM Re: Data Pump and Valueset Validation Issues
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1080
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 03: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 04:27 PM Re: Data Pump and Valueset Validation Issues
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1080
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 06:42 AM Re: Data Pump and Valueset Validation Issues
bcooper Offline

Guru
*****

Registered: 11/03/05
Posts: 1095
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 08:14 AM Re: Data Pump and Valueset Validation Issues
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1080
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 11:25 AM 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
756 Members
48 Forums
1517 Topics
7287 Posts

Max Online: 63 @ 24/11/10 07:21 AM
Today's Birthdays
No Birthdays
Recent vacancies
Tea boy available 4 basic chores & some! services
by Simon_Mc
19/01/12 03:59 PM
Top Posters
bcooper 1095
CT 1080
delboy 500
Geoff Dixon 369
SBi 344
vkumar 223
kp_rapolu 213
cbrookes 197
Gavin Harris 160
Gus 132
February
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