Error Handling in Oracle Sales Cloud

Is there a best practice guide/document for error handling in Oracle Sales Cloud?
For example: Error handling in groovy scripts, business processes.
Can someone provide a starting point to this topic?
Thanks,
Abhishek

Hi.
Please review this short video showing you the online logging feature for Application Composer - Groovy. It's very simple and gives you a basic debug capability.
https://www.youtube.com/watch?v=RcyeKQY2ZGo&index=35&list=PL1ZiAfFIniZf_Uu4qTcp5IZYdFOm9K5o3
Kind regards,
Richard
FA Developer Relations

Similar Messages

  • Logging the XML payload in Oracle Sales Cloud

    How can xml payloads for inbound and outbound web service call be logged in Oracle Sales Cloud?
    We need to capture the xml payloads as part of web service calls (inbound/outbound) and store it on server/objects.
    Is it possible to achieve this and if so how can this be done?
    Thanks,
    Abhishek

    For outbound invocations from Sales Cloud, how are you invoking the web services today?
    If you are using groovy scripts to invoke, you can using a println after the invocation and view the messages through the "Runtime logging" feature.
    This should work if you want to view the payload for debugging purposes
    However, I also see that you need to store the response. Are you trying to implement auditing?

  • There is someone who pass in certification Oracle sales cloud? What to study?

    Hello,
    My name is Rafael and i need a help,
    I will do the test for Oracle sales cloud, but i need to know what to study?
    And how tips i must to follow.
    thankyou.

    Hi.
    Please review this short video showing you the online logging feature for Application Composer - Groovy. It's very simple and gives you a basic debug capability.
    https://www.youtube.com/watch?v=RcyeKQY2ZGo&index=35&list=PL1ZiAfFIniZf_Uu4qTcp5IZYdFOm9K5o3
    Kind regards,
    Richard
    FA Developer Relations

  • Error while running Oracle Sales Dashboard in JDeveloper

    Hello,
    I am trying to extend the "Update Customer" page in Oracle Sales and have my new custom region ready, which I intend to plugin through personalization in the "Update Customer" page in Oracle Sales.
    Before I can do that I need to be able to run the Oracle Sales Dashboard through Jdev. I have added the following standard Oracle BC4J packages to my project:
    oracle.apps.asn.common.customer.schema.server
    oracle.apps.asn.common.fwk.server
    oracle.apps.asn.common.schema.server
    oracle.apps.asn.dashboard.server
    oracle.apps.jtf.cac.schema.server
    and the DashboardPG.xml. In addition I have the JTF, ASN, ASF, AR and AS schemas added as libraries to my project.
    I am trying to run this page through Jdev and then following navigation path to the "Update Customer" page:
    - Click on Customer in the Shortcuts link on the Sales Dashbaord
    - Search for customer ..the search fetches the results w/o any problem.
    - Click on customer to view the customer details
    - Click on the "Update Customer" button.....................It is here that I get the following error.
    This is clean (new project) with ONLY Oracle objects in it. I am only trying to run the Sales from Jdev first.
    Does anyone know what am I missing? Why am I getting the following error when I try to update the customer details?
    I'd appreciate any help.
    Thanks.
    ERROR:
    =====
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT lookup_code,
    meaning
    FROM fnd_lookup_values
    WHERE trunc(nvl(start_date_active, SYSDATE)) <= trunc(SYSDATE)
    AND trunc(nvl(end_date_active, SYSDATE)) >= trunc(SYSDATE)
    AND enabled_flag = 'Y'
    AND language = USERENV('LANG')
    AND lookup_type = :1
    AND view_application_id = :2
    ORDER BY TAG
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2945)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2742)
         at OA.jspService(OA.jsp:42)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at OA.jspService(OA.jsp:39)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01008: not all variables bound
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
    ........

    The issue has been resolved finally i can able to run the seeded page.
    Thank you all.
    Regards,
    CSK

  • Error handling in Oracle

    Hello,
    Could anyone help to convert the following T-SQL statement to PL-SQL? Thanks inadvance!
    BEGIN TRAN
    UPDATE Table1 SET .......
    SELECT @ReturnCode = @@error
    IF @ReturnCode <> 0
         BEGIN          
              SELECT @msg = 'Error - update date feed'
    GOTO Err_Handler
         END     
    COMMIT TRAN
    RETURN 0
    Err_Handler:          
              ROLLBACK TRAN
              INSERT INTO LogTable(ProcessName, ProcessStatus)
                   VALUES('Daily date feed', @msg)
              EXEC msdb.dbo.sp_send_dbmail      
                   @recipients = '[email protected]',
                   @Subject = 'Daily datafeed process failed',
                   @body = @msg          
              RETURN 1

    Sänjay wrote:
    Hi,
    Anonymous block example
    SQL> declare
    2   x number ;
    3  begin
    4    select count(*) into x from dual ;
    5    update emp set empno=empno ;
    6    dbms_output.put_line('Rows updated '|| sql%rowcount);
    7  exception -- Exception Or Error Handling
    8   when others then
    9    rollback ;
    10    dbms_output.put_line(SQLERRM);
    11  end ;
    12  /
    Rows updated 14
    PL/SQL procedure successfully completed.SSAwful example! I would fire programmers who would repeatetly produce such code. Rule #1: Avoid "when others expetions" wherever possible!
    I know you're capable of give much better examples.
    Btw: This code would produce the same result in sql*plus without any exception block:
    proof
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for HPUX: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL>
    SQL> drop table test;
    Table dropped.
    SQL> set serveroutput on
    SQL> create table test (col1 number);
    Table created.
    SQL>
    SQL> /* first without exception */
    SQL> declare
      2     x number ;
      3  begin
      4     insert into test values (1);
      5     select length(dummy) into x from dual where 1=1;
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select * from test;
          COL1
             1
    SQL>
    SQL> /* now add some error */
    SQL>
    SQL> declare
      2     x number ;
      3  begin
      4     insert into test values  (2);
      5     select length(dummy) into x from dual where 1=2;
      6  end;
      7  /
    declare
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at line 5
    SQL>
    SQL> select * from test;
          COL1
             1
    SQL>
    SQL> As you can see the second insert was rollbacked. But be careful, this works only for ANONYMOUS pl/sql blocks.
    Edited by: Sven W. on Jul 24, 2009 3:17 PM

  • How to Associate a existing contact to a existing Account using file based import in Oracle sales cloud

    How to Associate a existing contact to a existing Account using file based import in Oracle sales cloud

    Hello,
    You can use this mapping in order to associate contacts with existing Accounts: This will relate the previously imported Contact with an existing Account.
    Regards,
    Oana

  • OSN and Oracle Sales cloud

    Can we add people who are external to Fusion application as participants, for e.g. customer, contacts?
    Can we add people who are using different Fusion application pillar for e.g. Fusion HCM as participants?
    Can we archive and purge conversations?
    Can we integrate OSN with other Social Apps?
    Is it possible to use any other social app from Sales Cloud in lieu of OSN?

    Hello to address the questions below:
    Can we add people who are external to Fusion application as participants, for e.g. customer, contacts? - Yes you can complete this one by one through the Admin Consol = https://syosn1xPOD.fs.ap1.oraclecloud.com/adminConsole
    Can we add people who are using different Fusion application pillar for e.g. Fusion HCM as participants? - Yes all Fusion Users can access OSN assuming they have access to the record they are viewing.
    Can we archive and purge conversations? - Not Automatically as an Admin i normally close these off after communication.
    Can we integrate OSN with other Social Apps? - Yes there is now a REST API
    Is it possible to use any other social app from Sales Cloud in lieu of OSN? - Perhaps but i wouldn't.
    Hope this helps.
    Jono

  • Error Handling in Oracle GoldenGate

    Hi:
    i connect two databses with Oracle GoldenGate in Active-Active bidirectional replication process.
    i required when any replicat fails it colud be sote in table with values. like i made the change in source database , while replicating it fails then this record store in a table.
    i want to use as schema for all tables. there is no common column in all the tables.
    Could you please help me out.
    Regards,
    Abhishek

    You can map errors into an exceptions table. You can use one table for many errors, but you have to code whatever to make the insert work. You can do a one-to-one mapping too, just depends on how granular you want the exceptions table to be. The hard part is making sure you account for expected errors.
    -- Specify mapping of exceptions to exceptions table:
    MAP <owner>.*, TARGET <owner>.<exceptions>, EXCEPTIONSONLY;
    An example shown on pages 96-97 of 11.1 Admin guide:
    MAP swilkes.date_test, TARGET swilkes.date_test, &
    REPERROR (21000, EXCEPTION), &
    SQLEXEC (ID lookup, ON UPDATE, &
    QUERY "select count(*) conflict from date_test where t_id = ? and &
    t_timestamp > ?", &
    PARAMS (p1 = t_id, p2 = t_timestamp), BEFOREFILTER, ERROR REPORT, &
    TRACE ALL),&
    FILTER (lookup.conflict = 0, ON UPDATE, RAISEERROR 21000);
    MAP swilkes.date_test, TARGET swilkes.date_test_exc, EXCEPTIONSONLY, &
    INSERTALLRECORDS, &
    COLMAP (USEDEFAULTS, errtype = "UPDATE FILTER FAILED.");
    An exceptions table could look like:
    --8 characters max for the replicat name
    --varchar2(30) via object naming rules in Oracle for the table name
    --error returned is numeric, and so on
    create table ggs_admin.exceptions
    ( rep_name varchar2(8)
    , table_name varchar2(30)
    , errno number
    , dberrmsg varchar2(4000)
    , optype varchar2(20)
    , errtype varchar2(20)
    , committimestamp timestamp);

  • Oracle Mobile Sales Cloud - Alerts

    I am not able to find documented what Alerts means on the homepage of Oracle Sales Cloud. Is there some definition of what appears here and is it configurable?

    I'd like additional information other than what is being provided.. what happens after the 30 day trial, what is the cost to use, how does it work, etc.
    I tried to download and view the webinar but it keeps freezing and not running. Does the webinar provide detailed instructions on actual use, or is it just an overview of the application (from a marketing/sales perspective)
    Thanks

  • Error Handling in Oracpe form 9.4.0

    Hi,
    Have you got good documentaion about error handling in Oracle form 9.0.4? If yes, Could you let me know?
    Many thanks
    Michael

    Michael,
    Although, link I'm listing here is for Forms 4.5, the concepts of Error Handling still apply as Forms Error Handling has not changed significantly.
    [Oracle Forms Developer and Forms Server Documentation|http://www.oracle.com/technology/documentation/forms.html]
    Select the "A32506_2      PDF           Forms 4.5 Advanced Techniques" option.
    You can also try the [Oracle9iDS Forms Developer Reference Guide|http://www.oracle.com/technology/documentation/forms/902docs/9iRefGuide.zip] from the [Link to Oracle Forms 10g (10.1.2), Oracle Forms 10g (9.0.4), and Oracle9i Forms (9.0.2) Documentation|http://www.oracle.com/technology/documentation/9i_forms.html]. This is a .zip file which contains the "Forms 9i Reference Guide" pdf file.
    Hope this helps.
    Craig...

  • Page Error handling question..

    Using APEX 4.1.1.. Hosted instance.. I am testing various error handling functions (Oracle's standard one from documentation and others). I have a page with a standard report, I have defined the page to have an associated error handling function. On the report I have a calculated column that should error out due to a division by 0 error..
    Now what I had thought was, the page would handle the error more gracefully than previous version, in that it would show the custom error message I define in the constraints table...
    Is there a section of the documentation I am missing that shows at what point the error handling function kicks in and where we need to invoke it otherwise?
    Thank you,
    Tony Miller
    Dallas, TX

    Interesting. Had never considered this aspect.
    Just did a couple of tests - so it must only come into play from the PL/SQL engine.
    Created an sql report:
    select floor(dbms_random.value(1,10))/0 num
    from dual
    connect by level <= 10But the error function never gets hit.
    begin
    for i in (select floor(dbms_random.value(1,10))/0 num
    from dual
    connect by level <= 10) loop
    htp.p(i.num);
    end loop;
    end;Function gets hit.
    Just looking at the docs, there doesn't appear to be any indication of processing point.
    But from Patrick's blog:
    This includes errors raised by validation, process, … and all errors raised by the Application Express engine itself.http://www.inside-oracle-apex.com/apex-4-1-error-handling-improvements-part-1/
    I guess an SQL report isn't considered as an 'all errors raised by the apex engine'.

  • Oracle stored procedure call failed,but not captured by the error handling

    Hi All,
    I have a unix shelll script which calls a stored proc in Oracle, the stored proc call failed due to "ORA-01033: ORACLE initialization or shutdown in progress".
    But it is not captured in the error handling block, Any ideas why this had happened?
    SQL file had : my_test_sql.sql
    exec my_proc(..............);
    Unix shell script has this call:
    sqlplus -s my_user/my_pwd@db1 @my_test_sql.sql
    if [[ $? -ne 0 ]]; then
    echo "failed"
    exit 1
    else
    echo "success"
    fi
    If i execute the above shell, I'm getting the following
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    SP2-0306: Invalid option.
    Usage: CONNÝECT¨ Ýlogon¨ ÝAS SYSDBA¨
    where <logon> ::= <username>Ý/<password>¨Ý@<connect_identifier>¨ | /
    success.
    This puzzled me, any pointers?

    The $? status variable shows the return code of the last command executed. It will be difficult to determine what the exit status of your sql script is without knowing the script. Do you have any "WHENEVER SQLERROR EXIT" statements in the script?
    The ORA-01033 error happens when the database is not open, perhaps in recovery, or startup or shutdown is halted due to a failed or full disk, error in archiving or writing to redo, etc.

  • Oracle Error Handling in Shell Scripts

    I need to manage 2 diferente class of errors :
    Oracle Errors(produced in compilation time) and
    Operating Syste Error(e.g. No Datbase conection ORA-1017,etc) my shell its KSH.
    Please can you help me how can I manage then?
    this my alternative but is not correct ;
    #creating conexion with sql
    exit | sqlplus -s $USERPV_DB/$PWDPV_DB @$VORDSQLPATH/ord.extractor_porven.sql $VFDESDE $VFHASTA > $VORDDATOS_PATH/ord.extractor_porven$VDATE.dat 2>> $VLOG
         #Evaluating last sentence (sqlplus . . . . )
         VERROR=$?
         #Si VERROR=0 should stop process execution and alert with echo ".."Oracle error handling before compilation time
         if [ $VERROR  != 0 ]
         then
         echo "value of VERROR are:$VERROR"
         echo "`date +"$V_FORMATDATE"` DATA EXTRACTION WAS NOT SUCESSFUL ERROR BEFORE COMPILATION TIME" >> $VLOG 2> /dev/null
         " Here show VERROR
         else #Oracle error handling in compilation time
         echo "`date +"$V_FORMATDATE"` DATA EXTRACTION WAS NOT SUCESSFUL ERROR BEFORE COMPILATION TIME " >> $VLOG
         " Here show VERROR
    else if [ $VERROR  = 0 ]
    " DATA EXTRACTION WAS SUCESSFUL"
    fi
    Would apreciate your help its very urgent.
    Best Regards
    Antonio

    user5647282 wrote:
    I need to manage 2 diferente class of errors :
    Oracle Errors(produced in compilation time) and
    Operating Syste Error(e.g. No Datbase conection ORA-1017,etc) my shell its KSH.
    Please can you help me how can I manage then?
    this my alternative but is not correct ;
    #creating conexion with sql
    exit | sqlplus -s $USERPV_DB/$PWDPV_DB @$VORDSQLPATH/ord.extractor_porven.sql $VFDESDE $VFHASTA > $VORDDATOS_PATH/ord.extractor_porven$VDATE.dat 2>> $VLOG
    Piping the output of 'exit' to sqlplus????????? what do you expect from this?
         #Evaluating last sentence (sqlplus . . . . )
         VERROR=$?any error returned by sqlplus as $? would be a fatal error of sqlplus itself, not any error returned by processing a sql statement. If your script ord.extractor_porven.sql were to generate, say, an ORA-00001, that is NOT an error in sqlplus and so does not return to the OS as an error of sqlplus.
         #Si VERROR=0 should stop process execution and alert with echo ".."Oracle error handling before compilation time
         if [ $VERROR  != 0 ]
         then
         echo "value of VERROR are:$VERROR"
         echo "`date +"$V_FORMATDATE"` DATA EXTRACTION WAS NOT SUCESSFUL ERROR BEFORE COMPILATION TIME" >> $VLOG 2> /dev/null
         " Here show VERROR
         else #Oracle error handling in compilation time
         echo "`date +"$V_FORMATDATE"` DATA EXTRACTION WAS NOT SUCESSFUL ERROR BEFORE COMPILATION TIME " >> $VLOG
         " Here show VERROR
    else if [ $VERROR  = 0 ]
    " DATA EXTRACTION WAS SUCESSFUL"
    fi
    Would apreciate your help its very urgent.
    there is no "urgent" here.
    "Urgent" means one of two things -
    1) people are dying, or
    2) you have a customer-facing, revenue-producing production system that is down.
    (And to get some perspective on the second case, keep the first in mind.)
    For the first, you call whatever civil emergency service seems appropriate.
    For the second, you open an SR with Oracle - which requires a paid-up support contract. For them to consider your problem "urgent", you will need to demonstrate that your problem falls under item #2. I seriously doubt your problem fits that criteria.
    Best Regards
    Antonio

  • How to handle an Oracle error

    I want to handle an Oracle Error in my code where the "execute immediate" statement comes to play.
    My code goes against several tables
    ID_TABLE_08
    ID_TABLE_07
    ID_TABLE_06
    If table does not exist in database (ie: ID_TABLE_05) I get : Oracle Error ORA-0942 table or view does not exist.
    How can I capture and handle this error so
    1. The code will continue to run getting the next value
    2. The bad record still will get written in to a table called bad_table.
    v_year := TO_CHAR (pp_eff_dtg (indx), 'yy');
    BEGIN
    EXECUTE IMMEDIATE
    'SELECT DISTINCT ID_number
    FROM ID_TABLE_'|| v_year||'
    WHERE NAME = :NAME
    AND EFFECTIVE_DATE = : EFFECTIVE_DATE
    INTO v_ID_number
    USING pp_NAME (indx),
    pp_eff_dtg (indx);
    GOTO END_LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    GOTO INSERT_ADD_RECORD;
    END;
    Thank you for your help!

    if you want to handle a specific oracle error number you can also declare an exception, match that exception to the error number and handle it.
    Like this (not syntax checked)
    declare
      e_table_does_not_exist exception;
      pragma exception_init (-942,e_table_does_not_exist); -- I hope I got the parameters in the right order
    begin
       EXECUTE IMMEDIATE('select * from ID_TABLE_'|| v_year||' where ...');
    exception
       when e_table_does_not_exist then -- handle specific error
           raise_application_error(-20001,'The table ID_TABLE_'|| v_year||' could not be found. Next time enter a valid year!');
    end;

  • Integrating Oracle Fusion Sales Cloud with Oracle Business Intelligence Cloud Service (BICS)

    Ever wondered how to integrate Oracle Fusion Sales Cloud with Business Intelligence Cloud Service (BICS) ?
    The blog outlines how to programmatically load Sales Cloud data into BICS, making it readily available to model and display on BICS dashboards.
    http://www.ateam-oracle.com/integrating-oracle-fusion-sales-cloud-with-oracle-business-intelligence-cloud-service-bics/

    I wouldn't try installing Oracle VM itself on an EC2 instance, as EC2 is essentially Xen itself. Rather, you should just be able to transport existing Oracle VM images to the EC2 cloud. I think this is what you mean, but your opening paragraph is slightly ambiguous. :)
    From a VPN perspective, I'd use OpenVPN as it has clients for all major operating systems (Windows, MacOS X, Linux) that are fairly easy to package and install. Packages for OpenVPN exist in EPEL so it's easy to install on OEL5. You could also consider using a firewall instead of a VPN and only allowing connectivity from specific IP addresses/ranges. This has the benefit of not requiring client software, but it does require a fixed IP address/range on the client-side.

Maybe you are looking for