|
1 registered (Chris Abraham),
2
Guests and
7
Spiders online. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
#6213 - 24/12/10 08:40 AM
update_emp_asg_criteria FTE Warning
|
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
|
|
|
|
#6216 - 24/12/10 10:14 AM
Re: update_emp_asg_criteria FTE Warning
[Re: Corbon262]
|
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
|
|
|
|
#6235 - 06/01/11 10:56 AM
Re: update_emp_asg_criteria FTE Warning
[Re: Corbon262]
|
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
|
|
|
|
#6237 - 06/01/11 11:23 AM
Re: update_emp_asg_criteria FTE Warning
[Re: Corbon262]
|
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]
|
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]
|
Guru
 
Registered: 11/03/05
Posts: 1188
Loc: Bath
|
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]
|
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]
|
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
|
|
|
|
#6270 - 12/01/11 02:49 PM
Re: update_emp_asg_criteria FTE Warning
[Re: Corbon262]
|
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]
|
Guru
 
Registered: 11/03/05
Posts: 1188
Loc: Bath
|
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. 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]
|
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]
|
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
|
|
|
|
|
792 Members
48 Forums
1584 Topics
7663 Posts
Max Online: 67 @ 14/04/12 05:38 PM
|
|
|
|
|
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
|
|
|
|
|