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
#714 - 15/07/05 10:25 AM session_date problem within formula executed from pl/sql?
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
OK so we're validating element entries migration data according to the input value rules and specifically we're trying to validate the inputs on a Working Tax Credit entry. . .Within this element definition are 3 dates that are validated via seeded formulas. These formulas do similar things but common to them both is a comparison of the input date with the value of the DB item 'SESSION_DATE'. From looking at the DB item definition it is doing what it says on the tin - get effective date from fnd_sessions where session_id = USERENV('SESSIONID'). No surprises there. . .So I figured that provided I engineer a row in fnd_sessions prior to doing the call to the formula execution routine I'd be sorted. But no! Even with the correct session date in place in fnd_Sessions data which should be valid is reported as invalid. . .BTW the formula execution routine does all the ff_init setting context values etc . .So if anyone is still reading at this point who still has the will to live what gives with this? . .L+K .CT
_________________________
L&K
CT

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

Top
#715 - 15/07/05 11:15 AM Re: session_date problem within formula executed from pl/sql?
bcooper Offline

Guru
*****

Registered: 11/03/05
Posts: 1112
Loc: Earth, Europe, England, here
different session_ids ?
_________________________
HCM Aces is for sale! Please contact me if you are interested.
Also my random musings courtesy of Twitter

Top
#716 - 15/07/05 11:46 AM Re: session_date problem within formula executed from pl/sql?
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
Nope. Next... . .OK seriously no I don't think so the set_session_date and the call to the formula are all happening in the same pl/sql block. . .EDIT: BTW before anyone else asks the formulas are both 'verified' (ie compiled).
_________________________
L&K
CT

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

Top
#717 - 18/07/05 07:29 AM Re: session_date problem within formula executed from pl/sql?
bcooper Offline

Guru
*****

Registered: 11/03/05
Posts: 1112
Loc: Earth, Europe, England, here
okay have you examined the ROUTE of the database item? Is it as you expect it to be?
_________________________
HCM Aces is for sale! Please contact me if you are interested.
Also my random musings courtesy of Twitter

Top
#718 - 18/07/05 08:27 AM Re: session_date problem within formula executed from pl/sql?
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
I refer the honourable member for Hereford to my opening remarks in this thread... OK yes and yes!
_________________________
L&K
CT

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

Top
#719 - 18/07/05 10:25 AM Re: session_date problem within formula executed from pl/sql?
bcooper Offline

Guru
*****

Registered: 11/03/05
Posts: 1112
Loc: Earth, Europe, England, here
I would therefore suggest to the (Dis)Honourable Member for Hampshire Central that his session ID's must be different then.
_________________________
HCM Aces is for sale! Please contact me if you are interested.
Also my random musings courtesy of Twitter

Top
#720 - 18/07/05 12:56 PM Re: session_date problem within formula executed from pl/sql?
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
I may be dishonourable but at least I'm not a................................... git. . .What I am though is a dough-head. It appears that 2 obstacles to success were present - the first was the somewhat questionnable strategy of holding 'date' entry values as YYYYMMDD - courtesy of Neill 'Yee Hahhhhh' Atkins :lol: . Once I'd applied the required DD-MON-YYYY format conversion to the input value that allowed me then to see the second real error - that the formula refers to the database item EMP_TERM_DATE. This is fine apart from the fact that during the pre-loading validation of the data the employee record doesn't exist and therefore the formula cannot find the row to establish the termination date :evil: . .So what I now have to do is work out if a formula uses any database item that has a context that I can't supply e.g. assignment_id and if so don't bother calling it.... so fairly straightforward then... cry
_________________________
L&K
CT

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

Top
#721 - 19/07/05 06:43 AM Re: session_date problem within formula executed from pl/sql?
bcooper Offline

Guru
*****

Registered: 11/03/05
Posts: 1112
Loc: Earth, Europe, England, here
Too much sea air. If I were you i'd move out into the country. The smell of manure in the morning does wonders for clearing the mind :mrgreen:
_________________________
HCM Aces is for sale! Please contact me if you are interested.
Also my random musings courtesy of Twitter

Top



Moderator:  bcooper, CT 
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