Error in the Apex of 4.1 handling

Hello

I had one on submit - after that calculations and validations of the process of PL/SQL attached to a button. When the user clicks the button if the process is completed it shows the success message, in case of failure it displays the error message. I'm just learning to add #SQLERRM # in the when failure box in order to see the actual error.

I had another question on this.

PL/SQL regular when we get one error while others, we can exit DBMS the sqlerrm message padded with anything whatsoever to indicate the exact location where the error occurred. Is it possible to do the same at the APEX 4.1? Currently, I have

While others then
Lift;

I can do it IN Pl/SQL
begin
.
.
.
  step := 1;
Exception
When others then 
  dbms_output.put_line(sqlerrm);
 dbms_output.put_line(step);
 Raise;
end;
  
lets say, I want the error to display the exact part of the code where it was dumped (by right I mean, begin end block in a large program of PL/SQL), how can I intercept and show what is appears in the message inline with some additional information?


Secondly can add us something to the #SQLERRM # such as the error message this information online? for example in PL/SQL

Hello

Several ways to do so. This is adoc.41/e21676/apex_error.htm #BGBEEGIB http://docs.oracle.com/cd/E23903_01/doc/.

Kind regards

Tags: Database

Similar Questions

  • Error on the Apex 5.0.1 installation process. Oracle 11.2.0.1.0 Linux 64-bit

    Hello! I install Apex 5.0.1 on my Oracle DB 11.2.0.1.0 64-bit Linux OS, following the: Application Express installation and configure Embedded PL/SQL Gateway but there is a problem when I try to run the @apex_epg_config.sql. I would be grateful if someone can help me

    SQL> @apex_epg_config.sql /home/oracle
    
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    
    . Loading images directory: /home/oracle/apex/images
    Directory created.
    
    declare
    *
    ERROR at line 1:
    ORA-29903: error in executing ODCIIndexFetch() routine
    ORA-31001: Invalid resource handle or path name ""
    ORA-06512: at line 39
    
    begin
    *
    ERROR at line 1:
    ORA-29903: error in executing ODCIIndexFetch() routine
    ORA-31001: Invalid resource handle or path name ""
    ORA-06512: at line 2
    
    declare
    *
    ERROR at line 1:
    ORA-29903: error in executing ODCIIndexFetch() routine
    ORA-31001: Invalid resource handle or path name ""
    ORA-06512: at line 6
    ORA-06512: at line 57
    
    Commit complete.
    
    Directory dropped.
    
    timing for: Load Images
    Elapsed: 00:00:00.13
    PL/SQL procedure successfully completed.
    Commit complete.
    
    SQL> 
    

    Hello!

    The s/n of my company's it. There was an error on the configuration of the ACL. He made the resettlement of the installation of all the ACLs and Apex worked right.

    Thak you all!

  • How to catch an error at the APEX 4.2

    Hello

    I have 2 regions 2. Region should be displayed only if there is a special application built by column ID is not null and he was captured no validation error in the region before (= 1 region)

    How can I cath the mistake and make a condition for display in region 2?

    Thank you for your help.

    Concerning

    Siegwin.

    Dynamic action.

    Create a dynamic action on change of the column that you want to validate - apply some condition, then you must have a true/false to show or hide your chosen region action.

  • Error during the apex 5.0 is installed

    Hello to everyone

    I get an error when I install APEX 5.0

    REQUEST 4411 - Oracle APEX System Messages and Native Types

    application/delete_application

    Start

    *

    ERROR on line 1:

    ORA-04098: trigger "APEX_050000.WWV_FLOW_SESSIONS_T2" is not valid and does not

    revalidation

    ORA-06512: at "APEX_050000.WWV_FLOW_SESSION", line 946

    ORA-06512: at "APEX_050000.WWV_FLOW_API", line 2154

    ORA-06512: at line 2

    Disconnected from the database to Oracle 11 g Express Edition Release 11.2.0.2.0 - 64 bit Production

    I Don t know what happened?

    I solved this problen falls (waterfall)

    users

    APEX_050000

    FLOWS_FILES

    roles

    APEX_ADMINISTRATOR_ROLE

    APEX_GRANTS_FOR_NEW_USERS_ROLE

    And finally install again.

  • File cannot be previewed - error in the PDF preview handler

    I have Adobe Acrobat Reader 8 is installed.  I can open it with this player.  However, the preview pane may not obtain a preview of the document.   Error message is correct Win 7 in the preview pane:

    This file cannot be previewed because of an error in the PDF for Vista preview handler

    I had the same problem. I found the solution here:

    http://www.FixYa.com/support/t5352123-error_in_pdf_preview_handler_vista

    It's a registry error that's easy to fix once you know what to look for.

  • How to manipulate the apex error to avoid lost database updates?

    Hello


    I'm looking for a way to manipulate the user error message hostile apex to avoid lost database updates. It seems that the message to the error handling function is not routed.


    Any ideas?


    THX.

    Gerd

    Hello

    Try the APEX error code. DATA_HAS_CHANGED

    Kind regards

    Jari

  • Error 6 - the handle is invalid when you try to start the services.

    Error 6 - the handle is invalid

    HII
    I really need help
    If you sat down me - it would be great.
    in my organzition - 5 different computers - all THE of THEM with the HELP of Win Xp Sp3
     
    started having error - error 6 - the handle is invalid
    When we want to start very imporatnt services
    print spooler
    the Windows Installer
    EXC
    When we try to start these service - we get the error - thT THE HANDLE IS INVALID - ERROR 6
    and the service - was able to start

    10 x in advance

    Thank you very much
    We have made the controls more
    is it was the fault of the Anti Virus
    We always face the problem - but we know who is to blame
    We use the endpoint of Symantec Enterprise solution
    When we disabled anti virus service - other services began to operate properly

    We contacted Symantec support to see if they have a solution to the problem
    really 10 X

  • Version of 5.0.2.00.07(online à APEX) - error in the execution of a stored procedure through anonymous block

    DECLARE

    the stored procedure varchar2 (25);

    BEGIN

    -DBMS_OUTPUT. Put_line ("enter the name of the procedure :'||: procname");

    the stored procedure: =: procname;

    DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

    stored procedure.

    END;

    : procname is a variable binding in the apex to switch the running value.

    apex-bind_var.png

    This is the error I get

    ORA-06550: line 7, column 2:

    PLS-00221: "STORED procedure" is not a procedure or is not defined

    ORA-06550: line 7, column 2:

    PL/SQL: Statement ignored

    5the stored procedure: =: procname;

    6 DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

    7. the stored procedure.

    8 END;

    SmtWtL wrote:

    DECLARE

    the stored procedure varchar2 (25);

    BEGIN

    -DBMS_OUTPUT. Put_line ("enter the name of the procedure :'||: procname");

    the stored procedure: =: procname;

    DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

    stored procedure.

    END;

    : procname is a variable binding in the apex to switch the running value.

    This is the error I get

    ORA-06550: line 7, column 2:

    PLS-00221: "STORED procedure" is not a procedure or is not defined

    ORA-06550: line 7, column 2:

    PL/SQL: Statement ignored

    5. the stored procedure: =: procname;

    6 DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

    7. the stored procedure.

    8 END;

    What you're trying to achieve?

    Bind variables cannot be used for the dynamic execution of stored programs. Dynamic SQL using lexical rather than bind substitution must be used to run when the program name is not known until execution of the programs.

    declare
      sproc varchar2(25);
    begin
      sproc := :procname;
      dbms_output.put_line('procedure:'||sproc);
      execute immediate 'begin ' || sproc || '; end;'; -- DO NOT DO THIS!
    end;
    

    It is a fundamental design flaw and a security disaster. It's stops essential compilation controls is performed and is open to attack by SQL injection and other security vulnerabilities. There is no good reason to do this.

  • 503 error when you access the console of the APEX for the CDB

    I can access the console of the Apex for the preliminary draft BUDGET, as per the documentation. But not the CBD.

    • For the CBD in a database of the 12 Release 1 database Oracle:https://node-ip-address/apex/
    • For a file in a PDB database of the 12 Release 1 Oracle database:https://node-ip-address/apex/lowercase-pdb-name/

    I get a 503 error.

    I tried with and without SSH tunnel. Neither work. Any advise?

    You can create a PDB files using the PDB self-service app, EM Express, SQL or SQL Developer directly. No net APEX strictly for that.

  • Error of the ACLs in Oracle Apex 5 after schema change

    Hi all

    I'm creating an application using Oracle Apex 5.

    I have a button call Send Mail and mail is worked.

    Now, I imported my request in a different schema and configured acl as below.

    I use apex_mail.send to send mail and created the acl as

    BEGIN

    () DBMS_NETWORK_ACL_ADMIN.drop_acl

    ACL = > 'open_apex.xml');

    (DBMS_NETWORK_ACL_ADMIN). CREATE_ACL

    ACL = > "open_apex.xml"

    Description = > "a test of the ACL feature."

    main = > 'RMSR. "

    IS_GRANT = > TRUE,

    privilege = > 'connection ',.

    start_date = > SYSTIMESTAMP,

    End_date = > NULL);

    (DBMS_NETWORK_ACL_ADMIN). ASSIGN_ACL

    ACL = > "open_apex.xml"

    Home = > ' *',

    lower_port = > 20,

    upper_port = > 9999);

    COMMIT;

    end;

    BEGIN

    (DBMS_NETWORK_ACL_ADMIN). ADD_PRIVILEGE

    ACL = > "open_apex.xml"

    main = > 'RMSR. "

    IS_GRANT = > TRUE,

    privilege = > 'connection ',.

    position = > NULL,

    start_date = > NULL,

    End_date = > NULL);

    COMMIT;

    END;

    It throws error as

    ORA-24247: network access denied by access control list (ACL)

    Is there a problem in my setup?

    Thanks in advance,

    Su.GI

    Hi Su.gi,

    Su.GI wrote:

    I'm creating an application using Oracle Apex 5.

    I have a button call Send Mail and mail is worked.

    Now, I imported my request in a different schema and configured acl as below.

    It throws error as

    ORA-24247: network access denied by access control list (ACL)

    Is there a problem in my setup?

    You have granted the ACL to the RMSR of your database schema, so it is necessary for the APEX_050000 scheme when you use the APEX_MAIL package.

    This is why the ACL must be granted at the APEX 5 Schema: https://docs.oracle.com/cd/E59726_01/install.50/e39144/listener.htm#HTMIG29161

    Here's how the ACL must be granted for APEX 5 Schema: https://docs.oracle.com/cd/E59726_01/install.50/e39144/listener.htm#HTMIG29162

    NOTE:

    • Create the ACL by logging into the user with SYSDBA SYS privileges.
    • Don't forget to validate after execution of the anonymous block for the creation of ACL.

    Kind regards

    Kiran

  • Error when loading of the APEX listener, appex_rl and appex_rt not found

    Trying to load the earpiece of the APEX, but 'appex_rt is not configured and errors will be ignored ", also for appex_rl, now it is stuck on @48231ms.

    Previous stages of the installation went well.

    He started very well...

    listener install 1.PNG

    then got the errors, but he continued... (see SEVERUS)

    listener install error 1.PNG

    final State, another error, now it is stuck

    listener install error 2.PNG

    listener install 3.PNG

    Hi Wm Peck 1958

    WM Peck 1958 wrote:

    Trying to load the earpiece of the APEX, but 'appex_rt is not configured and errors will be ignored ", also for appex_rl, now it is stuck on @48231ms.

    Previous stages of the installation went well.

    How do you use ADR/APEX listener? Autonomous/deployed on Java EE server?

    Want to host RESTful web services on your instance APEX?

    Looking at the error you found, it is because:

    During the installation of the ADR, he asked three databases users? : APEX_PUBLIC_USER, APEX_LISTENER and APEX_REST_PUBLIC_USER.

    Whose APEX_PUBLIC_USER is required for the operation of the Applications Oracle APEX. APEX_LISTENER (which corresponds to the configuration of apex_al) and APEX_REST_PUBLIC_USER (which corresponds to the apex_rt configuration) in ADR are required for the accommodation of RESTful services.

    The problem, I think it's that you haven't configured the RESTful services before installing ADR where the APEX_LISTENER and the APEX_REST_PUBLIC_USER does not exist and so the configuration of the ADR fails.

    It is fine if you do not configure the RESTful services (just want to use Oracle APEX), but when the ADR facility you should ignore configuration APEX_LISTENER and APEX_REST_PUBLIC_USER accounts.

    Moreover, I think that you use EA(Early Adopter) version of ADR version 3.0 of knowing, but I think you should go for the stable version of ADR version 2.0.10 Viz.

    The ADR 3.0 configuration is more advanced (complex bit) than the 2.0 because it contains information about 5 database users (i.e., APEX_PUBLIC_USER, APEX_LISTENER, APEX_REST_PUBLIC_USER, ORDS_METADATA and ORDS_PUBLIC_USER).

    Finally, I think you want the instance Oracle APEX for purposes of personal training, using Gateway (EPG) of embedded PL/SQL would be sufficient now as suggested by fac586 here: Re: getting started with APEX after download

    Suggestion: You should post data Services Oracle REMAINS related matters to the appropriate i.e. forum ADR, SODA & JSON in the database.

    Reference:

    I hope this helps!

    Kind regards

    Kiran

  • Translations of the apex: publish application translated gives the error "error editing or requests. (Rank 1) »

    Hello

    After seeding and the translation of our application, we receive an error trying to publish a translated application.

    The error is: "error editing or requests. (Rank 1) ».

    We are currently working in oracle 11.2 and apex 4.2.2.00.11

    How can we get more details about this error, then
    can we start looking for a solution?

    I deleted the translations for our application in the apex tables ' APEX_040200.WWV_FLOW_DYNAMIC_TRANSLATIONS$ ' and de-seeded and publishes the application again, but I always attack got the same error.

    It was just to test that the error was not caused by special characters in our translated articles. I won't avoid all delete and start all over with the translation.

    I also tried to copy our request for a new application, translation mappings have been copied, but the translations himself does not seem to be copied.

    I've de-seeded and published the translation in any case, and there is no problem.

    Kind regards

    Hello

    I just wanted you to know that I have found that the cause of the error and maybe this solution can help others.

    Instead of seeding and publication via screens Apex I used a script to seed and to publish, the script uses the procedure 'wwv_flow_translation_utilities.seed_and_publish '.

    After you run this script, there are an error more detailed where I could work on, the error was "ORA-20001: error when executing wwv_flow_copy: WWV_FLOW_STEP_ITEMS > ORA-02291: Integriteitsbeperking (APEX_040200.WWV_FLOW_STEP_ITEMS_PLUG_FK) geschonden - bovenliggende key is niet found.»

    After digging in the elements and ankles, I found that an article in which 137 request was bound to one region of another application 136.

    How this has happened today is still a question mark, but change the region of this element to a region of the same application solved this problem.

    I had to change it by using the function "Modify all" because to go into the details of this element makes apex go into error mode.

    Concerning

  • 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?

  • Help! -Error with the new Patch APEX 4.2.5.00.08 import

    Export from Dev and import in staging gives this error to the stack:

    Execution of the statement was not successful. ORA-01858: a non-digit character was found here where was waiting for a digital

    begin wwv_flow_api.post_import_process(p_flow_id => wwv_flow.g_flow_id); null; end; 

    ORA-01858: a non-digit character was found here where was waiting for a digital


    Has anyone else seen elsewhere or, more important, does anyone have a work around at this point, we cannot promote any code.


    Thank you


    -Joe

    Joe,

    A downside of the workaround suggested, is that you will lose all saved private interactive reports.

    The exception set patch for bug 18719750 to APEX 4.2.5 is now available on My Oracle Support.  Please let me know if you encounter any problems.

    Joel

  • Index of the string to the apex XML output range error

    Hi I am a newbie to the apex and my current versions are

    Request Express 4.2.0.00.27
    apex listener 2.0.5

    I read this article http://marcsewtz.blogspot.com/2013/04/pdf-printing-with-oracle-application.html

    I'm trying to get the PDF reports in my application with option listner apex apex. I kept getting "String index out of range:-1" error reports when I export my classic to XML. " Of other forumns, it seems that 'Patch Set 4.2.4.00.08' is the solution to this problem. (Not sure since I've not yet tried). https://community.Oracle.com/message/11224147


    My classic report request is very simple with just 4 columns. No spaces or special characters in the names of columns in the report. Still, it does not with this error.

    Also the question above of "String index out of range-1", it was a bug fixed in the patches update 4.2.4.00.08 group. I don't see anything in the list of the bugs fixed for it.

    http://www.Oracle.com/technetwork/developer-tools/Apex/application-express/Apex-424-patch-set-notes-2081595.html#BABIFAEF

    I tried to import my request to 4.2.4.00.08 Apex (apex virtual - space http://apex.oracle.com ), and this error to export XML "String index out of range" doesn't happen here. The Group of hotfixes so seems to have the fix for this problem for me.

Maybe you are looking for