Wrong number or types error

I am trying to connect to a stored procedure. The arguments are defined as NUMBER, VARCHAR2, and DATE.
Here is the call I am making:
stmt = con.prepareCall("{ call procedure(?, ?, ?) }");
          stmt.registerOutParameter(1, Types.INTEGER);
          stmt.registerOutParameter(2, Types.VARCHAR);
          stmt.registerOutParameter(3, Types.DATE);
I have defined param 1 as int, param 2 as String, and param 3 as java.sql.Date
Any ideas as to why the error has the wrong number or types? I am sure there are only three paramaters. I am not sure if I have defined the java types correctly. The return should echo the input. This is only a test to connect to a new client and I cannot figure out what I am doing wrong.

The db is oracle 9i.

Similar Messages

  • SSRS Calling a Stored Procedure error : PLS-00306: wrong number or types of arg...

    Hi,
    My Problem is when im adding dataset with stored procedure, im getting this error.
    I Can access database, 
    Could not create a list of fields for the query. Verify that you can connect to the data source and that your query syntax is correct.
    ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'PROCEDURE_NAME' ORA-06550: line 1, column 7: PL/SQL:
    Statement ignored
    stored procedure is simple select :
    CREATE OR REPLACE PROCEDURE [PROCEDURE_NAME](L_CURSOR out SYS_REFCURSOR)
    is
    Begin
    open L_CURSOR for
    SELECT [columnname] FROM
    [tablename]
    End;
    Configuration Details:
    DB: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64biOracle Developer Tools for Visual Studio Copyright (c) 2005,2014 SQL Server Data Tools Type: Oracle , Data Provider : .Net Framework Data Provider For Oracle

    The answer is of inside question. It is about provider. Change my provider ODTwithODAC for 10g (my database version). And problem resolved.
    Thank you for your helps,
    Regards,
    Arda

  • Wrong number  or types of argumnet in a call to  error

    Hi all,
    Below is my stored proc and it has a input parameter 'c_count_or_perc' . I have passed value to this parameter as in the if block.
    But I got the error as "wrong number or types of argumnet in a call to ' .
    I really dont know how to pass input value to this parameter .
    Could anyone please help?
    {code}
    PROCEDURE edr_rpt_gen_error_by_hour
    in_report_parameter_id IN report_tasks.report_task_id%TYPE,
    c_count_or_perc IN VARCHAR2 ,
    report_data OUT SYS_REFCURSOR,
    chart_data OUT SYS_REFCURSOR,
    footer_data OUT SYS_REFCURSOR
    {code}
    In below 'IF THEN ELSE' block , ( based on the <condition> ) , I dont know how to pass value to input parameter c_count_or_perc .
    {code}
              IF (c_count_or_perc = 'ERROR BY HOUR') THEN
                   my_error_text := get_row_error_text;
                   my_total_text := get_row_total_text;
              ELSE
              my_error_text := get_row_error_text;
                   my_total_text := '';
                   DELETE edr_report_by_hour_output
                   WHERE row_type = 'Summary Row'
                   AND row_type = 'Final Row';
              END IF;     
    {code}
    Here I have pasted the full package. Could please tell me , what are ways tht I could pass value to the given input parameter.
    {code}
    CREATE OR REPLACE PACKAGE edr_rpt_error_by_hour_package AS
    PROCEDURE edr_rpt_gen_error_by_hour
    in_report_parameter_id IN report_tasks.report_task_id%TYPE,
    c_count_or_perc IN VARCHAR2 ,
    report_data OUT SYS_REFCURSOR,
    chart_data OUT SYS_REFCURSOR,
    footer_data OUT SYS_REFCURSOR
    FUNCTION error_data
    in_lane_id edr_report_by_hour_output.lane_id%TYPE,
    in_direction_id edr_report_by_hour_output.direction_id%TYPE,
    in_interval_start_date_time edr_report_by_hour_output.interval_start_date_time%TYPE,
    in_interval_end_date_time edr_report_by_hour_output.interval_end_date_time%TYPE,
    in_hour_start edr_report_by_hour_output.hour_start%TYPE,
    in_hour_end edr_report_by_hour_output.hour_end%TYPE,
    in_min_error NUMBER,
    in_max_error NUMBER
    RETURN NUMBER;
    END edr_rpt_error_by_hour_package;
    CREATE OR REPLACE PACKAGE BODY edr_rpt_error_by_hour_package AS
    FUNCTION error_data
    in_lane_id edr_report_by_hour_output.lane_id%TYPE,
    in_direction_id edr_report_by_hour_output.direction_id%TYPE,
    in_interval_start_date_time edr_report_by_hour_output.interval_start_date_time%TYPE,
    in_interval_end_date_time edr_report_by_hour_output.interval_end_date_time%TYPE,
    in_hour_start edr_report_by_hour_output.hour_start%TYPE,
    in_hour_end edr_report_by_hour_output.hour_end%TYPE,
    in_min_error NUMBER,
    in_max_error NUMBER
    RETURN NUMBER
    IS
    my_count_result NUMBER(18);
    BEGIN
    SELECT NVL(SUM(error_count), 0 )
    INTO my_count_result
    FROM
    SELECT site_lane_id
    FROM edr_rpt_tmp_report_lanes
    WHERE edr_rpt_tmp_report_lanes.output_lane_id = in_lane_id
    AND edr_rpt_tmp_report_lanes.output_direction_id = in_direction_id
    ) report_lanes
    JOIN edr_error_by_hour_report_data
    ON edr_error_by_hour_report_data.site_lane_id = report_lanes.site_lane_id
    AND edr_error_by_hour_report_data.bin_start_date_time >= in_interval_start_date_time
    AND edr_error_by_hour_report_data.bin_start_date_time < in_interval_end_date_time
    AND edr_error_by_hour_report_data.hour >= in_hour_start
    AND edr_error_by_hour_report_data.hour < in_hour_end
    AND edr_error_by_hour_report_data.error_code >= in_min_error
    AND edr_error_by_hour_report_data.error_code <= in_max_error
    return my_count_result;
    END error_data;
    FUNCTION get_row_error_text
    RETURN VARCHAR2
    IS
    my_row_error_text VARCHAR2(10000);
    my_row_error_entry VARCHAR2(10000);
    CURSOR row_error_text IS
    SELECT 'edr_rpt_error_by_hour_package.error_data('
    ||'lane_id, '
    ||'direction_id, '
    ||'interval_start_date_time, '
    ||'interval_end_date_time, '
    ||'hour_start, '
    ||'hour_end, '
    || error_code || ', '
    || error_code || ') "'|| error_message.error_short_message || '"'
    FROM error_message
    WHERE error_code >= 0 and error_code < 19
    ORDER BY error_code;
    BEGIN
    my_row_error_text := '';
    my_row_error_entry := '';
    -- generate the error code function calls
    OPEN row_error_text;
    LOOP
    FETCH row_error_text INTO my_row_error_entry;
    EXIT WHEN row_error_text%NOTFOUND;
    my_row_error_text := my_row_error_text || ', ' || my_row_error_entry;
    END LOOP;
    CLOSE row_error_text;
    RETURN my_row_error_text;
    END get_row_error_text;
    FUNCTION get_row_total_text
    RETURN VARCHAR2
    IS
    my_row_error_text VARCHAR2(10000);
    BEGIN
    my_row_error_text := '';
    -- generate the 'total' column function call
    SELECT 'edr_rpt_error_by_hour_package.error_data('
    ||'lane_id, '
    ||'direction_id, '
    ||'interval_start_date_time, '
    ||'interval_end_date_time, '
    ||'hour_start, '
    ||'hour_end, '
    || MIN(error_code) || ', '
    || MAX(error_code) || ') "Total"'
    INTO my_row_error_text
    FROM error_message
    WHERE error_code >= 0 and error_code < 19;
    RETURN (', ' || my_row_error_text);
    END get_row_total_text;
    FUNCTION get_error_data_pct
    in_lane_id edr_report_by_hour_output.lane_id%TYPE,
    in_direction_id edr_report_by_hour_output.direction_id%TYPE,
    in_interval_start_date_time edr_report_by_hour_output.interval_start_date_time%TYPE,
    in_interval_end_date_time edr_report_by_hour_output.interval_end_date_time%TYPE,
    in_hour_start edr_report_by_hour_output.hour_start%TYPE,
    in_hour_end edr_report_by_hour_output.hour_end%TYPE,
    in_min_error NUMBER,
    in_max_error NUMBER
    RETURN NUMBER
    IS
         my_count NUMBER(18);
         my_total NUMBER(18);
         my_count_pct NUMBER(18);
         my_count_result NUMBER(18);
    BEGIN
              my_count_pct := 0 ;
              my_count_result := error_data (
    in_lane_id,
    in_direction_id,
    in_interval_start_date_time,
    in_interval_end_date_time,
    in_hour_start,
    in_hour_end,
    in_min_error,
    in_max_error
              IF (my_count_result > 0 ) THEN
              my_total := error_data (
    in_lane_id,
    in_direction_id,
    in_interval_start_date_time,
    in_interval_end_date_time,
    in_hour_start,
    in_hour_end,
    1,
    19
              my_count_pct := ROUND((my_count_result / my_total) * 100 ,2);
         END IF;
              return my_count_pct;
    END get_error_data_pct;          
    PROCEDURE edr_error_by_hour_use_per_veh
    in_report_parameter_id IN report_tasks.report_task_id%TYPE
    IS
    BEGIN
    DELETE FROM edr_error_by_hour_report_data;
    INSERT INTO edr_error_by_hour_report_data
    site_id,
    site_lane_id,
    bin_start_date_time,
    hour,
    error_code,
    error_count
    SELECT
    site_id,
    site_lane_id,
    bin_start_date_time,
    hour,
    error_code,
    COUNT(1)
    FROM (SELECT site_id,
    site_lane_id,
    ( SELECT NVL(MAX(interval_start_date_time), date_time)
    FROM edr_rpt_tmp_grouping_table
    WHERE interval_start_date_time <= date_time) bin_start_date_time,
    TO_NUMBER(TO_CHAR(date_time, 'hh24')) hour,
    NVL(traffic_error.error_code, 0) error_code
    FROM edr_error_by_hour_veh_data
    LEFT OUTER JOIN traffic_error
    ON traffic_error.record_id = edr_error_by_hour_veh_data.record_id
    ) vehicles
    GROUP BY
    site_id,
    site_lane_id,
    bin_start_date_time,
    hour,
    error_code;
    END edr_error_by_hour_use_per_veh;
    PROCEDURE edr_error_by_hour_data_type
    in_report_parameter_id IN report_tasks.report_task_id%TYPE,
    in_data_type IN VARCHAR2,
    out_data_type_used OUT VARCHAR2
    IS
    my_bin_entry_count NUMBER(12,0);
    my_veh_entry_count NUMBER(12,0);
    BEGIN
    IF(UPPER(in_data_type) = 'BINNED') THEN
    -- Error information can only be read from Per Vehicle data records
    -- - using bins-only is not a supported option
    RAISE_APPLICATION_ERROR(-20101,'Binned data cannot be used for this report.');
    ELSIF (UPPER(in_data_type) = 'PERVEHICLE')
    OR (UPPER(in_data_type) = 'COMBINED')
    THEN
    out_data_type_used := 'Per Vehicle (All Vehicles)';
    edr_error_by_hour_use_per_veh( in_report_parameter_id );
    ELSE
    RAISE_APPLICATION_ERROR(-20101, 'The data type specified is not recognized.');
    END IF;
    END edr_error_by_hour_data_type;
    PROCEDURE edr_error_by_hour_get_veh_data
    in_report_parameter_id IN NUMBER,
    in_site_id IN NUMBER,
    in_start_date_time IN TIMESTAMP,
    in_end_date_time IN TIMESTAMP,
    in_report_level_min IN NUMBER,
    in_report_level_max IN NUMBER
    IS
    BEGIN
    --Clear the edr_error_by_hour_veh_data temporary table and populate it with the data for the requested
    --report.
    DELETE FROM edr_error_by_hour_veh_data;
    INSERT INTO edr_error_by_hour_veh_data
    site_id,
    site_lane_id,
    record_id,
    date_time,
    vehicle_error_count,
    vehicle_status
    SELECT site_to_data_source_lane_v.site_id,
    site_to_data_source_lane_v.site_lane_id,
    traffic_record.record_id,
    traffic_record.datetime,
    NVL((SELECT COUNT(1)
    FROM traffic_error
    WHERE traffic_error.record_id = traffic_record.record_id), 0) vehicle_error_count,
    NVL((SELECT SUM(status_code)
    FROM traffic_status
    WHERE traffic_status.record_id = traffic_record.record_id), 0) vehicle_status
    FROM traffic_record
    LEFT OUTER JOIN traffic_class
    ON traffic_record.record_id = traffic_class.record_id
    JOIN site_to_data_source_lane_v
    ON traffic_record.data_source_id = site_to_data_source_lane_v.data_source_id
    AND traffic_record.lane = site_to_data_source_lane_v.data_source_lane_id
    JOIN edr_rpt_tmp_report_lanes
    ON site_to_data_source_lane_v.site_lane_id = edr_rpt_tmp_report_lanes.site_lane_id
    JOIN edr_rpt_tmp_report_classes
    ON NVL(traffic_class.v_class, 0) = edr_rpt_tmp_report_classes.class_id
    JOIN edr_rpt_tmp_inclusion_table
    ON TRUNC(traffic_record.datetime) = TRUNC(edr_rpt_tmp_inclusion_table.date_time)
    WHERE site_to_data_source_lane_v.site_id = in_site_id
    AND traffic_record.datetime >= in_start_date_time
    AND traffic_record.datetime < in_end_date_time
    AND traffic_class.class_level >= in_report_level_min
    AND traffic_class.class_level <= in_report_level_max;
    END edr_error_by_hour_get_veh_data;
    PROCEDURE edr_rpt_gen_error_by_hour
    in_report_parameter_id IN report_tasks.report_task_id%TYPE,
    c_count_or_perc IN VARCHAR2 ,
    report_data OUT SYS_REFCURSOR,
    chart_data OUT SYS_REFCURSOR,
    footer_data OUT SYS_REFCURSOR
    AS
    my_date_format_mask VARCHAR2(50);
    my_start_date_time TIMESTAMP;
    my_end_date_time TIMESTAMP;
    my_lane_grouping VARCHAR2(10);
    my_interval_duration NUMBER(2);
    my_site_id sites.site_id%TYPE;
    my_selected_data_type VARCHAR2(50);
    my_used_data_type VARCHAR2(50);
    my_report_data_statement VARCHAR2(25000);
    my_chart_data_statement VARCHAR2(25000);
    my_good_weight_viol_total NUMBER(12,0);
    my_data_type_used VARCHAR2(50);
    my_per_vehicle_total NUMBER(12,0);
    my_binned_vehicle_total NUMBER(12,0);
    my_error_vehicle_total NUMBER(12,0);
    my_status_vehicle_total NUMBER(12,0);
    my_good_weight_total NUMBER(12,0);
    my_status_clear_total NUMBER(12,0);
    my_good_weight_statuses_mask NUMBER(12,0);
    my_error_text VARCHAR2(25000);
    my_total_text VARCHAR2(25000);
    my_error_row_pct_report VARCHAR2(25);
    BEGIN
    my_date_format_mask := edr_rpt_generic_package.edr_rpt_get_date_format_mask(in_report_parameter_id);
    my_start_date_time := edr_rpt_generic_package.edr_rpt_get_start_date_time(in_report_parameter_id, my_date_format_mask);
    my_end_date_time := edr_rpt_generic_package.edr_rpt_get_end_date_time(in_report_parameter_id, my_date_format_mask);
    my_lane_grouping := edr_rpt_generic_package.edr_rpt_get_lane_grouping(in_report_parameter_id);
    my_site_id := edr_rpt_generic_package.edr_rpt_get_site_id(in_report_parameter_id);
    my_selected_data_type := edr_rpt_generic_package.edr_rpt_get_data_type(in_report_parameter_id);
    -- ensure selected classes and lanes temp tables have been populated
    edr_rpt_generic_package.edr_rpt_gen_tmp_lanes(in_report_parameter_id);
    edr_rpt_generic_package.edr_rpt_gen_tmp_classes(in_report_parameter_id);
    my_good_weight_statuses_mask := edr_rpt_generic_package.get_good_weight_status_mask(in_report_parameter_id);
    edr_rpt_generic_package.edr_rpt_gen_inclusion_table(
    in_report_parameter_id,
    my_date_format_mask,
    my_start_date_time,
    my_end_date_time
    edr_rpt_generic_package.edr_rpt_gen_grouping_table(
    in_report_parameter_id,
    my_date_format_mask,
    my_start_date_time,
    my_end_date_time
    edr_rpt_generic_package.gen_rpt_by_hour_output_table
    in_report_parameter_id
    edr_rpt_error_by_hour_package.edr_error_by_hour_get_veh_data
    in_report_parameter_id,
    my_site_id,
    my_start_date_time,
    my_end_date_time,
    0, --Hardcoded until reclassification is supported.
    0 --Hardcoded until reclassification is supported.
    edr_rpt_error_by_hour_package.edr_error_by_hour_data_type
    in_report_parameter_id,
    my_selected_data_type,
    my_used_data_type
              IF (c_count_or_perc = 'ERROR BY HOUR') THEN
                   my_error_text := get_row_error_text;
                   my_total_text := get_row_total_text;
              ELSE
              my_error_text := get_row_error_text;
                   my_total_text := '';
                   DELETE edr_report_by_hour_output
                   WHERE row_type = 'Summary Row'
                   AND row_type = 'Final Row';
              END IF;     
    COMMIT;
    my_report_data_statement :=
    'SELECT rank "Rank", '
    || ' ROW_TYPE "Row Type", '
    || ' interval_start_date_time "Date", '
    || ' interval_start_date_time, '
    || ' hour_label "Chart X-Axis", '
    || ' lane_id "Group Id" , '
    || ' ''None'' "Group Name", '
    || ' hour_label "Hour" '
    || my_error_text
    || my_total_text
    || ' FROM edr_report_by_hour_output '
    || ' ORDER BY lane_id, '
    || ' direction_id, '
    || ' interval_start_date_time, '
    || ' hour_end, '
    || ' rank, '
    || ' hour_start'
    dbms_output.put_line('SQL start------------------------');
    dbms_output.put_line(my_report_data_statement);
    dbms_output.put_line('SQL end--------------------------');
    my_chart_data_statement :=
    ' SELECT hour_start "X Axis", '
    || ' lane_id "Group" '
    || edr_rpt_error_by_hour_package.get_row_error_text
    || ' FROM '
    || ' ( '
    || ' SELECT lane_id, '
    || ' direction_id, '
    || ' hour_start, '
    || ' hour_end, '
    || ' min(interval_start_date_time) interval_start_date_time, '
    || ' max(interval_end_date_time) interval_end_date_time '
    || ' FROM edr_report_by_hour_output '
    || ' WHERE hour_end = hour_start + 1 '
    || ' GROUP BY lane_id, direction_id, hour_start, hour_end '
    || ' ) '
    || ' order by "Group", hour_start '
    dbms_output.put_line('SQL start------------------------');
    dbms_output.put_line(my_chart_data_statement);
    dbms_output.put_line('SQL end--------------------------');
    SELECT my_used_data_type
    INTO my_data_type_used
    FROM SYS.DUAL;
    SELECT NVL(COUNT(record_id), 0)
    INTO my_per_vehicle_total
    FROM edr_error_by_hour_veh_data;
    SELECT NVL(COUNT(record_id), 0)
    INTO my_status_vehicle_total
    FROM edr_error_by_hour_veh_data
    WHERE vehicle_status > 0
    AND vehicle_error_count = 0;
    SELECT NVL(COUNT(record_id), 0)
    INTO my_error_vehicle_total
    FROM edr_error_by_hour_veh_data
    WHERE vehicle_error_count > 0;
    SELECT NVL(COUNT(record_id), 0)
    INTO my_status_clear_total
    FROM edr_error_by_hour_veh_data
    WHERE vehicle_status = 0
    AND vehicle_error_count = 0;
    SELECT NVL(SUM(error_count), 0)
    INTO my_binned_vehicle_total
    FROM edr_error_by_hour_report_data;
    SELECT NVL(COUNT(DISTINCT edr_error_by_hour_veh_data.record_id), 0)
    INTO my_good_weight_total
    FROM edr_error_by_hour_veh_data
    WHERE vehicle_error_count = 0
    AND BITAND(vehicle_status, my_good_weight_statuses_mask) = 0;
    -- insert vehicle totals into the temporary table
    DELETE FROM edr_rpt_tmp_veh_totals_table;
    INSERT INTO edr_rpt_tmp_veh_totals_table
    data_type_used,
    per_vehicle_total,
    binned_vehicle_total,
    error_vehicle_total,
    status_vehicle_total,
    good_weight_total,
    status_clear_total
    SELECT my_data_type_used,
    my_per_vehicle_total,
    my_binned_vehicle_total,
    my_error_vehicle_total,
    my_status_vehicle_total,
    my_good_weight_total,
    my_status_clear_total
    FROM SYS.DUAL;
    -- execute the query into the output refcursor
    OPEN report_data FOR
    my_report_data_statement;
    OPEN chart_data FOR
    my_chart_data_statement;
    OPEN footer_data FOR
    SELECT data_type_used,
    per_vehicle_total,
    binned_vehicle_total,
    error_vehicle_total,
    status_vehicle_total,
    good_weight_total,
    status_clear_total
    FROM edr_rpt_tmp_veh_totals_table;
    END edr_rpt_gen_error_by_hour;
    END edr_rpt_error_by_hour_package;
    {code}

    Hi,
    Thx for the reply.
    As the store proc is inside the package and its invoked in visual studio.
    I used to compile the pkg in SQL plus and it throws the error as ' wrong number or types of argument in a call to the stored proc 'edr_rpt_gen_error_by_hour'
    As I'm new to pl/sql programming , i really dont know how to pass value to the input parameter.
    Edited by: user10641405 on Nov 18, 2009 7:27 PM
    Edited by: user10641405 on Nov 18, 2009 7:29 PM

  • Error 306, wrong number or types of argument in call to ADD_OBJECT_ARG

    Hello all,
    I am trying to install Webutil to Forms 9i, but when compiling the webutil.pll, I am getting the compilation error 306, wrong number or types of argument in call to ADD_OBJECT_ARG(args, a0, 'java/lang/Object').
    The problems are in the body of Package Jave_System when some methods of JNI are called.
    What is JNI and how i can fix this problem?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Instructor:
    The procedure most likely requires an argument when executed.
    To specify the argument in forms, you need to go to BLOCK property QUERY DATA SOURCE ARGUMENTS and if performing DML...use INSERT PROCEDURE ARGUMENTS, UPDATE PROCEDURE ARGUMENTS, and DELETE PROCEDURE ARGUMENTS.
    Hope this helps.<HR></BLOCKQUOTE>
    thanks, I will check it out !
    null

  • WHILE expression giving Error 306, wrong number or types of args in call to

    WHILE expression giving Error 306, wrong number or types of args in call to '='
    declare
         block_id block;
         item_id item;     
    begin
         block_id := find_block(:system.cursor_block);
         item_id := find_item(:system.cursor_item);
         message('Current Block: ' || :system.cursor_block || '  Current Item: ' || :system.cursor_item);
         next_block;
         while find_block(:system.cursor_block) = block_id
         loop
              message('Current Block: ' || :system.cursor_block || '  Current Item: ' || :system.cursor_item);
              next_block;
         end loop;
    exception
         when others then
         message(sqlerrm);
    end;I don't see what the problem is?
    Gus

    other than that there are logical errors in this
    u hav to use here != with the while loop.
    Again loop willl never return to first block.It will stuck at last block and will show error.
    For ur question u can use as
    declare
         --block_id block;
         --item_id item;     
         vc_first_block varchar2(65);
    begin
         vc_first_block := :system.cursor_block;
         --block_id := find_block(:system.cursor_block);
         --item_id := find_item(:system.cursor_item);
         message('Current Block: ' || :system.cursor_block || ' Current Item: ' || :system.cursor_item);
         next_block;
         while :system.cursor_block != vc_first_block
         loop
    Message was edited by:
    jeneesh

  • Form Builder. Error 306 wrong number or types of arguments in call to populate_table

    Hi ! I'm trying to build a simple form based on a procedure.
    the error that i get:
    error 306 - wrong number or types of arguments in call to populate_table
    When I use the Data block
    wizard, I specify the procedure with a ref cursor argument. the procedure code:
    open ind_prof for select i.nome, i.idade, p.nome
    from individuo i, individuo_profissao ip, profissao p
    where i.cod_individuo=ip.cod_individuo
    and ip.cod_profissao=p.cod_profissao;
    The error that i get 'points' to this procedure. I checked the cursor type, the record
    type and everything seems ok.
    I'm using a ref cursor to query.
    I have the same proble either using a procedure or a function.
    There is another method to load the data into the block. That procedure is called
    automatically and it has a table of the same record type as the ref cursor as an
    argument. What code should I write on it ?
    what should I write in both of them ?
    Thanks !

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Instructor:
    The procedure most likely requires an argument when executed.
    To specify the argument in forms, you need to go to BLOCK property QUERY DATA SOURCE ARGUMENTS and if performing DML...use INSERT PROCEDURE ARGUMENTS, UPDATE PROCEDURE ARGUMENTS, and DELETE PROCEDURE ARGUMENTS.
    Hope this helps.<HR></BLOCKQUOTE>
    thanks, I will check it out !
    null

  • Getting error wrong number or type of parameters for EAM_PROCESS_WO_PUB

    Hi All,
    I am Getting error wrong number or type of parameters for EAM_WO_PROCESS_PUB.PROCESS_WO API, pls any body can help me,pls send code for
    EAM_WO_PROCESS_PUB.PROCESS_WO API.
    Thanks&Reagrds,
    Hanimi Reddy.

    Hi srini,
    I developed code for work order api EAM_PROCESS_WO_PUB.PROCESS_MASTER_CHILD_WO following and i am getting error wrong number or types of arguments in call to 'PROCESS_MASTER_CHILD_WO, pls see the code and help me
    CREATE OR REPLACE PROCEDURE SANG_WR_TO_WO_API/*(ERRBUF OUT VARCHAR2, RETCODE OUT VARCHAR2)*/ IS
    v_created_by number;
    v_updated_by number;
    v_updated_name varchar2(30);
    V_ENTITY_ID VARCHAR2(30);
    l_EAM_WO_RELATIONS_TBL EAM_PROCESS_WO_PUB.EAM_WO_RELATIONS_TBL_type ;
    --:= EAM_PROCESS_WO_PUB.g_miss_EAM_WO_RELATIONS_rec;
    l_eam_wo_tbl EAM_PROCESS_WO_PUB.eam_wo_rec_type; --:= EAM_PROCESS_WO_PUB.G_MISS_EAM_WO_rec;
    l_eam_op_tbl EAM_PROCESS_WO_PUB.eam_op_tbl_type ;--:= EAM_PROCESS_WO_PUB.G_MISS_eam_op_tbl;
    l_eam_op_network_tbl EAM_PROCESS_WO_PUB.eam_op_network_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_op_network_tbl;
    l_eam_res_tbl EAM_PROCESS_WO_PUB.eam_res_tbl_type;--:= EAM_PROCESS_WO_PUB.G_MISS_eam_res_tbl;
    l_eam_res_inst_tbl EAM_PROCESS_WO_PUB.eam_res_inst_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_res_inst_tbl;
    l_eam_sub_res_tbl EAM_PROCESS_WO_PUB.eam_sub_res_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_sub_res_tbl ;
    -- l_eam_res_usage_tbl EAM_PROCESS_WO_PUB.eam_res_usage_tbl_type := EAM_PROCESS_WO_PUB.G_MISS_eam_res_usage_tbl;
    l_eam_mat_req_tbl EAM_PROCESS_WO_PUB.eam_mat_req_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_mat_req_tbl ;
    l_eam_direct_items_tbl EAM_PROCESS_WO_PUB.eam_direct_items_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_direct_items_tbl ;
    l_x_eam_wo_tbl EAM_PROCESS_WO_PUB.eam_wo_rec_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_wo_rec;
    l__x_EAM_WO_RELATIONS_TBL EAM_PROCESS_WO_PUB.EAM_WO_RELATIONS_TBL_type ;--:= EAM_PROCESS_WO_PUB.g_miss_EAM_WO_RELATIONS_TBL;
    l_x_eam_op_tbl EAM_PROCESS_WO_PUB.eam_op_rec_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_op_rec ;
    l_x_eam_op_network_tbl EAM_PROCESS_WO_PUB.eam_op_network_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_op_network_tbl;
    l_x_eam_res_tbl EAM_PROCESS_WO_PUB.eam_res_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_res_tbl;
    l_x_eam_res_inst_tbl EAM_PROCESS_WO_PUB.eam_res_inst_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_res_inst_tbl ;
    l_x_eam_sub_res_tbl EAM_PROCESS_WO_PUB.eam_sub_res_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_sub_res_tbl;
    -- l_x_eam_res_usage_tbl EAM_PROCESS_WO_PUB.eam_res_usage_tbl_type := EAM_PROCESS_WO_PUB.G_MISS_eam_res_usage_tbl ;
    l_x_eam_mat_req_tbl EAM_PROCESS_WO_PUB.eam_mat_req_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_mat_req_tbl;
    l_x_eam_direct_items_tbl EAM_PROCESS_WO_PUB.eam_direct_items_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_direct_items_tbl ;
    l_x_return_status VARCHAR2(30);
    l_x_msg_count NUMBER;
    l_x_debug VARCHAR2(30);
    l_output_dir VARCHAR2(30);
    l_debug_filename VARCHAR2(30) ;
    l_debug_file_mode VARCHAR2(30) ;
    CURSOR CUR_WTW IS
    SELECT
    EWR.WIP_ENTITY_ID
    ,EWR.WIP_ENTITY_NAME
    ,EWR.ORGANIZATION_ID
    ,WAC.ORGANIZATION_CODE
    ,EWR.DESCRIPTION
    ,EWR.ASSET_GROUP_ID
    ,EWR.ASSET_NUMBER
    ,EWR.ASSET_NUMBER_DESCRIPTION
    ,WAC.ACCOUNTING_CLASS
    ,WAC.MATERIAL_ACCOUNT
    ,WAC.MATERIAL_OVERHEAD_ACCOUNT
    ,WAC.RESOURCE_ACCOUNT
    ,WAC.OUTSIDE_PROCESSING_ACCOUNT
    ,WAC.MATERIAL_VARIANCE_ACCOUNT
    ,WAC.RESOURCE_VARIANCE_ACCOUNT
    ,WAC.OUTSIDE_PROC_VARIANCE_ACCOUNT
    ,WAC.STD_COST_ADJUSTMENT_ACCOUNT
    ,WAC.OVERHEAD_ACCOUNT
    ,WAC.OVERHEAD_VARIANCE_ACCOUNT
    ,EWR.WORK_REQUEST_OWNING_DEPT_ID
    ,EWR.WORK_REQUEST_OWNING_DEPT
    ,EWR.WORK_REQUEST_PRIORITY_ID
    ,EWR.WORK_REQUEST_PRIORITY
    ,EWR.WORK_REQUEST_STATUS_ID
    ,WAC.ORGANIZATION_NAME
    FROM
    WIP_EAM_WORK_REQUESTS_V EWR
    ,WIPFV_ACCOUNTING_CLASSES WAC
    ,WIP_EAM_PARAMETERS WAP
    WHERE
    EWR.ORGANIZATION_ID = WAC.ORGANIZATION_ID
    AND WAC.ORGANIZATION_ID = WAP.ORGANIZATION_ID
    AND WAC.ACCOUNTING_CLASS = WAP.DEFAULT_EAM_CLASS
    AND EWR.WORK_REQUEST_STATUS = 'Awaiting Work Order';
    BEGIN
    --i number := 1;
    FND_GLOBAL.apps_initialize (1001255, 50326, 700, 0);
    V_CREATED_BY := FND_GLOBAL.USER_ID;
    V_UPDATED_BY := FND_GLOBAL.USER_ID;
    v_updated_name := FND_GLOBAL.USER_name;
    for rec in cur_wtw loop
    l_eam_wo_tbl.WIP_ENTITY_ID := rec.wip_entity_id;
    l_eam_wo_tbl.ORGANIZATION_ID := rec.ORGANIZATION_ID ;
    l_eam_wo_tbl.ASSET_NUMBER := rec.ASSET_NUMBER;
    l_eam_wo_tbl.ASSET_GROUP_ID := rec.ASSET_GROUP_ID ;
    l_eam_wo_tbl.DESCRIPTION := rec.DESCRIPTION ;
    --SELECT WIP_ENTITIES_S.NEXTval INTO V_ENTITY_ID FROM DUAL;
    EAM_PROCESS_WO_PUB.PROCESS_MASTER_CHILD_WO
    (P_PO_IDENTIFIER => 'EAM'
    ,P_API_VERSION_NUMBER => 1.0
    ,P_INIT_MSG_LIST => FALSE
    ,P_EAM_WO_RELATIONS_TBL => l_EAM_WO_RELATIONS_TBL
    ,P_EAM_WO_tbl => l_eam_wo_tbl
    , p_eam_op_tbl => l_eam_op_tbl
    , p_eam_op_network_tbl => l_eam_op_network_tbl
    , p_eam_res_tbl => l_eam_res_tbl
    , p_eam_res_inst_tbl => l_eam_res_inst_tbl
    , p_eam_sub_res_tbl => l_eam_sub_res_tbl
    --, p_eam_res_usage_tbl => l_eam_res_usage_tbl
    , p_eam_mat_req_tbl => l_eam_mat_req_tbl
    , p_eam_direct_items_tbl => l_eam_direct_items_tbl
    , x_eam_wo_tbl => l_x_eam_wo_tbl
    , X_EAM_WO_RELATIONS_TBL => l__x_EAM_WO_RELATIONS_TBL
    , x_eam_op_tbl => l_x_eam_op_tbl
    , x_eam_op_network_tbl => l_x_eam_op_network_tbl
    , x_eam_res_tbl => l_x_eam_res_tbl
    , x_eam_res_inst_tbl => l_x_eam_res_inst_tbl
    , x_eam_sub_res_tbl => l_x_eam_sub_res_tbl
    -- , x_eam_res_usage_tbl =>l_x_eam_res_usage_tbl
    , x_eam_mat_req_tbl => l_x_eam_mat_req_tbl
    , x_eam_direct_items_tbl => l_x_eam_direct_items_tbl
    , x_return_status => l_x_return_status
    , x_msg_count => l_x_msg_count
    ,p_commit =>'N'
    , p_debug => 'N'
    , p_output_dir => NULL
    , p_debug_filename => 'EAM_WO_DEBUG.log'
    , p_debug_file_mode => 'w'
    END LOOP;
    END SANG_WR_TO_WO_API;
    COMMIT;
    Thanks ,
    Hanimi

  • Error running a procedure in Python: (wrong number or types of arguments)

    I am getting the following error when trying o execute a stored procedure in python.
    cx_Oracle.DatabaseError: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'LOAD_FILE1'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    When executed from the SQL Plus or sql developer the same procedure runs without any issue. The following is the code of the called procedure:
    create or replace
    PROCEDURE load_file1 (
    P_FILE_NAME in varchar2)* IS
    src_file BFILE;
    dst_file BLOB;
    lgh_file BINARY_INTEGER;
    BEGIN
    src_file := bfilename('inbox_scnr_dir', P_FILE_NAME);
    -- insert a NULL record to lock
    the above procedure updates creates and updates a record in the table.
    I am calling the above procedure as follows in my python code , see the curs.callproc("load_file1",osfile)
    for filename in files:
    osfile = doc_number(filename)
    curs.callproc("load_file1",osfile)+
    db.commit()
    As you can see I am giving only one argument and the type is string as well, it passes the filename like 'abx.txt' to the procedure. So I am not wrong there.
    Am I calling it in a wrong way or the cx_Oracle have some limitation about procedure callings.
    Can the gurus on the forum help me please. Just need a direction to resolve this , if you can guide me.
    Thanks
    Edited by: user10903866 on Feb 28, 2013 5:54 AM
    Edited by: user10903866 on Feb 28, 2013 6:45 AM

    CREATE OR REPLACE
    PACKAGE TESTER AS
    TYPE t_ref_cur IS REF CURSOR;
    PROCEDURE getRS (p_recordset OUT t_ref_cur);
    END;
    CREATE OR REPLACE
    PACKAGE BODY TESTER AS
    PROCEDURE getRS (p_recordset OUT t_ref_cur) AS
    BEGIN
    OPEN p_recordset FOR
    SELECT
    name,
    value
    FROM
    Parameters;
    END;
    END;For this type of procedure call, you should first have the ref cursor declaration like below
    declare
    cur tester.t_ref_cur;
    begin
    tester.getRS (cur);
    for i in cur
    loop
    dbms_output.put_line(i.name);
    end loop;
    close cur;
    end;Using sys_refcursor also, your handling will be same as shown above......sys_refcursor and normal weak ref cursor only make difference if it is stand alone procedure

  • Error : PLS-00306: wrong number or types of arguments

    Hi,
    I have created a function :
    create or replace procedure Test11 AS
    x Test.Emp_No%Type;
    Begin
    select emp_no into x from Test where name = 'Sud';
    x := x + 1;
    update Test set emp_no = x where emp_no < 100;
    commit;
    end Test11;
    This has compiled successfully in PL/SQL Developer. Now, I have created an executable of this procedure in Front end - 11i. And then I have created a Program of this executable. Then I have added this program to a request group.
    Now that I am running this request and I getting this error in the log :
    ORACLE error 6550 in FDPSTP
    Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'TEST11'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    .

    Hi,
    Your procedure is a little confusing. By the way, this procedure has no parameters and I supose that maybe you are calling it with some parameter. Could you check this please?
    Tip: post your code inside tags (start and end tag are the same) to proper formatting :)
    Regards,
    Edited by: Walter Fernández on Dec 3, 2008 10:53 AM - Adding tip...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Error: wrong number or types of arguments

    Getting the following error:-
    wrong number or types of arguments in call to 'XMLTYPE'
    with the following insert statement:-
    INSERT INTO com_xml(name,content)
    VALUES (V_FILENAME,XMLType(bfilename('EMAIL_ATTACH', 'JobInstructions.xml')));
    Any ideas for a fix folks?

    hi guys
    managed a work around with utl_file
    DECLARE
    V_FILENAME VARCHAR2(20):= 'JobInstructions.xml';
    V_PATH     VARCHAR2(100):= '/oracle/attachments';
    +V_XML      CLOB;                 --HOLDS THE CONTENTS OF THE XML FILE TO BE INSERTED IN TO THE DATABASE+
    +VNEWLINE   VARCHAR2(200):= '';   --HOLDS THE LINE TO INSERTED IN TO V_xml+
    +VSFILE     utl_file.file_type;   --HOLDS THE FILE+
    BEGIN
    VSFile := utl_file.fopen(V_PATH, V_FILENAME,'r');
    IF utl_file.is_open(VSFILE) THEN
    LOOP
    BEGIN
    utl_file.get_line(VSFILE, vNewLine);
    IF vNewLine IS NULL THEN
    EXIT;
    ELSE
    V_XML := V_XML||vNewLine;
    END IF;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    EXIT;
    END;
    END LOOP;
    END IF;
    --insert the file into com_xml+
    --INSERT THE FILE CONTENTS+
    INSERT INTO COM_XML(name,content)
    VALUES ('STEW',XMLType(V_XML));
    end;

  • Error PLS-00306: wrong number or types of arguments in call to

    I am getting the following Error when calling stored Procedure, I have tried with Last Parameter PRESULT and WITHOUT IT, it fails in both the instance.
    =======================================================================
    "System.Data.OracleClient.OracleException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'UPDATECOTRACKING'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    =======================================================================
    signature of Stored Procedure is as follow
    (pmaster_key IN sca_costtrackinglog.master_key%type,
         pdoc_master_key IN sca_costtrackinglog.master_key%type,     
    pfrenumber IN sca_costtrackinglog.fre_number%type,     
    pnotice1 IN sca_costtrackinglog.notice1%type,
    pnotice2 IN sca_costtrackinglog.notice2%type,
    padditreceived IN sca_costtrackinglog.additreceived%type,
    pfreanticipate IN sca_costtrackinglog.freanticipate%type,
    pdateofnot IN sca_costtrackinglog.dateofnot%type,
    pdateofmeeting IN sca_costtrackinglog.dateofmeeting%type,
    psenttocontractor IN sca_costtrackinglog.senttocontractor%type,
    pcouforexecution IN sca_costtrackinglog.couforexecution%type,
    pcomments IN sca_costtrackinglog.comments%type,
    pcreateby IN sca_costtrackinglog.createby%type,
    peditby IN sca_costtrackinglog.editby%type,
         presult OUT number) is
    This is the Trace of Parameters from actual Call, that fails with above error.
    Parameter Name : PMASTER_KEY(Input),Type(AnsiString) Size(26), Value = 000328JYA30008HSWBCK01NYC
    Parameter Name : pdoc_master_key(Input),Type(AnsiString) Size(26), Value = 310657KLF30025HSWBCK01NYC
    Parameter Name : PFRENUMBER(Input),Type(AnsiString) Size(12), Value = 00015
    Parameter Name : PNOTICE1(Input),Type(DateTime) Size(1), Value = 3/25/2010
    Parameter Name : PNOTICE2(Input),Type(DateTime) Size(1), Value =
    Parameter Name : PADDITRECEIVED(Input),Type(DateTime) Size(1), Value =
    Parameter Name : PFREANTICIPATE(Input),Type(DateTime) Size(1), Value =
    Parameter Name : PDATEOFNOT(Input),Type(DateTime) Size(1), Value =
    Parameter Name : PDATEOFMEETING(Input),Type(DateTime) Size(1), Value =
    Parameter Name : PSENTTOCONTRACTOR(Input),Type(DateTime) Size(1), Value =
    Parameter Name : pcouforexecution(Input),Type(DateTime) Size(1), Value =
    Parameter Name : pcomments(Input),Type(AnsiString) Size(250), Value =
    Parameter Name : PCREATEBY(Input),Type(AnsiString) Size(50), Value = NYCSCA\tmpns2
    Parameter Name : PEDITBY(Input),Type(AnsiString) Size(50), Value = NYCSCA\tmpns2
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Below is the trace from Data.OracleClient.OracleCommandBuilder.DeriveParameters(Cmd)
    Parameter Name : PMASTER_KEY(Input),Type(AnsiString) Size(2000), Value =
    Parameter Name : PDOC_MASTER_KEY(Input),Type(AnsiString) Size(2000), Value =
    Parameter Name : PFRENUMBER(Input),Type(AnsiString) Size(2000), Value =
    Parameter Name : PNOTICE1(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PNOTICE2(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PADDITRECEIVED(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PFREANTICIPATE(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PDATEOFNOT(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PDATEOFMEETING(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PSENTTOCONTRACTOR(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PCOUFOREXECUTION(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PCOMMENTS(Input),Type(AnsiString) Size(2000), Value =
    Parameter Name : PCREATEBY(Input),Type(AnsiString) Size(2000), Value =
    Parameter Name : PEDITBY(Input),Type(AnsiString) Size(2000), Value =
    Parameter Name : PRESULT(Output),Type(VarNumeric) Size(0), Value =
    ******************************************************************************************************************

    In the Oracle database, the body of the package FWA_PRI API, the procedure ValidatePri declares P_PriREc as being :
    PAYMENT_REQUEST_IMPORT%ROWTYPE
    As you can see above, the DoPri Procedure expects a type p_PriRec as its second argument.
    Therefore in my procedure I do the following:
    create or replace procedure spMatchPayment is
    BEGIN
    DECLARE
           CURSOR StageCurs IS SELECT * FROM PAYMENT_REQUEST_IMPORT;
                  p_payment_req_import PAYMENT_REQUEST_IMPORT%ROWTYPE;
                  BEGIN
                       OPEN StageCurs();
                            LOOP
                                FETCH StageCurs INTO P_payment_req_import;
                                EXIT WHEN StageCurs%NOTFOUND;
                                fwa_pri.DoPri(NULL, fwa_pri.DoPri('M',P_PriRec => p_payment_req_import);                           
                             END LOOP;
                        CLOSE StageCurs;
                   END;
    end spMatchPayment;
    Now, when I am trying to compile I am getting the Compilation errors for PROCEDURE IMPACT.SPMATCHPAYMENT
    Error: PLS-00306: wrong number or types of arguments in call to 'DOPRI'
    Line: 16
    Text: fwa_pri.DoPri(NULL,P_PriRec => p_payment_req_import);
    I don't see what's wrong on my code......HELP!!

  • PLSQL Concurrent error: wrong number or types of arguments in call

    Hi there,
    I've defined a PLSQL Concurrent with 2 parameters:
    10) DELIVERABLE_ID using valueset 10/Number (A 10 digit positive number field with no validation)
    20) STATUS using valueset 10 Characters (10 Characters free text with no validation)
    My request run into error, with parameter values DELIVERABLE_ID = 105367,STATUS=New
    Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'EBOARD_WF_START'
    ORA-06550: line 1, column 7:
    But I ran the the same PLSQL from toad
    ADB_PA_BC_WF.EBOARD_WF_START (105367,'New');
    I dont have any error, it completed successfully.
    Any clue what gone wrong?

    You need to define package / procedure with RETCODE and ERRBUF arguments to call as concurrent program.
    procedure my_cp
    ( errbuf out varchar2,
    retcode out varchar2,
    p_arg1 in varchar2,
    p_arg2 in varchar2
    Regards,
    Gareth

  • PLS-00306: wrong number or types of arguments in call to . Error Help

    I have create a algorithm which The member function at the end, returns xc and yc.
    ERROR at line 9:
    ORA-06550: line 9, column 63:
    PLS-00306: wrong number or types of arguments in call to 'o'
    ORA-06550: line 9, column 2:
    PL/SQL: Statement ignored

    Guess your function has: RETURN NUMBER
    If so, the statement RETURN 'True' will give you exactly that error.
    Also:
    Return xc;
    Return yc;
    does not work as intended. The function will end by returning xc. (If it ever makes it that far)

  • PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMI

    I am trying to submit the payables open interface import program using BPEL process. BUT I am unable to submit the concurrent program. The invoke function is failing with below message.
    [2010/08/25 17:06:22] Faulted while invoking operation "OFAPOPIIMPORT" on provider "OFAPOPIIMPORT".less
    -<messages>
    -<input>
    -<Invoke_1_OFAPOPIIMPORT_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
    -<InputParameters xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/XX_BPEL_FND_REQUEST_SUBMIT_REQ/FND_REQUEST-24SUBMIT_REQUEST/" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/XX_BPEL_FND_REQUEST_SUBMIT_REQ/FND_REQUEST-24SUBMIT_REQUEST/">
    <db:APPLICATION>200</db:APPLICATION>
    <db:PROGRAM>APXIIMPT</db:PROGRAM>
    <db:DESCRIPTION>Test</db:DESCRIPTION>
    <db:START_TIME/><db:SUB_REQUEST/>
    <db:OperatingUnit>NYSIF</db:OperatingUnit>
    <db:Source>DBL</db:Source>
    <db:Group/>
    <db:BatchName>TESTRAMBPEL1</db:BatchName>
    <db:HoldName/>
    <db:HoldReason/>
    <db:GLDate/>
    <db:Purge>N</db:Purge>
    <db:TraceSwitch>N</db:TraceSwitch>
    <db:DebugSwitch>N</db:DebugSwitch>
    <db:SummarizeReport>N</db:SummarizeReport>
    <db:CommitBatchSize>1000</db:CommitBatchSize>
    <db:UserID>4842</db:UserID>
    <db:LoginID>1683090</db:LoginID>
    </InputParameters>
    </part>
    </Invoke_1_OFAPOPIIMPORT_InputVariable>
    </input>
    -<fault>
    -<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="code">
    <code>6550
    </code>
    </part>
    -<part name="summary">
    <summary>
    file:/C:/product/10.1.3.1/OraBPEL_1/bpel/domains/default/tmp/.bpel_APOPIIMPORT_1.0_91d4c6c1050ed25d005bc0d396a9db24.tmp/OFAPOPIIMPORT.wsdl [ OFAPOPIIMPORT_ptt::OFAPOPIIMPORT(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'OFAPOPIIMPORT' failed due to: Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the APPS.XX_BPEL_FND_REQUEST_SUBMIT_REQ.FND_REQUEST$SUBMIT_REQUEST API. Cause: java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    [Caused by: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ; nested exception is:
         ORABPEL-11811
    Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the APPS.XX_BPEL_FND_REQUEST_SUBMIT_REQ.FND_REQUEST$SUBMIT_REQUEST API. Cause: java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    [Caused by: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Check to ensure that the API is defined in the database and that the parameters match the signature of the API. Contact oracle support if error is not fixable.
    </summary>
    </part>
    -<part name="detail">
    <detail>
    Internal Exception: java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Error Code: 6550
    </detail>
    </part>
    </remoteFault>
    </fault>
    </messages>
    [2010/08/25 17:06:22] "{http://schemas.oracle.com/bpel/extension}remoteFault" has been thrown. More...
    -<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="code">
    <code>6550
    </code>
    </part>
    -<part name="summary">
    <summary>
    file:/C:/product/10.1.3.1/OraBPEL_1/bpel/domains/default/tmp/.bpel_APOPIIMPORT_1.0_91d4c6c1050ed25d005bc0d396a9db24.tmp/OFAPOPIIMPORT.wsdl [ OFAPOPIIMPORT_ptt::OFAPOPIIMPORT(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'OFAPOPIIMPORT' failed due to: Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the APPS.XX_BPEL_FND_REQUEST_SUBMIT_REQ.FND_REQUEST$SUBMIT_REQUEST API. Cause: java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    [Caused by: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ; nested exception is:
         ORABPEL-11811
    Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the APPS.XX_BPEL_FND_REQUEST_SUBMIT_REQ.FND_REQUEST$SUBMIT_REQUEST API. Cause: java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    [Caused by: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Check to ensure that the API is defined in the database and that the parameters match the signature of the API. Contact oracle support if error is not fixable.
    </summary>
    </part>
    -<part name="detail">
    <detail>
    Internal Exception: java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Error Code: 6550
    </detail>
    </part>
    </remoteFault>
    I thought I am providing the values for the required parameters. But still I am unable to submit. Could some one help me on fixing this issue?
    Thanks,

    That's probably your problem.
    Look at http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28351/T430238T430241.htm
    Search for "One-time Workaround for Concurrent Programs" in that document.

  • Pl. help debug - PLS-00306: wrong number or types of arguments in call

    Hi,
    I am trying to create a wrapper function to all a procedure in Oracle EBusiness Suite 11i.
    When I compile the following code
    ==========
    CREATE OR REPLACE PROCEDURE gme.KIL_ProcessAlloc IS
    vFileName VARCHAR2(30) := '1006251.csv';
    vLoc VARCHAR2(20) := '/u041/applmgr/opm/opmappl/utllog';
    v_InHandle utl_file.file_type;
    vNewLine VARCHAR2(1000);
    vLineNo PLS_INTEGER;
    c1 PLS_INTEGER;
    c2 PLS_INTEGER;
    c3 PLS_INTEGER;
    c4 PLS_INTEGER;
    c5 PLS_INTEGER;
    c6 PLS_INTEGER;
    c7 PLS_INTEGER;
    c8 PLS_INTEGER;
    c9 PLS_INTEGER;
    c10 PLS_INTEGER;
    c11 PLS_INTEGER;
    c12 PLS_INTEGER;
    c13 PLS_INTEGER;
    c14 PLS_INTEGER;
    c15 PLS_INTEGER;
    c16 PLS_INTEGER;
    c17 PLS_INTEGER;
    c18 PLS_INTEGER;
    c19 PLS_INTEGER;
    c20 PLS_INTEGER;
    c21 PLS_INTEGER;
    c22 PLS_INTEGER;
    c23 PLS_INTEGER;
    c24 PLS_INTEGER;
    c25 PLS_INTEGER;
    c26 PLS_INTEGER;
    c27 PLS_INTEGER;
    c28 PLS_INTEGER;
    c29 PLS_INTEGER;
    c30 PLS_INTEGER;
    c31 PLS_INTEGER;
    c32 PLS_INTEGER;
    c33 PLS_INTEGER;
    c34 PLS_INTEGER;
    TYPE AllocArray IS TABLE OF GME_INVENTORY_TXNS_GTMP%ROWTYPE
    INDEX BY BINARY_INTEGER;
    l_Allocdata AllocArray;
    TYPE MtlDetailArray IS TABLE OF gme_material_details%ROWTYPE
    INDEX BY BINARY_INTEGER;
    l_MtlDetaildata MtlDetailArray;
    TYPE xTranArray IS TABLE OF GME_INVENTORY_TXNS_GTMP%ROWTYPE
    INDEX BY BINARY_INTEGER;
    l_xtrandata xTranArray;
    TYPE defTranArray IS TABLE OF GME_INVENTORY_TXNS_GTMP%ROWTYPE
    INDEX BY BINARY_INTEGER;
    l_deftrandata defTranArray;
    t_messagecount number;
    t_messagelist varchar2(10000);
    t_returnstatus varchar2(1);
    BEGIN
    v_InHandle := utl_file.fopen(vLoc, vFileName, 'r');
    vLineNo := 1;
    LOOP
    BEGIN
    utl_file.get_line(v_InHandle, vNewLine);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    EXIT;
    END;
    vNewLine := TRANSLATE(vNewLine, 'A''', 'A');
    c1 := INSTR(vNewLine, ',', 1,1);
    c2 := INSTR(vNewLine, ',', 1,2);
    c3 := INSTR(vNewLine, ',', 1,3);
    c4 := INSTR(vNewLine, ',', 1,4);
    c5 := INSTR(vNewLine, ',', 1,5);
    c6 := INSTR(vNewLine, ',', 1,6);
    c7 := INSTR(vNewLine, ',', 1,7);
    c8 := INSTR(vNewLine, ',', 1,8);
    c9 := INSTR(vNewLine, ',', 1,9);
    c10 := INSTR(vNewLine, ',', 1,10);
    c11 := INSTR(vNewLine, ',', 1,11);
    c12 := INSTR(vNewLine, ',', 1,12);
    c13 := INSTR(vNewLine, ',', 1,13);
    c14 := INSTR(vNewLine, ',', 1,14);
    c15 := INSTR(vNewLine, ',', 1,15);
    c16 := INSTR(vNewLine, ',', 1,16);
    c17 := INSTR(vNewLine, ',', 1,17);
    c18 := INSTR(vNewLine, ',', 1,18);
    c19 := INSTR(vNewLine, ',', 1,19);
    c20 := INSTR(vNewLine, ',', 1,20);
    c21 := INSTR(vNewLine, ',', 1,21);
    c22 := INSTR(vNewLine, ',', 1,22);
    c23 := INSTR(vNewLine, ',', 1,23);
    c24 := INSTR(vNewLine, ',', 1,24);
    c25 := INSTR(vNewLine, ',', 1,25);
    c26 := INSTR(vNewLine, ',', 1,26);
    c27 := INSTR(vNewLine, ',', 1,27);
    c28 := INSTR(vNewLine, ',', 1,28);
    c29 := INSTR(vNewLine, ',', 1,29);
    c30 := INSTR(vNewLine, ',', 1,30);
    c31 := INSTR(vNewLine, ',', 1,31);
    c32 := INSTR(vNewLine, ',', 1,32);
    c33 := INSTR(vNewLine, ',', 1,33);
    c34 := INSTR(vNewLine, ',', 1,34);
    -- l_allocdata(vLineNo).sourceno := SUBSTR(vNewLine,1,c1-1);
    -- l_allocdata(vLineNo).sizeno := SUBSTR(vNewLine,c1+1,c2-c1-1);
    -- l_allocdata(vLineNo).status := SUBSTR(vNewLine,c2+1,c3-c2-1);
    -- l_allocdata(vLineNo).latitude := SUBSTR(vNewLine,c3+1,c4-c3-1);
    -- l_allocdata(vLineNo).longitude := SUBSTR(vNewLine,c4+1,c5-c4-1);
    -- l_allocdata(vLineNo).testfor := SUBSTR(vNewLine,c5+1);
    l_allocdata(vLineNo).trans_id := SUBSTR(vNewLine,1,c1-1);
    l_allocdata(vLineNo).item_id := SUBSTR(vNewLine,c1+1,c2-c1-1);
    l_allocdata(vLineNo).co_code := SUBSTR(vNewLine,c2+1,c3-c2-1);
    l_allocdata(vLineNo).orgn_code := SUBSTR(vNewLine,c3+1,c4-c3-1);
    l_allocdata(vLineNo).whse_code := SUBSTR(vNewLine,c4+1,c5-c4-1);
    l_allocdata(vLineNo).lot_id := SUBSTR(vNewLine,c5+1,c6-c5-1);
    l_allocdata(vLineNo).location := SUBSTR(vNewLine,c6+1,c7-c6-1);
    l_allocdata(vLineNo).doc_id := SUBSTR(vNewLine,c7+1,c8-c7-1);
    l_allocdata(vLineNo).doc_type := SUBSTR(vNewLine,c8+1,c9-c8-1);
    l_allocdata(vLineNo).doc_line := SUBSTR(vNewLine,c9+1,c10-c9-1);
    l_allocdata(vLineNo).line_type := SUBSTR(vNewLine,c10+1,c11-c10-1);
    l_allocdata(vLineNo).reason_code := SUBSTR(vNewLine,c11+1,c12-c11-1);
    l_allocdata(vLineNo).trans_date := SUBSTR(vNewLine,c12+1,c13-c12-1);
    l_allocdata(vLineNo).trans_qty := SUBSTR(vNewLine,c13+1,c14-c13-1);
    l_allocdata(vLineNo).trans_qty2 := SUBSTR(vNewLine,c14+1,c15-c14-1);
    l_allocdata(vLineNo).qc_grade := SUBSTR(vNewLine,c15+1,c16-c15-1);
    l_allocdata(vLineNo).lot_status := SUBSTR(vNewLine,c16+1,c17-c16-1);
    l_allocdata(vLineNo).trans_stat := SUBSTR(vNewLine,c17+1,c18-c17-1);
    l_allocdata(vLineNo).trans_um := SUBSTR(vNewLine,c18+1,c19-c18-1);
    l_allocdata(vLineNo).trans_um2 := SUBSTR(vNewLine,c19+1,c20-c19-1);
    l_allocdata(vLineNo).completed_ind := SUBSTR(vNewLine,c20+1,c21-c20-1);
    l_allocdata(vLineNo).staged_ind := SUBSTR(vNewLine,c21+1,c22-c21-1);
    l_allocdata(vLineNo).gl_posted_ind := SUBSTR(vNewLine,c22+1,c23-c22-1);
    l_allocdata(vLineNo).event_id := SUBSTR(vNewLine,c23+1,c24-c23-1);
    l_allocdata(vLineNo).text_code := SUBSTR(vNewLine,c24+1,c25-c24-1);
    l_allocdata(vLineNo).transaction_no := SUBSTR(vNewLine,c25+1,c26-c25-1);
    l_allocdata(vLineNo).action_code := SUBSTR(vNewLine,c26+1,c27-c26-1);
    l_allocdata(vLineNo).material_detail_id := SUBSTR(vNewLine,c27+1,c28-c27-1);
    l_allocdata(vLineNo).organization_id := SUBSTR(vNewLine,c28+1,c29-c28-1);
    l_allocdata(vLineNo).locator_id := SUBSTR(vNewLine,c29+1,c30-c29-1);
    l_allocdata(vLineNo).subinventory := SUBSTR(vNewLine,c30+1,c31-c30-1);
    l_allocdata(vLineNo).alloc_um := SUBSTR(vNewLine,c31+1,c32-c31-1);
    l_allocdata(vLineNo).alloc_qty := SUBSTR(vNewLine,c32+1,c33-c32-1);
    l_allocdata(vLineNo).def_trans_ind := SUBSTR(vNewLine,c33+1,c34-c33-1);
    vLineNo := vLineNo+1;
    END LOOP;
    utl_file.fclose(v_InHandle);
    FOR i IN 1..vLineNo-1 loop
    GME_API_PUB.insert_line_allocation (
         1,
         100,
         FALSE,
         True,
         l_allocdata(i),
         null,
         null,
         false,
         false,
         false,
         l_MtlDetailData,
         l_xtrandata,
         l_deftrandata,
         t_messagecount,
         t_messagelist,
         t_returnstatus);
    end loop;
         IF (t_returnstatus <> 'S') THEN
    for i IN 1 .. t_messagecount LOOP
    dbms_output.put_line('The text is '||FND_MSG_PUB.get(i,t_messagelist));
    END LOOP;
    END IF;
    -- COMMIT;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE;
    END KIL_ProcessAlloc;
    ===============
    I get this
    Warning: Procedure created with compilation errors.
    SQL> sho err
    Errors for PROCEDURE GME.KIL_PROCESSALLOC:
    LINE/COL ERROR
    145/8 PLS-00306: wrong number or types of arguments in call to
    'INSERT_LINE_ALLOCATION'
    145/8 PL/SQL: Statement ignored
    =================
    The package specs of GME_API_PU is under:
    ===============
    PROCEDURE insert_line_allocation (
    p_api_version IN NUMBER := gme_api_pub.api_version
    ,p_validation_level IN NUMBER := gme_api_pub.max_errors
    ,p_init_msg_list IN BOOLEAN := FALSE
    ,p_commit IN BOOLEAN := FALSE
    ,p_tran_row IN gme_inventory_txns_gtmp%ROWTYPE
    ,p_lot_no      IN     VARCHAR2 DEFAULT NULL
    ,p_sublot_no      IN     VARCHAR2 DEFAULT NULL
    ,p_create_lot     IN BOOLEAN DEFAULT FALSE
    ,p_ignore_shortage     IN BOOLEAN DEFAULT FALSE
    ,p_scale_phantom     IN BOOLEAN DEFAULT FALSE
    ,x_material_detail     OUT gme_material_details%ROWTYPE
    ,x_tran_row     OUT gme_inventory_txns_gtmp%ROWTYPE
    ,x_def_tran_row     OUT gme_inventory_txns_gtmp%ROWTYPE
    ,x_message_count OUT NUMBER
    ,x_message_list OUT VARCHAR2
    ,x_return_status     OUT VARCHAR2);
    GME_API_PUB.insert_line_allocation
    ===========
    What am I doing wrong...why am I getting PLS-00306.
    Can someone help?
    Thank you
    Sundar
    [email protected]

    Hi John,
    Thanks a ton - a nice Christmas gift. Thank you for being a Santa :-).
    I used the same subscript as the one used for in parameter and the procedure compiled without errors.
    A corollary: If (any of the) Out parameter is null (all columns of the row/array), will the array row element still be stored ? May be I cross the bridge when I come to it.
    Merry Christmas.
    Sundar

Maybe you are looking for

  • How do i view a movie on my laptop on the tv?

    how do i view a movie on my laptop on the tv?

  • EFT Payment - Supplier Ref No

    I am using the Australian Payment Engine to generate an EFT file to pay suppliers. One of our supplier requires that we enter a unique Code in the Reference No. field in the EFT file, so that they can identify who has paid them. Does SAP allow for th

  • IDOC meta data

    Hi All, I am trying a file-idoc scenario. I have imported the IDOC in IR and done with the mappings. I have created a RFC destination to R/3 server of type 3. Also I have created a port in IDX1 with the created RFC destination. In IDX2 I cant find th

  • QUEUE_NAME for outbound

    Hallo, when i have a rfc-destination i need to assign a queue for destination? Because this error occured by invoking a bapi over plain http-adapter (QoS=EOIO): Result:   <SAP:Error> <SAP:Category>XIServer</SAP:Category> <SAP:Code>INTERNAL.ATTRIBUTE_

  • Will os x 10.5 run on my emac g4?

    Hello, I have an old Emac g4 (ATI) with a 30gb hard drive and 512 mb of ram. I heard this machine can run mac os x 10.5 but I wasn't sure if this was true. Can my machine run it and if not, what is the best os to use? Current os is 10.3.9