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
Page 2 of 2 < 1 2
Topic Options
Rate This Topic
#6267 - 12/01/11 08:59 AM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
Corbon262 Offline
regular

Registered: 14/10/09
Posts: 21
Loc: South Yorkshire
Just found the following note on matalink. Looks like may not be possible

419797.1

Which states

"For Error 2: PAY HR_PERSON_DUPLICATE : A person of this name already exists. Continue?

Both an employee and contact record have the same last name and first name, which causes a Caution in the Professional User Interface (PUI) and causes an error in Web ADI.during upload.


Fact: Caution and warring messages that occur in the PUI are not supported in Web ADI."

Top
#6268 - 12/01/11 10:43 AM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
This all sounds very odd to me... The api will do the create or update, but in doing so might or might not set a warning flag. The returned status is still 'success', so no exception activity will occur. When you run the code through a sql harness, it all works fine. In fact, unless you specifically coded for the warning situation, you'd not know the warning occurred. So why does Web-ADI take it upon itself to act upon this warning?

One other question: what kind of integrator are you running this with?
_________________________
L&K
CT

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

Top
#6269 - 12/01/11 11:00 AM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
As an aside:

Don't take this as a full-blown peer review or anything like that, but from looking at the 'update assignment' wrapper, I see that you are defaulting the input parameters to null...

You might want to consider the general strategy of how to interpret a null input within your wrapper, i.e. is it really a null, or is it a 'do not change' instruction? If you leave your code as is, it will have the effect of trying to set everything to null that you aren't explicitly setting to something.

Where I have had occasion to do this in the past, I built a procedure to convert a null to a 'do not change' value, and the text '[NULL]' to a true null (just in case the user genuinely wishes to set something to null)
_________________________
L&K
CT

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

Top
#6270 - 12/01/11 02:49 PM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
Corbon262 Offline
regular

Registered: 14/10/09
Posts: 21
Loc: South Yorkshire
I'll change to hr_api.g_varchar2 defaults. Thanks for tip, always appreciated. As all self taught I get into bad habit's until they cause a fail, then bang my head against a wall for half a day or so wondering what went wrong. So hopefully that tip will save me headache.

It's a create integrator

Top
#6271 - 12/01/11 03:18 PM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
Originally Posted By: Corbon262
I'll change to hr_api.g_varchar2 defaults. Thanks for tip, always appreciated. As all self taught I get into bad habit's until they cause a fail, then bang my head against a wall for half a day or so wondering what went wrong. So hopefully that tip will save me headache.

No worries, always happy to try and help someone who is trying for him/herself to solve a problem.
I do think however that the changing of the default to g_varchar2 might not be enough. If the integrator passes a null from the spreadsheet input, then it will override the default anyway - so it may be that you need to explicitly trap nulls and convert them to g_varchar2 as appropriate.

Originally Posted By: Corbon262

It's a create integrator

OK, if possible can you post some more details of the setup of the integrator, e.g. Screenshots or FNDLOAD type extracts?
_________________________
L&K
CT

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

Top
#6277 - 14/01/11 03:08 PM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
Corbon262 Offline
regular

Registered: 14/10/09
Posts: 21
Loc: South Yorkshire
Been using the HR Seeded integrator template to set up the following:


Attachments
intrg_setup.txt (54 downloads)


Top
#6294 - 18/01/11 12:24 PM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
Corbon262 Offline
regular

Registered: 14/10/09
Posts: 21
Loc: South Yorkshire
CT - You were right just using the default to g_varchar2 didn't prevent fields being updated to null, I had to catch and convert.

Cheers again

Top
Page 2 of 2 < 1 2



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