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 1 of 2 1 2 >
Topic Options
Rate This Topic
#6213 - 24/12/10 08:40 AM update_emp_asg_criteria FTE Warning
Corbon262 Offline
regular

Registered: 14/10/09
Posts: 21
Loc: South Yorkshire
I'm trying to do a mass update using HR_ASSIGNMENT_API.update_emp_asg_criteria via Web ADI. I've written a wrapper to call the API which works but in some case's when adding a position to a assignment a note is returned saying
"Assignment Budgeted FTE is not equal to position FTE Capacity"

This cause's the Web ADI load to fall. Is there a way around these note's that I could code in the wrapper?

Top
#6215 - 24/12/10 09:12 AM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
Is the api call actually returning an error status then? It doesn't sound like it should for something like that. Some sort of warning flag maybe, but not an error?

By way of a test, does your wrapper work when called from within a sql environment?
_________________________
L&K
CT

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

Top
#6216 - 24/12/10 10:14 AM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
Corbon262 Offline
regular

Registered: 14/10/09
Posts: 21
Loc: South Yorkshire
It works without problem when executing the proc using sql but get the following error using web ADI

PQH PQH_FTE_NE_SHARED_POS_FTE_CAP : Assignment Budgeted FTE is not equal to position FTE Capacity.

Top
#6217 - 24/12/10 12:14 PM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
OK, interesting.

In your wrapper, do you encapsulate the api call in a pl/sql block? Maybe if you do that, you can trap the specific situation and allow it to continue as though nothing had happened?

One possibility might be that the thing that passes the message back to the Web-ADI integrator is not liking the length of the message?
_________________________
L&K
CT

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

Top
#6235 - 06/01/11 10:56 AM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
Corbon262 Offline
regular

Registered: 14/10/09
Posts: 21
Loc: South Yorkshire
It wasn't in a block, tried it but still no joy.

I've found another instance in create employee API. When trying to create an employee that shares a name with an existing employee I get the following:
PAY HR_PERSON_DUPLICATE : A person of this name already exists. Continue?

It doesn't load in Web ADI as it seems to be waiting for a response?

Top
#6236 - 06/01/11 11:09 AM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
That's kind of weird...

Would you be happy to post the API wrapper code here?
_________________________
L&K
CT

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

Top
#6237 - 06/01/11 11:23 AM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
Corbon262 Offline
regular

Registered: 14/10/09
Posts: 21
Loc: South Yorkshire
I've attached the two wrappers one for creating emp's and one for updating asg_criteria


Attachments
create_emp.txt (83 downloads)
update_asg_crit.txt (82 downloads)


Top
#6240 - 06/01/11 02:57 PM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
Corbon262 Offline
regular

Registered: 14/10/09
Posts: 21
Loc: South Yorkshire
As a possible was around these application cautions. As the load is a one time migration, would anyboby know if they can be turned off in the forms?

Top
#6251 - 07/01/11 09:30 AM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
Originally Posted By: Corbon262
As a possible was around these application cautions. As the load is a one time migration, would anyboby know if they can be turned off in the forms?

If there were, they would most likely be implemented as System Profile Options - I know that such things exist for certain NI number validation rules. Go to the System Profile Options screen in the System Admin Responsibility and look for anything beginning 'HR%'

Having said that, my own personal opinion is that going down this route is a dangerous game to play. OK if you're doing a one-off load into an empty, not-yet-live system, as long as you have a specific step in your transition plan to switch all these checks back on again! The problem is, though, how would you know you've covered all the possible rules the load process is to encounter, until you come to do the load for real? what if you come across a situation for which there is no option, or any other legitimate means to disable the rule?

I do think we need to come up with a way of trapping the message and allowing the process to carry on anyway. If you can post the code items again (I think the issue has been resolved now that prevented me from seeing it the first time) then maybe that will shed some light on matters.
_________________________
L&K
CT

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

Top
#6266 - 12/01/11 08:34 AM Re: update_emp_asg_criteria FTE Warning [Re: Corbon262]
Corbon262 Offline
regular

Registered: 14/10/09
Posts: 21
Loc: South Yorkshire
Tried using separate block and capturing the error in a when others exception handler but the handler doesn’t catch it as the standard error message is still returned.
 PAY HR_PERSON_DUPLICATE : A person of this name already exists. Continue?


Attachments
create emp.txt (81 downloads)
update_asg_crit.txt (86 downloads)


Top
#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 1 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