Proc of PL/SQL call on submit process page returns "PLS-00306: fake...» »

I have a very simple procedure call. The procedure takes 3 inputs: 2 numbers, and a Boolean value. Every time I try to run the page that calls the proc, I get
"ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in the call to 'MISSED_DAY_CLASS' ORA-06550: line 1, column 7: PL/SQL: statement ignored."
I ran the Debug page and values, it's the award appear to be 2 numbers and 1 boolean (TRUE). I executed the same values in the call to the proc outdoors using sql dev and proc call works fine.

The Boolean value is set via a checkbox with this LOV element:
STATIC2:; TRUE

Any ideas are appreciated.
Thank you
Reid

Hello

I think that the value of the checkbox is not Boolean. It is text (VARCHAR).

If you change the procedure as well as boolean is varchar2, it works then?
Or in the process of Apex call differently for example

IF :Px_YOUR_CHECKBOX = 'FALSE' THEN
 yourprocedure(:Px_NUMBER_ITEM1,:Px_NUMBER_ITEM2, FALSE);
ELSIF :Px_YOUR_CHECKBOX = 'TRUE' THEN
 yourprocedure(:Px_NUMBER_ITEM1,:Px_NUMBER_ITEM2, TRUE);
END IF;

I hope you get photo off what I mean

BR, Jari

Tags: Database

Similar Questions

  • Process page returns ORA-06550: error

    APEX 4.1

    Oracle 11g

    Analysis of schema: MDM_APEX

    Data tables: MDM_DATA

    Creating a page process to take several pieces of an item in the list and insert it into a table.

    I use a function that works in the database (when it is called by SQL + and the toad) but get the following error message when you try to create the page APEX process:

    1 error has occurred

    ORA-06550: line 3, column 22: PL/SQL: ORA-00904: "UTIL". ' ' SPLIT ': invalid identifier ORA-06550: line 2, column 1: PL/SQL: statement ignored

    I have granted running the privs to APEX_040100 and MDM_APEX on the packaging. This function works in another application, but not to recognize in this application.

    Google search finds no solutions used for this question with regard to APEX. Suggestions on how to recognize the function of the APEX?


    Thank you

    Tim


    < code >

    Process page:

    INSERT INTO MDM_DATA. REF_CMR (STORE_CD)

    (SELECT * FROM TABLE (UTIL.) SPLIT (:P400_STORE_LIST,':')));

    < code >

    < code >

    CREATE OR REPLACE PACKAGE MDM_DATA. UTIL

    AS

    SPLIT FUNCTION (P_LIST VARCHAR2, P_DEL VARCHAR2: = ',') SPLIT_TBL RETURN PIPELINE;

    Etc...

    End UTIL;

    CREATE OR REPLACE PACKAGE BODY MDM_DATA. UTIL

    AS

    SPLIT FUNCTION (P_LIST VARCHAR2, P_DEL VARCHAR2: = ',') SPLIT_TBL RETURN PIPELINE

    AS

    L_IDX PLS_INTEGER;

    L_LIST VARCHAR2 (32767): = P_LIST;

    L_VALUE VARCHAR2 (32767).

    BEGIN

    LOOP

    L_IDX: = INSTR (L_LIST, P_DEL);

    IF L_IDX > 0

    THEN

    LINE OF CONDUCT (SUBSTR (L_LIST, 1, L_IDX - 1));

    L_LIST: = SUBSTR (L_LIST, L_IDX + LENGTH (P_DEL));

    ON THE OTHER

    PIPE ROW (L_LIST);

    EXIT;

    END IF;

    END LOOP;

    RETURN;

    EXCEPTION

    WHILE OTHERS THEN

    NULL;

    END SPLIT;


    ETC...

    End util;

    < code >

    INSERT INTO MDM_DATA. REF_CMR (STORE_CD)

    (SELECT * FROM TABLE (MDM_DATA. )) UTIL. SPLIT (:P400_STORE_LIST,':')));

  • Display error message when a condition in the process page returns false

    Hello

    I doubt by displaying the error message in a page. In my treatment of the page, I have a process that is assosiated with

    a press the button. In the process, I have an 'if' condition and insert in a table when the "If" condition returns true. If

    It returns false that I need to display an error message like "cannot insert a value. I tried to give him in the error of process

    message, but it is not displaying when the if condition fails. Help, please


    Thank you

    TJ

    Edited by: tj2010 Oct 6, 2009 21:25

    Hello

    Have you tried

    If condition = true
    then
    insert into the table;
    on the other
    apex_application.g_print_success_message: = "your Message here";
    end if;

    Make sure that the branch on the page that is triggered after your process has the "success of process message includes" checked.

    Concerning

    Paul

  • Running PL/SQL: CALL the DBMS_DEBUG_JDWP. DISCONNECT()

    Is there something wrong with the 3.0.04 Version? I tried to debug a package but I got in the newspaper:
    Connecting to the database hr.
    Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
    Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '192.168.1.15', '49430' )
    Debugger accepted connection from database on port 49430.
    Executing PL/SQL: CALL DBMS_DEBUG_JDWP.DISCONNECT()
    Process exited.
    Disconnecting from the database hr.
    Debugger disconnected from database.
    It throws no error, but it does not debug...
    Or have I missed something?
    I use:
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    on windows 7

    Best regards
    Val

    Published by: Valerie good-natured December 10, 2011 02:15

    Hi Valerie,

    Without focus on the specific version of SQL Developer or your type of operating system and version, here are some points to consider:

    1 - Compile with debug information:
         Compile with Tools|Preferences|Database|PL/SQL Compiler Optimization level set to 1 or 2, or
         Compile for Debug
    2 - Make sure you have set at least one breakpoint and that it is on a executable line of code  
    

    Hope this helps,
    Gary
    SQL development team

  • JavaScript is not called by the process of PL/SQL

    Hello Experts

    I try to call a javascript function from pl/sql using htp.p process, but javascript does not get mentioned. In fact, my requirement is as follows:-

    I have a report with check boxes. I use apex_application.g_X01.count to loop through the boxes and check the values of the report. If all of the checkboxes are selected, then I want to show a confirmation box so that the user can confirm that they want to go ahead and do the follow-up actions.

    My Javascript function that I placed it in the HTML header and the Body attribute is:-

    function confirm_response()
    {
    var answer = confirm ("test", "Confirm");
    If (response)
    {
    $x('P1_FLAG').value = 'Y ';
    }

    }

    Looks like my pl/sql process, which currently is trying to evoke the javascript: -.

    Start
    IF apex_application.g_f01.count = < < a number > > THEN
    HTP. P ("< script type =" text/javascript"> ');
    HTP. P ('confirm_response()');
    HTP. P ("< /script >" ");
    IF: P1_FLAG = 'Y' THEN
    -Continue with follow-up actions
    ON THE OTHER
    -To get out the process of
    END IF;
    END IF;

    end;

    But when I run the present that it does not work. The confirmation box never appears.

    It does not even if I change the PL/SQL process as below: -.


    Start
    HTP. P ("< script type =" text/javascript"> ');
    HTP. P ('confirm_response()');
    HTP. P ("< /script >" ");
    end;

    Can someone please advice.

    Thank you

    Hello
    >
    It does not meet my needs because I want first of all check if all the boxes are ticked, then only run javascript.
    >

    So how count the boxes checked in JS is the question.

    Continuing to your operation code snippet, you have box f01.

    Modify the script in the HTML header to this

    
    

    See you soon,.

  • By the way the values and the process of PL/SQL call via a column binding

    Hi all

    I have a report and a link on one of the columns that you take you to another page and passes the data from the report to this page. Everything works well. In addition to picking up the details of the report, that I join the link to call a process page before it goes to the next page by using some of the values picked up in the report. This I can go to work by changing the link to a URL and put in some javascript that is to say javascript:doSubmit('TEST_PROCESS'); By doing this "Lose" the opportunity to pass the info according to the report, via the link.

    Can someone give me a clue as to how I can achieve both please? I guess I need to create my own javascript function, but I don't know how to enter the information of a line in a report to send.

    Concerning
    Helen

    Helen:

    JavaScript works against the current page's HTML elements. Application parts are NOT HTML elements and can therefore be manipulated directly from Javascript.

    CITY

  • The call for a process when you click the link export v4.1.1.00.23

    Version 4.1.1.00.23

    Hello

    I have 6 Classic reports on the page.

    Each report has link active Export.

    I need to insert the set of results that is questioned about the report in a table. Each report is independent of each other.

    Each report has its own table to insert the result set in.

    My thought was to call a process Page when a user has clicked on the link export, but the process is not known. I put: apex_application.g_print_success_message: = 'Insert '; in the process of the Page to tell if the process was called. I think that the process is not called because the page is not sent when the user clicks on the link to the export. It is purely a guess.

    What I tried:

    Working with just the first report, I created a page element hidden in the region of the report and created a calculation before heading for the region ID.

    SELECT region_id
    FROM   apex_application_page_regions
    WHERE  application_id = :APP_ID AND
           page_id = :APP_PAGE_ID AND
           region_name = 'My First Report Region'
    

    Then on the wording of the link for the link export in the attributes report I put:

    < a href = "f? "p = & APP_ID.:124: & SESSION.: FLOW_EXCEL_OUTPUT_R & P124_ESSCSD_REGION_ID._en - us" > Export CSV - my first data reports < /a >

    The Condition, that I used in the process of the Page is:

    Point process: submit now - after calculations and Validations

    PL/SQL -: REQUEST = FLOW_EXCEL_OUTPUT_R & P124_ESSCSD_REGION_ID._en - us

    of course, that didn't work so I tried it - "FLOW_EXCEL_OUTPUT_R" | & P124_ESSCSD_REGION_ID. | "_en - us

    and I tried it - "FLOW_EXCEL_OUTPUT_R" | : P124_ESSCSD_REGION_ID | "_en - us

    None of which worked.

    SO, can someone help me with a solution called a process to insert the data in the report, when the Export link is called?

    What information can I I provide/clarify?

    Thank you

    Joe

    Knew that I had seen cela somewhere... Try to watch this blog of Martin D: D'Souza Giffy Martin on Oracle APEX: APEX report download recorder

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • Apex. Submit-&gt; process to run one of the two stored procedures on page

    version: 4.2.5

    page one region: form on the stored procedure

    region of page two: form on the stored procedure

    The region button 'submit' for the region page 2:

    ACTION: Redirect URL

    Run Validations: YES

    Target URL: javascript:apex.submit ('CALL_MY_PROC');

    'Treatments' execute the stored procedure

    Point process: submit now - after calculations and Validations

    Enforcement process: once a Page visit (by default)

    ...

    Conditions

    When you press the button:-no Condition button

    Condition type: request = Expression 1

    Expression 1: REQUEST = CALL_MY_PROC

    The expected behavior is to call the stored procedure in the region on two page without invoking the other stored procedure.  Separation of concerns is desired, this button sends the form this proc, this button argues that form to this proc.  Nor should call each other, so to speak.

    The stored procedure is not called when I click 'Submit' (button from region to region page two).  How can I solve this?

    Thanks in advance for any guidance.

    -abe

    Solution: the status... are not REQUEST =

    -abe

  • Error ora-02019 in PL/SQL call in the apex, but not in a SQL Client

    Hello

    I encountered a strange problem. I have a process page type PL/SQL that runs on submit a form.

    This process calls a PL/SQL package function.

    When I run the PL/SQL Code from a SQL, for example SQL Navigator Client it works without problems.

    When trying to run from the APEX, it is always fails with the error:

    ORA-02019: description of the connection to the remote database not found

    It's the SAME code in both situations.

    It's the process code:

    DECLARE

    v_result INTEGER. v_result_msg VARCHAR2 (4000);

    v_ref_date DATE; v_reset INTEGER.

    BEGIN

    -Prepare the arguments

    v_ref_date: = TO_DATE (: P73_REFERENCE_DATE, ' DD/MM/YYYY');

    v_reset: =: P73_RESET;

    -Use the feature

    TRC.trc_jobs.xade_daily_job (v_ref_date, v_reset, v_result, v_result_msg);

    END;

    When I debug Apex I trace to the bottom of the error, in a job that makes a join with a table in a database link.

    It is the offending function:

    FUNCTION (p_series_name IN VARCHAR2, p_date AS get_series_cfi_code,

    p_date_active_flag in FULL)

    RETURN VARCHAR2

    IS

    v_cfi_code instrument_type.full_cfi_code@dl_herds%TYPE;

    CURSOR c_get_series_cfi_code IS

    SELECT it.full_cfi_code

    I, instrument_type@dl_herds INSTRUMENTS it

    WHERE i.series_name = p_series_name

    AND ((i.expiration_date = p_date AND p_date_active_flag = 0) OR)

    (i.expiration_date > = p_date AND p_date_active_flag = 1))

    AND i.product_id2 = it.id

    ORDER BY i.expiration_date;

    BEGIN

    OPEN c_get_series_cfi_code.

    SEEK c_get_series_cfi_code INTO v_cfi_code;

    CLOSE C_get_series_cfi_code;

    RETURN v_cfi_code;

    END get_series_cfi_code;

    No idea why this is happening?

    I think to reproduce the table locally to eliminate the use of dblink as a last resort.

    APEX Version: 4.2.4.00.08

    Database version: 12.1.0.1.0

    NLS: UTF - 8

    TIA,

    Dionisis

    Are you sure that the dblink is accessible from the scheme of the analysis of the application? Run the code in your sql client in the same pattern?

  • Redirect to the new page of pl sql / process page?

    Hello

    I'm working on a page with a form for users to download the data.  When you press the "submit" button, it runs a process Page.  After the process is complete (i.e., to insert a new record of DB) we need to create a branch to a new page with treatment notes (defined in the process).  I tried to save the notes to an item on the first page and then configure a branch that fires "to submit, after treatment...". ' and includes notes in the industry, setting the value of an item on the new page.  It works in part but seems to truncate the value of the notes.  Is there a limit to the length of the string that can be passed via a branch page?

    Or is there a better way to do it?  Maybe there is a way to branch directly in the process?  If so, it would be easier because I wouldn't have if all goes well define a page element, just to pass this value along to the new page.

    Thank you

    Steve

    Hi Steve. 1234555 - Oracle,

    Agree with the suggestion of fac586:

    The value of the item on the new page can be defined directly in the process, or later without including the value in the branch (make sure that the direction is not clear the session state in the target page). Even better would be to give notes a structure to put them in a collection and displays them using a report.

    Here's how you can do if your process is PL/SQL:

    DECLARE
    
      L_NOTES VARCHAR2(512);
    
    BEGIN
    
      -- process for insertion and setting notes
    
      -- setting notes item on page to be branched
      APEX_UTIL.SET_SESSION_STATE('P2_NOTES', L_NOTES);
    
      -- redirecting/branching to the page
      APEX_UTIL.REDIRECT_URL (
          P_URL => 'f?p=' || :APP_ID || ':2:'|| :APP_SESSION ||'::NO:::' );
    
    END;
    

    Reference:

    I hope this helps!

    Kind regards

    Kiran

  • the call for a process of apex after a javascript called the same key

    A url button calls a procedure of java script in the header,
    but then I need a process by their Summit to run after that.
    How can I do that.
    Thank you
    Doug

    Hi Doug,.

    A few questions for you...


    1. What features are you trying to reach?

    2. What APEX version do you use?

    3. When you say 'process', do you mean "process Page"?

    There are certainly ways to submit the page and trigger a process page to run via JavaScript, but it would be good to better understand your needs before offering has some solution first.

    Kind regards
    Anthony.

  • Call another bpel process BPEL process

    Hi all

    I created 2 processes BPEL (main & Sub procedure).
    My hand-process I tried to call the sub-process thro' INVOKE activity.

    The way, I tried:

    A link partner for subprocess in my hand-process giving the sub-proc. path of WSDL.

    To pass values from beneath treat I have a value assigned to the variable entry invoke activity.

    When I run my main process, the display of flow in BPEL ENgine displays only the sub-process with error like

    Error in assessing <>expression.
    The result is empty for the XPath: "client: SUBProcessRequest / client: entry.

    Guide me wht, I was wrong.


    Thank you
    VIKI.

    Hello

    Your input message passed to the procedure, go to the XPATH expression "customer: SUBProcessRequest / client: entry" fails, it might be that the input messages is not mapped in the namesspaces or the message you send is not the element "customer: input.

    Marc

  • "ORA-06508: PL/SQL: called program unit could not be found.

    Hi all

    I'm not able to run a map after deployment. It is said "ORA-06508: PL/SQL: called program unit is not found" any help is greatly appreciated.

    Also I get the error message of smart recovery: orphan treats when I m trying to log on in the morning. It is said to kill the process using Alter kill, but the problem is not resolved. Kindly help me.

    Thank you

    Hello

    Without the instructions I canoe tell u anything. But that is the problem, why you have found a problem in the map. The package must be corrected first. I think it is just a syntax issue anyway. Try to use PL/SQL expert to get this resolved or mailed the package here, and I'll have a look.

    Concerning
    Bharath

  • 11.5.10.2 to R12.1.1 update: error loading of seeds for GL_DEFAS_ACCESS_SETS data: DEFINITION_ACCESS_SET = SUPER_USER_DEFAS, ORA-06508: PL/SQL: called program unit is not found

    Hello

    Version of the EBS: 11.5.10.2

    DB version: 11.2.0.3

    Version of the OS: AIX 6.1

    Under 11.5.10.2 R12.1.1 update, while implementing a merger 12.1.1 upgrade driver (u6678700.drv), we got below error:

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    ATTENTION: All workers have failed or are pending:

    IMPOSSIBLE: folder glsupdas.ldt worker 3.

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    drix10: / fmstop/r12apps/apps/apps_st/appl/admin/FMSTEST/log > tail-20 adwork003.log

    Restart the task that failed and has been corrected.

    Time, when the worker restarted job: Wednesday, August 7, 2013 10:36:14

    Loading data using FNDLOAD.

    FNDLOAD APPS / * 0 DOWNLOAD @SQLGL:patch/115/import/glnlsdas.lct @SQLGL:patch/115/import/US/glsupdas.ldt -.

    Connecting to applications... Successfully connected.

    Call the function FNDLOAD.

    Returned by the function FNDLOAD.

    Log file: /fmstop/r12apps/apps/apps_st/appl/admin/FMSTEST/log/US_glsupdas_ldt.log

    FNDLOAD of error function call.

    When the worker has no time: Wednesday, August 7, 2013 10:36:14

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    drix10: / fmstop/r12apps/apps/apps_st/appl/admin/FMSTEST/log > tail-20 US_glsupdas_ldt.log

    Current system time is sea Aug 7 10:36:14 2013

    Download from data file /fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/import/US/glsupdas.ldt

    Changing environment NLS_LANGUAGE AMERICA database

    Dumping from the LCT/LDT files (/ fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/import/glnlsdas.lct(120.0), fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/import/US/glsupdas.ldt) to the staging tables

    Dumping file fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/import/glnlsdas.lct(120.0 LCT) in FND_SEED_STAGE_CONFIG

    Dumping LDT file /fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/import/US/glsupdas.ldt in FND_SEED_STAGE_ENTITY

    Dumped the lot (GL_DEFAS_ACCESS_SETS SUPER_USER_DEFAS, GL_DEFAS_ACCESS_SETS SUPER_USER_DEFAS) in FND_SEED_STAGE_ENTITY

    Download of the staging tables

    Error loading of seeds for GL_DEFAS_ACCESS_SETS data: DEFINITION_ACCESS_SET = SUPER_USER_DEFAS, ORA-06508: PL/SQL: called program unit is not found

    Simultaneous request ended

    Current system time is sea Aug 7 10:36:14 2013

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Hello

    Please, recreate the specification and body of the respective package and try:

    -Navigate to $GL_TOP, patch, 115, sql

    -Connected as a user of the applications.

    sqlplus Oracle@Amazon sql apps]

    SQL * more: version 10.1.0.5.0 - Production Wed Aug 7 13:53:33 2013

    Copyright (c) 1982, 2005, Oracle.  All rights reserved.

    Enter the password:

    Connected to:

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > @glistdas.pls

    Addition of PL/SQL package for gl_defas_access_sets_pkg specifications

    Package created.

    Validation complete.

    ...

    ..

    SQL > @glistdab.pls

    Addition of the PL/SQL package for gl_defas_access_sets_pkg body

    Package body created.

    Validation complete.

    See if this helps you, validation of the object.

    Better subject.

  • Call for a process of page by clicking a link

    I have a report of the Apex with several lines and a column of link in. I would like to be able to call a page process to work on the line with the clicked link... I also need a couple of settings somehow to the process page that he calls a procedure that requires the parameters to operate correctly.

    So-
    When I click on a link on a line... maybe a couple of hidden objects page get ready.
    The page is then submitted and my process calls the procedure by using the values of the elements defined above as its parameters.
    Control is subject to the original page.

    So, basically, I'm trying to allow a user to perform repetitive actions on each line.

    My thought was to use a URL in the link and perhaps Javascript... or I am barking the wrong tree and is there a better way rather than a link?

    Thoughts?
    See you soon
    Ken

    You have the right idea. JavaScript is the way to go. Assuming that the values that are passed are part of this line of data, you can build the call to process JavaScript.

    Create two hidden objects on your page, make sure that they are not protected.
    say P1_CITY and P1_STATE

    Say your city query included and the State, define a column in the report as a link of the URL target with the following url

    JavaScript:MyFunction('#City#',_'#State#');

    Then set a javascript function in the HTML header section page

    function myFunc (City, pState) {}
    $x_value ('P1_CITY', City);
    $x_value ('P1_STATE', pState);
    doSubmit ('RUNPROC');
    }

    Then a process on the page did you want and which is conditional on the APPLICATION = "RUNPROC."

Maybe you are looking for