Who's Online
0 registered (), 1 Guest and 1 Spider online.
Key: Admin, Global Mod, Mod
Recent Posts
Irecruitment
by spiro
18/03/10 03:21 PM
Appraisal Session Timeout
by spiro
17/03/10 07:48 PM
Heres a simple question on Workflow then ..
by bcooper
17/03/10 09:54 AM
Defaulting PO Information on assignment screen
by bcooper
17/03/10 09:52 AM
Creating an Attachment Table or Attachment Link
by Sahir
16/03/10 02:35 PM
OLM - Custom Role based on the 'Data Security'
by Geoff_Dixon
15/03/10 03:28 PM
E-Bus Configuration and Management
by PeterP
11/03/10 01:28 PM
UMX : Oracle User Management Application
by natkins
11/03/10 12:58 PM
HRMS organization structures
by Geoff_Dixon
11/03/10 11:53 AM
HR_PF.K RUP4
by bcooper
10/03/10 06:50 PM
Top Posters (30 Days)
CT 19
bcooper 17
natkins 16
delboy 16
SBi 10
gaztorres 8
Geoff_Dixon 8
MarinaH 7
kp_rapolu 4
Gus 4
(Views)Popular Topics
Family Pack K issues thread 5207
Review of my Release 12 laptop 3134
CREATE_GRADE api returns:PLS-00306: wrong number o 3123
Log-on problems for existing users 3014
Creating hr jobs ORA-20001: HR_289477_JOB_GROUP_ID 2392
October UK-OUG? 1998
Viewing Output of another user 1924
uploading bank branches to PAYROLL 1877
Still trying to locate... 1855
Family Pack K 1841
Page 1 of 4 1 2 3 4 >
Topic Options
Rate This Topic
#3406 - 27/07/08 12:55 PM CREATE_GRADE api returns:PLS-00306: wrong number o
tovia123 Offline
hanger-on

Registered: 14/05/08
Posts: 69
Loc: UK
Hi

I have created a package to load grades information as per code:
http://pastebin.com/m57c2146f

Data in my temporary table(currently loading 1st record only for testing!):
http://pastebin.com/m681542e3

The data in my table in sql :
Name Null? Type
----------------------------------------- -------- -----
SEQUENCE NUMBER
NAME VARCHAR2(70)
HEALTHCARE_SERVICE VARCHAR2(80)
DEATH_SERVICE VARCHAR2(70)
LONG_DISABILITY VARCHAR2(70)
MOBILE_PHONE VARCHAR2(5)
HOLIDAY_ENTITLEMENT NUMBER(5)
STD_PROBATION NUMBER(5)
STD_NOTICE NUMBER(5)
REPORTED_AS VARCHAR2(30)
PAYCODE VARCHAR2(5)
INCENTIVE_SCHEME VARCHAR2(20)
FLEX_BENEFIT VARCHAR2(20)

Also: I have removed all the value sets for the descriptive flexfield under:
Application > flexfield > Descriptive > segments

and i have successfully inserted the record manually by cutting and pasting field values from my data file!

So in SQL*PLUS: Why does it still complain of this:

Problem:
I am getting error:
LINE/COL ERROR
-----------------------------------------------------------------
71/1 PLS-00306: wrong number or types of arguments in call to
'CREATE_GRADE'

I went to line 71 within the file in notepad and i didnt find anything i am confused.

Thanks in advance

Tovia singer


Top
#3407 - 27/07/08 07:59 PM Re: CREATE_GRADE api returns:PLS-00306: wrong number o [Re: tovia123]
CT Offline
veteran
*****

Registered: 11/03/05
Posts: 752
Loc: Back at Fort Apache, Gosport!
Tovia

I would reckon it's objecting to your omission of the p_grade_id output parameter from the parameter list.

_________________________
L&K
CT

Top
#3408 - 28/07/08 08:14 AM Re: CREATE_GRADE api returns:PLS-00306: wrong numb [Re: CT]
tovia123 Offline
hanger-on

Registered: 14/05/08
Posts: 69
Loc: UK
HI CT

Thanks so much

I added p_grade_id:=v_grade_id;
and it compiled successfull but didnt create any records, so i checked the commit, and it was in the place same place as in my jobs api call.
Also checked the application and there where no grades so it shouldnt have any problem loading them.

My data file is:
http://pastebin.com/m2bce6d4a

There should be an error if it doesnt load the data i dont understand!

Thanks in advance

Tovia Singer

Top
#3409 - 28/07/08 11:22 AM Re: CREATE_GRADE api returns:PLS-00306: wrong numb [Re: tovia123]
CT Offline
veteran
*****

Registered: 11/03/05
Posts: 752
Loc: Back at Fort Apache, Gosport!
So what gets reported when you run it? Presumably you get a load of lines in your 'dbms_output' destination that show

'Ex:<grade_id>,<object_version_number>'

What are the actual numbers being returned, if any?
_________________________
L&K
CT

Top
#3410 - 28/07/08 12:21 PM Re: CREATE_GRADE api returns:PLS-00306: wrong numb [Re: CT]
tovia123 Offline
hanger-on

Registered: 14/05/08
Posts: 69
Loc: UK
Hi CT

Basically i set serverouput on:
set serveroutput on size 20000;

But i still get the following output:

SQL> @XXcompany_INT_GRADES_LOAD

Package created.

No errors.

Package body created.

No errors.

The revised code with p_grade_id:
http://pastebin.com/m5fc0c461

Thanks in advance

Tovia

Top
#3411 - 28/07/08 12:53 PM Re: CREATE_GRADE api returns:PLS-00306: wrong numb [Re: tovia123]
CT Offline
veteran
*****

Registered: 11/03/05
Posts: 752
Loc: Back at Fort Apache, Gosport!
OK so it compiles, but what happens when you run it?
_________________________
L&K
CT

Top
#3412 - 28/07/08 01:17 PM Re: CREATE_GRADE api returns:PLS-00306: wrong numb [Re: CT]
tovia123 Offline
hanger-on

Registered: 14/05/08
Posts: 69
Loc: UK
HI CT

Sorry:

SQL> execute XXcompany_PKG_GRADES.XXcompany_LOAD_GRADES;
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,
Ex:,

PL/SQL procedure successfully completed.

And it doesnt actually load any data,

Thanks in advance

Tovia S

Top
#3413 - 28/07/08 01:44 PM Re: CREATE_GRADE api returns:PLS-00306: wrong numb [Re: tovia123]
CT Offline
veteran
*****

Registered: 11/03/05
Posts: 752
Loc: Back at Fort Apache, Gosport!
Could it be that the only reason you're not seeing exceptions is because you are trying to report them via the FND_FILE package, which really only works if you're running this from the conc. manager. As a temporary measure, can you change the FND_FILE references to DBMS_OUTPUT.put_line and re-run it? Also, I would say in the latest version of your script, you might benefit from moving the line of code currently at line 128:

DBMS_OUTPUT.PUT_LINE('Ex:'||v_grade_id||','||v_object_version_number);

to immediately *after* the api call, e.g. at line 119 (to quote the numbers from your Pastebin listing)

_________________________
L&K
CT

Top
#3414 - 28/07/08 06:04 PM Re: CREATE_GRADE api returns:PLS-00306: wrong numb [Re: CT]
tovia123 Offline
hanger-on

Registered: 14/05/08
Posts: 69
Loc: UK
Hi CT

Sorry for the delay in feedback,

I did as you said above:

Latest code:
http://pastebin.com/m2c1dff1d

The feedback from/ error in sql:

SQL> execute XXcompany_PKG_GRADES.XXcompany_LOAD_GRA
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
Ex:,
-20001ORA-20001: FLEX-ID DOES NOT EXIST:
Ex:,
PL/SQL procedure successfully completed.
SQL>

Thanks in advance

Tovia Singer

Top
#3416 - 28/07/08 06:58 PM Re: CREATE_GRADE api returns:PLS-00306: wrong numb [Re: tovia123]
CT Offline
veteran
*****

Registered: 11/03/05
Posts: 752
Loc: Back at Fort Apache, Gosport!
Ah, this is of course a problem you will have seen before, in your 'job loading' process (see separate thread)

Recall that the text associated with this message code is "ID &ID for the flexfield segment &SEGMENT does not exist in the value set &VALUESET." In other words, you still have a valueset in place somewhere that is not liking the data you're trying to send to a desc flex segment.
_________________________
L&K
CT

Top
Page 1 of 4 1 2 3 4 >


Moderator:  Administrator, Geoff_Dixon 
March
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
Forum Stats
422 Members
48 Forums
1129 Topics
5248 Posts

Max Online: 15 @ 20/10/09 02:30 PM
Today's Birthdays
No Birthdays
Recent vacancies
Oracle HRMS Consultants needed! Perm £70k!
by Shaylan
18/03/10 11:33 AM
Developer - Permanent - based in Bracknell
by Geoff_Dixon
11/03/10 11:59 AM
Perm Positions 1 x HR and 1 x Payroll
by bfrost
10/03/10 05:35 PM
Top Posters
bcooper 890
CT 752
Geoff_Dixon 343
delboy 255
SBi 249
vkumar 223
kp_rapolu 203
cbrookes 197
Gavin Harris 101
jhatten 95