Trapping in APForm Trig via PRAGMA EXCEPTION

hi,
I can trap 06052 errors in report 6i (After pform trig)
but not -01843,-01847 and a few others relating to date format input mask errors. Anyone know why?
Thanks.
N.
Here's how I do it: (in after pform trig)
date_invalid EXCEPTION;
PRAGMA EXCEPTION_INIT (date_invalid, -01843);
BEGIN
EXCEPTION
when date_invalid THEN srw.message('Date must in Format ''DD-MON-YYYY'' !');
RETURN ( FALSE );
END;

.

Similar Messages

  • Trapping line number/source file where exception occured

    Hi,
    How can we trap the line number where an exception was thrown and then store this information in a local data object? The line number appears in the stack trace but the only methods i can find for extracting info from the stack trace seem to write onto a file and not a local object.
    Appreciate any suggestions
    -Nikhil

    JDK 1.4 adds a getStackTrace() method to class Throwable. getStackTrace() returns an array of StackTraceElement objects, from which you can get file name/line number info and more.
    prior to JDK 1.4, your best bet would be to do a printStackTrace() to a StringWriter, and parse the resultant string. however, i believe the stack trace format is not platform-independent, so if you're writing something that will be run on different VMs, beware.

  • PRAGMA EXCEPTION

    Morning,
    Would some one please review this code below? I am trying to capture the oracle error table or view does not exist -00942 but it does not seem to want to work. What am I typing wrong?? It throws the error instead of it being handle within the exception section. This table is not available when I run it in 9i.
    I simplified the select statement.
    declare
    table_view_not_exist EXCEPTION;
    PRAGMA EXCEPTION_INIT(table_view_not_exist, -00942);
    begin
    select end_time from dba_optstat_operations;
    EXCEPTION
    WHEN table_view_not_exist
    THEN
    DBMS_OUTPUT.PUT_LINE('PLEASE RUN ANALYZE MANUALLY');
    end;
    Any help in this matter would be appreciated.
    Thanks in advance and have a great day.
    al

    The code cannot compile if the table isn't present.
    Try this:
    DECLARE
         table_view_not_exist EXCEPTION;
         PRAGMA EXCEPTION_INIT(table_view_not_exist, -942);
            v_end_time DATE;
    BEGIN
         EXECUTE IMMEDIATE 'SELECT end_time FROM dba_optstat_operations'
            INTO v_end_time;
            DBMS_OUTPUT.PUT_LINE('End date: ' || TO_CHAR(v_end_time,'YYYY-MM-DD HH24:MI:SS'));
    EXCEPTION
         WHEN table_view_not_exist THEN
              dbms_output.put_line('Please run analyze manually');
    END;

  • Lync A/V not working via Edge except for Federation

    I have an interesting problem.
    Internal users can do audio/video/screen sharing just fine from the internal network.
    I can do A/V and screen sharing with my federated contacts just fine from my internal network.
    When I use Lync on an external network (from home, public wifi, or even 4G), I can see presence, IM back and forth with no issues, but I can not do Audio/Video or screen sharing. I can do the whiteboard/Q&A/etc. It connects the call but I don't see or
    hear the other internal participant, and then it disconnects after exactly 10 seconds.
    The 2013 Lync Mobile app has the same issue - I can IM, but cant use audio or video.
    Does anyone know where I should start? I currently have a mixed topology with Lync 2010 and 2013 front-end servers, and a Single consolidated 2010 Edge server, with 3 external IP's addresses NAT'd to 3 public addresses. I remember that this used to work,
    but since it is not a heavily used feature, I don't know when it stopped working. It may have stopped when I installed the 2013 FE servers but i'm not positive.

     You can verify my earlier statement by looking at your ICE candidate list when your AV fails... 
     Look in snooper at the log, and search for 'candidate'... you should see a list of at least 6 entries similar to this:
    a=candidate:1 1 UDP 2140706431 192.168.1.101 39052 typ host
    a=candidate:1 2 UDP 2140705918 192.168.1.101 39053 typ host
    a=candidate:2 1 TCP-PASS 6656159 x.x.x.x 56276 typ relay raddr 192.168.1.101 rport 39041
    a=candidate:2 2 TCP-PASS 6656158 x.x.x.x 56276 typ relay raddr 192.168.1.101 rport 39041
    a=candidate:3 1 UDP 16648713 x.x.x.x 55824 typ relay raddr 192.168.1.101 rport 39050
    a=candidate:3 2 UDP 16648712 x.x.x.x 52421 typ relay raddr 192.168.1.101 rport 39051
    a=candidate:4 1 TCP-ACT 7086863 x.x.x.x 56276 typ relay raddr 192.168.1.101 rport 39041
    a=candidate:4 2 TCP-ACT 7086350 x.x.x.x 56276 typ relay raddr 192.168.1.101 rport 39041
    a=candidate:5 1 TCP-ACT 1664797951 y.y.y.y 39041 typ srflx raddr 192.168.1.101 rport 39041
    a=candidate:5 2 TCP-ACT 1664797438 y.y.y.y 39041 typ srflx raddr 192.168.1.101 rport 39041
     missing typ relay or typ srflx raddr means you're not successfully talking to your edge, and getting ports allocated, which is my suspicion. The best troubleshooting step from there is a network capture to verify whether you are getting responses
    to your TURN requests. I can't comment on the connectivity test website, as I haven't used it, but I have spent a lot of time troubleshooting edge issues in multiple environments... 
    Jon McClary
    Using the lync logging tool, which components should I log to get this output?

  • SOAP-XI-CRM via RFC:Exception: functiontemplate from repository was null

    Hi
    I am doing a simple SOAP-XI-CRM scenario where a webservice from the customer is fed into CRM using RFC in XI in a sysnc mode.
    I am using a receiver RFC adapter which i've used in other scenarios as well and it always worked fine...but now for this scenario it gives the following error:
    <?xml version="1.0"?>
    <!-- see the documentation -->
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
         <SOAP:Body>
              <SOAP:Fault>
                   <faultcode>SOAP:Server</faultcode>
                   <faultstring>Server Error</faultstring>
                   <detail>
                        <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                             <context>XIAdapter</context>
                             <code>ADAPTER.JAVA_EXCEPTION</code>
                             <text><![CDATA[
    com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null>
         at com.sap.aii.adapter.xi.ms.XIEventHandler.onTransmit(XIEventHandler.java:455)
         at com.sap.aii.af.ra.ms.impl.core.queue.consumer.CallConsumer.onMessage(CallConsumer.java:134)
         at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:917)
         at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:219)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
              ]]></text>
                        </s:SystemError>
                   </detail>
              </SOAP:Fault>
         </SOAP:Body>
    </SOAP:Envelope>
    I even tried to replace my RFC with other one and it again worked fine...could this be a RFC structure issue...i m not sure where to look for the problem as the CC is working fine with other RFCs.
    Regards
    Naina

    you will find many pointers in these threads;
    functiontemplate from repository was <null>
    functiontemplate from repository was <null>+SAP XI
    also try to do a search;
    http://forums.sdn.sap.com/search.jspa?forumID=44&threadID=&q=functiontemplatefromrepositorywas&objID=f44&dateRange=all&numResults=15&rankBy=10001

  • FRM-40735:POST-QUERY triger raised unhandled exception ORA-06502

    This is the code i am trying to execute:
    Select product_description into :blk_lmtms_temple_products_rest.product_description
    from table1 where product_code = :product_code;
    table description is:
    NAME Null? Type
    PRODUCT_CODE VARCHAR2(6)
    PRODUCT_DESCRIPTION VARCHAR2(105)
    All recoreds in PRODUCT_DESCRIPTION field are less than 35.
    size and type of :blk_lmtms_temple_products_rest.product_description is 35 and char.
    Please give me some solution.

    All recoreds in PRODUCT_DESCRIPTION field are less than 35.No they are not.
    size and type of :blk_lmtms_temple_products_rest.product_description is 35 and
    char.Why isn't same as that of "PRODUCT_DESCRIPTION" column width.
    SQL> create table table1(
      2  PRODUCT_CODE VARCHAR2(6),
      3  PRODUCT_DESCRIPTION VARCHAR2(105));
    Table created.
    SQL> insert into table1 values ('X', rpad('Prod X', 40, '*'));
    1 row created.
    SQL> set line 1000
    SQL> select * from table1;
    PRODUC PRODUCT_DESCRIPTION
    X      Prod X**********************************
    SQL> declare
      2    x varchar2(35);
      3  begin
      4    select PRODUCT_DESCRIPTION into x from table1 where product_code = 'X';
      5     dbms_output.put_line(x);
      6   end;
      7  /
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 4
    SQL>

  • Exception for database connectivity

    I am executing a procedure that calls some functions that get data over a dblink. Now I want to add some code to check for database availablity etc upfront in my procedure before calling the function and raise exception and end it.
    I was thinking of trying like
    select sysdate into t_date from dua@dblink
    Now I am not sure how to check the status of this sql statement .
    Any comments/advise is appreciated
    Thx

    Hope this helps; Handling Errors in Remote Procedures -> http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14231/ds_appdev.htm#i1007937
    When the database executes a procedure locally or at a remote location, four types of exceptions can occur:
    * PL/SQL user-defined exceptions, which must be declared using the keyword EXCEPTION
    * PL/SQL predefined exceptions such as the NO_DATA_FOUND keyword
    * SQL errors such as ORA-00900 and ORA-02015
    * Application exceptions generated using the RAISE_APPLICATION_ERROR() procedure
    When using local procedures, you can trap these messages by writing an exception handler such as the following
    BEGIN
    EXCEPTION
    WHEN ZERO_DIVIDE THEN
    /* ... handle the exception */
    END;
    Notice that the WHEN clause requires an exception name. If the exception does not have a name, for example, exceptions generated with RAISE_APPLICATION_ERROR, you can assign one using PRAGMA_EXCEPTION_INIT. For example:
    DECLARE
    null_salary EXCEPTION;
    PRAGMA EXCEPTION_INIT(null_salary, -20101);
    BEGIN
    RAISE_APPLICATION_ERROR(-20101, 'salary is missing');
    EXCEPTION
    WHEN null_salary THEN
    END;
    When calling a remote procedure, exceptions can be handled by an exception handler in the local procedure. The remote procedure must return an error number to the local, calling procedure, which then handles the exception as shown in the previous example. Note that PL/SQL user-defined exceptions always return ORA-06510 to the local procedure.
    Therefore, it is not possible to distinguish between two different user-defined exceptions based on the error number. All other remote exceptions can be handled in the same manner as local exceptions.

  • HT5500 how can i get "via iOS" in my postings and comments from my iPhone?

    how can i get "via iOS" in my postings and comments on facebook from my iPhone?

    I have the same issue.  NO "via ios" ONLY "via mobile"
    iPhone 4 - IOS 6.0.1
    iPad 3rd Generation IOS 6.0.1
    FB App installed both devices from Settings//Facebook/Install App using IOS FB Integration with my username/password.
    Troubleshooting Done to this point -
    Uninstalled FB on iPhone and reinstalled again using the FB in Settings/Facebook/Install App. Entered my username/password in Settings/Facebook.
    Turned Wi-Fi off and posted using Cellular connection  (says via mobile).
    Turned Cellular off and posted connected to Wi-Fi  (says via mobile)
    Set iPad 3 back to factory default.
    Reinstalled everything fresh (did not use iCloud backup).
    Installed FB app from Settings/Facebook/Install App. and entered username/password in Settings/Facebook.
    Turned Wi-Fi off and posted using 4G cellular connection.  (says via mobile)
    Turned 4G Cellular off and posted via Wi-Fi  (says via mobile)
    ALL of my posts from both devices show as being "via mobile". This is extremely frustrating since everyone else in the world seems to post status/comments/pictures/etc from their iPhones and iPads and get the "via IOS" except me.
    At first I thought maybe it was an iPhone 4 issue, but the iPad 3 is the newest version of iPad and even it says "posted via mobile" instead of "ios". 

  • Exception handling raised in named subprograms

    Hi,
    I would like to call three procedures from a when button pressed trigger and deal with them individually.
    I tried naming the exception in the procedure, not to handle it there, and get it to propagate in the calling trigger.
    Here is the code for the When-Button-Pressed Trigger:
    declare
         too_much exception;
         begin
              p_valider_total_ht;
         :b_utils.f_nom := 'Everythingsfine' ;
         go_item( 'B_UTILS.F_NOM' );
    exception
    when others then
    lib_alert(' Exc en pb valider ' || to_char(sqlcode) || 'xxx' || sqlerrm );
    end;
    Here is the code for the procedure:
    PROCEDURE p_valider_total_ht
    IS
         too_much exception;
    BEGIN
         if :jbm_contrat.total_ht > 900 then
              raise too_much;
         end if;
         exception
              when too_much then
              raise;
    when others then
    lib_alert(' Exc en f_valider_total_ht ' || to_char(sqlcode) || 'yyy' || sqlerrm );
    END;
    It works, but the sqlcode contains: 1, wich means I can't distinguish between exceptions cases.
    I tried the pragma exception init approach, but then Forms became really cross and threw a very big error message.
    Many thanks for your help.

    Hi,
    It looks like pragma exception_init only works for existing Oracle error codes and messages.
    I have written a function that returns 'OK' or KO' and the calling trigger raises an exception if 'KO' is returned.
    Many thanks.

  • Forte C++ 6: #pragma fini() behaves differently on Solaris 8 than Solaris 7

    On Solaris 8, a C++ routine invoked via #pragma fini() in the same shared object module executes before the destructors of static objects in that module are invoked.
    On Solaris 7, the behavior is always the other way around: the static object destructors are called before the #pragma fini() routine(s).
    In WorkShop 5, it was explicitly documented in the C++ User's Guide that static object destructors would be called before the #pragma fini() routines.
    In Forte 6, this behavior is no longer documented.
    We've tried 6U1 and 6U2 as well as all seemingly applicable (free) patches with no change in behavior.
    How can I write a cleanup routine which is guaranteed to be called after all of the static object destructors in the same module?
    Please email to me at [email protected] in addition to any posting to this forum.
    Thanks for any help you can provide!
    Steve

    Ordinarily, the same source files and makefiles that work with C++ 5.0 on Solaris 2.6 should work with C++ 5.3 on Solaris 8.
    You didn't say what you did to "adapt the makefile" when changing compilers and OS versions. If the compiler was installed in the default /opt location on each system, we don't think any makefile change would be required. (You might want to make changes for performance or program organization reasons, but we don't think any changes are required just to repeat a working program build.)
    What happens if you use the original files that worked with C++ 5.0 on Solaris 2.6?
    Are C++ 5.0 and C++ 5.3 are both installed in the same /opt directory? That isn't allowed, and will lead to strange behavior.
    Are you continuing a build using the new compiler and OS in a directory containing old binary files or template cache? When changing OS and compilers, it is safest, but not strictly necessary, to rebuild all your binary files. At a minimum, you must delete the old template cache.
    Are you still using C++ 5.0 in the build process? If so, you must isolate the use of C++ 5.0 and 5.3. The compilers cannot share a template cache, so you must run compiles in different locations.
    Anything beyond these hints will require more support and analysis than we could provide in the Forum. You will probably need to generate a .i file from the compilation and have a support engineer look at it. If you have contract with Sun, please follow the service channel.
    - Rose

  • EEM Custom Trap to Single Host

    I'm currently sending SNMP to multiple hosts.  I have utilized the EEM to create custom traps following the guidance provided here:
    https://supportforums.cisco.com/docs/DOC-11745
    If possible I would like to send the custom traps to only one of the SNMP hosts that I am sending standard traps to.  The applet seems to send traps to all hosts regardless of what trap types are configured in the snmp-server host command.  Is there a way to configure the custom traps to be sent to only one of the multiple hosts I have configured?

    If instead of utilizing custom traps I utlized the following:
    action label snmp-trap intdata1 integer
    would the same be true or would I be able to specify which host the traps are sent to via the notification-type parameter in the host command? 
    snmp-server host ip address version 3 noauth username event-manager

  • HT201317 Restore photo via icloud issue

    i just purchased iphone 5, i restore all my contents via icloud except my photos?! since day 1 it says downloading 938 out of 1989 and still downloading for 3 days without any changing or adding all photos, please advise?

    Welcome to the Apple Community.
    Where do you back up to, iCloud or iTunes and did your last back up include your photos.

  • Silently uninstall applications installed with Exceptions Deployment tool

    How are we supposed to uninstall applications installed via the Exceptions Deployment tool?
    At the time of writing this I can only see listed install as a supported workflow.
    It would be a great help if we could have an uninstall workflow too.
    Any suggestions on how to work round this also appreciated.

    A little more detail on uninstalling AIR applications
    http://help.adobe.com/en_US/air/redist/WS485a42d56cd19641-70d979a8124ef20a34b-8000.html#WS 485a42d56cd19641-70d979a8124ef20a34b-7ffa

  • Howto register a new host via backend

    Hi together,
    Does somebody know how to do the following in a supported way via backend?
    Manual Step:+
    - logon to Oracle Applications Manager (OAM)
    - navigate to Site Map --> Hosts --> Register
    - add a new host by providing name & platform (optionally description)
    This will add a new & valid entry to FND_NODES.
    Is there any option to do the same in silent mode with a default script/tool/api via backend script?
    Need that as pre-step for a “special” cloning/refresh feature to add a new physical host for CM in an instance configured against a virtual host.
    11.5.10.2 / ATG RUP6 / 11gR2 / NON-RAC
    Thanks,
    Claudius

    Mainly I follow up "Implementing Virtual Host... on Oracle Applications 11i ATG RUP6 [ID 568115.1]"
    So far I can handle all via script except step "2.3 - Modify the setup for Concurrent Processing", where I have to add a host manually via OAM.
    Question is about doing this special step via Backend instead of Frontend.The steps under this task can be done by editing the application context file and run AutoConfig. You may also need to purge FND_NODES table and re-populate it as per the docs.
    Thanks,
    Hussein

  • I have just moved my broadband ISP from BT to Utility Warehouse. I cannot access my AOL webmail account via Fiirefox

    I have just transferred broadband ISP from BT to Utility Warehouse. After getting round the BT blocks, all seemed OK. I always use Firefox as a browser and have had bookmarks set up for my webmail accounts (various). All of those accounts can be accessed via Firefox except AOL which can only be accessed via Internet Explorer. I get on the initial AOL connection but cannot get to the Email sign in page.
    I have tried to connect by various means but without success via Firefox. I have no desire to have to use IE and that is inconvenient anyway.
    Suggestions ??

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

Maybe you are looking for