Problem with FETCH

If you have a fetch statement inside of a LOOP like below, should it fetch the NEXTVAL or have I missed something?
When I run this I get a unique constraint violated (order_id is PK)
declare
cursor next_order_id is select seq_order_id.nextval from dual;
v_order_id number;
over_30_rec over_30_cur%ROWTYPE;
begin
IF NOT next_order_id%ISOPEN THEN
     OPEN next_order_id;
END IF;
FOR over_30_rec IN over_30_cur
     LOOP     
          FETCH next_order_id INTO v_order_id;
          INSERT INTO ord_detail (order_id,
               customer_id,
                    action_id,
               action_date,
               call_length,
               employee_id)
     VALUES (V_order_id,
     over_30_rec.customer_id,
     '15',
     sysdate,
     null,
     '7');
     END LOOP;
close next_order_id;
end;

Because you are leaving the cursor open for the duration of the loop, you will end up fetching the same value over and over again - thus the PK constraint violation.
Actually, I would recommend NOT using a cursor for your sequence management. My first choice would be to handle it via a trigger, but if it needs to actually appear in your insert statement then:
FOR over_30_rec IN over_30_cur LOOP
  INSERT INTO ord_detail
    (order_id, customer_id, action_id, action_date, call_length, employee_id)
   VALUES (seq_order_id.nextval, over_30_rec.customer_id, '15',
sysdate, null, '7');
END LOOP;And on a second pass, unless you are doing something in your loop that you didn't show in your example, you can do this insert in one statement (no loop):
insert into ord_detail
  (order_id, customer_id, action_id, action_date, employee_id)
  select seq_order_id.nextval, customer_id, '15', sysdate, '7'
    from join_making_up_over_30_cur;Anything you can do in a single statement is generally preferrable to a procedural approach.

Similar Messages

  • Problem with fetch cursor statement

    Hi,
    I am using FETCH CURSOR statement to fetch the data from a database table with package size. For the fetched records I am doing parallel processing using parallel processing frame work in banking system.
    Here the problem is for the first iteration it works fine but when it comes to FETCH NEXT CURSOR in the second iteration , programs gets dumping by saying that 'CURSOR already closed'.
    I am not closing the cursor in the program but some how it got closed some where in the standard function module which I used for parallel processing.
    I used WITHHOLD also along with FETCH CURSOR but no use. Please let me know how to avoid the cursor to get close.
    Below is my code
    IF NOT l_tab_product IS INITIAL.
        OPEN CURSOR WITH HOLD lv_cursor FOR
         SELECT contract_int prodint cn_currency mig_grp
              INTO TABLE gt_cont
                FROM bca_contract
                FOR ALL ENTRIES IN l_tab_product
                WHERE prodint = l_tab_product-prodint
                AND   mig_grp IN s_migrp.
        DO.
          FETCH NEXT CURSOR lv_cursor
                            INTO TABLE gt_cont
                                 PACKAGE SIZE lv_size.
          IF sy-subrc <> 0.
            CLOSE CURSOR lv_cursor.
            EXIT.
          ELSE.
    parallel processing logic
    ENDDO.
    ENDIF.

    Using Withhold will not make sure that the cursor will not get closed because of commits.
    SAP Doc says
    If the addition WITH HOLD is specified, the database cursor is not closed by a database commit executed using Native SQL. The addition does not have an influence, however, on implicit database commits or on any rollbacks which always close the database cursor.
    You have to check the part written in your parallel processing logic.
    As Brad said please donot dump your old threads like this.

  • Swing Applet in JSP: problem with fetching data from database

    i am facing a problem while fetching data from database using Swing Applet plugged in a JSP page.
    // necessary import statements
    public class NewJApplet extends javax.swing.JApplet {
    private JLabel jlblNewTitle;
    private Vector vec;
    public static void main(String[] args) {
    JFrame frame = new JFrame();
    NewJApplet inst = new NewJApplet();
    frame.getContentPane().add(inst);
    ((JComponent)frame.getContentPane()).setPreferredSize(inst.getSize());
    frame.pack();
    frame.setVisible(true);
    public NewJApplet() {
    super();
    initGUI();
    private void initGUI() {
    try {
    this.setSize(542, 701);
    this.getContentPane().setLayout(null);
    jlblTitle = new JLabel();
    this.getContentPane().add(jlblTitle);
    jlblTitle.setText("TITLE");
    jlblTitle.setBounds(197, 16, 117, 30);
    jlblTitle.setFont(new java.awt.Font("Dialog",1,20));
    jlblNewTitle = new JLabel();
    this.getContentPane().add(jlblNewTitle);
    Vector vecTemp = getDBDatum(); // data fetched fm DB r stored here.
    jlblNewTitle.setText(vecTemp.get(1).toString());
    jlblNewTitle.setBounds(350, 16, 117, 30);
    jlblNewTitle.setFont(new java.awt.Font("Dialog",1,20));
    } catch (Exception e) {
    e.printStackTrace();
    }//end of initGUI()
    private Vector getDBDatum() {
    // fetches datum from oracle database and stores it in a vector
    return lvecData;
    }//end of getDBDatum()
    }//end of class
    in index.jsp page i have included the following code for calling this applet:
    <jsp:plugin type="applet" code="NewJApplet.class" codebase="applets"
    width="600" height="300">
    <jsp:fallback>Could not load applet...</jsp:fallback>
    </jsp:plugin>
    if i view it in using AppletViewer it runs perfectly and display the data in JLabel. (ie, both jlblTitle and jlblNewTitle).(ie, DATA FETCHES FROM db AND DISPLAYS PROPERLY)
    BUT IF I CLICK ON INDEX.JSP, ONLY jlblTitle APPEARS. jlblnNewTitle WILL BE BLANK(this label name is supposed to fetch from database)
    EVERY THING IS DISPAYING PROPERLY EXCEPT DATA FROM DATABASE!!!
    i signed the applet as follows :
    grant {
    permission java.security.AllPermission;
    Can any body help me to figure out the problem?

    This is the Swing Applet java code
    import java.awt.Dimension;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.Vector;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.JScrollPane;
    import javax.swing.JApplet;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JTree;
    import javax.swing.ScrollPaneConstants;
    import javax.swing.SwingConstants;
    public class HaiApplet extends javax.swing.JApplet {
         private JLabel     jlblTitle;
         private JLabel     jlblNewTitle;
         private Vector     vec;
         * main method to display this
         * JApplet inside a new JFrame.
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              NewJApplet inst = new NewJApplet();
              frame.getContentPane().add(inst);
              ((JComponent)frame.getContentPane()).setPreferredSize(inst.getSize());
              frame.pack();
              frame.setVisible(true);
         public HaiApplet() {
              super();
              initGUI();
         private void initGUI() {
              try {               
                   this.setSize(542, 701);
                   this.getContentPane().setLayout(null);
                        jlblTitle = new JLabel();
                        this.getContentPane().add(jlblTitle);
                        jlblTitle.setText("OMMS");
                        jlblTitle.setBounds(197, 16, 117, 30);
                        jlblTitle.setFont(new java.awt.Font("Dialog",1,20));
                        jlblTitle.setHorizontalAlignment(SwingConstants.CENTER);
                        jlblTitle.setForeground(new java.awt.Color(0,128,192));
                        jlblNewTitle = new JLabel();
                        this.getContentPane().add(jlblNewTitle);
                        Vector vecTemp = getDBDatum();
                        jlblNewTitle.setText(vecTemp.get(1).toString());
                        jlblNewTitle.setBounds(350, 16, 117, 30);
                        jlblNewTitle.setFont(new java.awt.Font("Dialog",1,20));     
              } catch (Exception e) {
                   e.printStackTrace();
         }//end of initGUI()
         private Vector getDBDatum() {
              Vector lvecData = new Vector(10,5);
              Connection lcon = null;
              Statement lstmt = null;
              ResultSet lrsResults = null;
              String lstrSQL = null;
              String lstrOut = null;
              try {
                   OmmsDBConnect db = new OmmsDBConnect();
                   lcon = db.connectDb();
                   lstmt = lcon.createStatement(lrsResults.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
                   lstrSQL = "select DT_ID from P_DATATABLES";
                   lrsResults = lstmt.executeQuery(lstrSQL);        
                   int i = 0;
                   lrsResults.last();
                   int length = lrsResults.getRow();
                   System.out.println(length);
                   lrsResults.beforeFirst();
                   int recCount = 0;
                   while (lrsResults.next()) {
                        recCount++;
                        lvecData.addElement(new String(lrsResults.getString("DT_ID")));
                   //     System.out.println("ID :  " + lrsResults.getString(1));
                        i++;
                   }System.out.println("here 3 out fm while");
              catch(SQLException e) {
                   System.out.print("SQLException: ");
                   System.out.println(e.getMessage());
              catch(Exception ex) {
                   lstrOut = "Exception Occured " + ex.getMessage();
              finally {
                   try {
                        lrsResults.close();
                        lstmt.close();
                        lcon.close();
                        System.out.println("[DONE]");
                   catch(Exception e) {
                        System.out.println(e);
             }//end of finally
              return lvecData;
         }//end of getDBDatum()
    }//end of classOfcourse the above code compiles and runs well. in Applet Viewer
    I plugged the above Swing Applet in a JSP page index.jsp
    <jsp:plugin type="applet" code="NewJApplet.class" codebase="applets"
                   width="600" height="300">
         <jsp:fallback>Could not load applet...</jsp:fallback>
    </jsp:plugin>Every thing is working fine in AppletViewer...But if i view this in any browser, then only the jlblTitle is displaying. jlblNewTitle is not displaying(this label name is actually fetching from thedatabase)
    can any body help me regarding this matter.? Thx in Advance.

  • AM Patch 120954-03 - Problems with Fetching Sessions

    Hi.
    I am encountering weird behaviour with AM when it comes to fetching sessions from other AM servers.
    I applied patch 120954-03 (didn't have -02 or 01 patch installed), and then ran the following commands, on two environments (both environments are identical, each with two AM hosts). Things work perfectly on one, but not on the other. Tried everything, including AM reinstallation. But no luck. Problem comes up as soon as I apply the patch, and run the subsequent commands.
    Error received is Failed to get valid Sessions from the Specified server. According to the release notes, this could occur if the DIT was from an older AM installation. But in my case, its been AM 7 through out; absolutely clean machine before that.
    Is there something wrong in the sequence of commands that I am running? I run the following commands one at a time on each host (ie, 1. on both, then 2. on both...). Is there some other way to go about this?
    Also, I have two Directory servers for AM (with multi-master replication). Should I specify different directory servers during running the patch on both the hosts, or should I specify the same host, or can I specify the DPS distributing load over the two DS?
    Thanks a ton! Sincerely appreciate it.
    Commands executed after patchadd 120954-03 :
    1. Have all services up
    2. Backup Directory servers
    3. patchadd 120954-03 (its Solaris 9)
    4. Edit /opt/SUNWam/amsilent
    5. cd /AccessManager-base/bin/; ./amconfig -s /opt/SUNWam/amsilent
    6. ./amserver stop
    7. ./amserver start
    8. Restart AM instances
    9. cd /DirectoryServer-Base/shared/bin; ./ldapmodify -h hostname -p port_number -D "cn=Directory Manager" -w <DIRMGRPASSWD> -a -f /etc/opt/SUNWam/accountLockout.ldif
    10. /opt/SUNWam/bin/amadmin -u amadmin -w <AMADMINPASSWORD> -t /etc/opt/SUNWam/accountLockoutData.xml
    11. /AccessManager-base/bin/amadmin -u amadmin -w amadmin_password -s /etc/opt/SUNWam/AddLDAPFilterCondition.xml
    12. /AccessManager-base/bin/amadmin -u amadmin -w amadmin_password -t /etc/opt/SUNWam/amPolicyConfig_mod_ldfc.xml
    13. /opt/SUNWam/bin/amadmin -u amadmin -w amadmin_password -t /etc/opt/SUNWam/idRepoServiceAddAttrSchemaRequest_Cache.xml
    14. /AccessManager-base/bin/amadmin -u amadmin -w amadmin_password -t /etc/opt/SUNWam/wsf1.1_upgrade.xml
    15. Restart AM instances.

    I am getting the somewhat thesame issue. Exept I'm getting the LoginLoutMapping issue. I have the same setup also with 2 masters. I applied this patch to my dev env which has only oner ds server and its on the same machine and didn't have any issues. Hopefully someone can shed some lite. I had no prob before the patch. Backing the patch out does work but it's weird that it wont work on my prod env

  • Problem with Fetching Million Records from Table COEP into an Internal Tabl

    Hi Everyone ! Hope things are going well.
           Table : COEP has 6 million records.
    I am trying to get records based on certain criteria, that is, there are atleast 5 conditions in the WHERE clause.
    I've noticed it takes about 15 minutes to populate the internal table. How can i improve the performance to less than a minute for a fetch of 500 records from a database set of 6 million?
    Regards,
    Owais...

    The first obvious sugession would be to use the proper indexes. I had a similar Issue with COVP which is a join of COEP and COBK. I got substanstial performance improvement by adding "where LEDNR EQ '00'" in the where clause.
    Here is my select:
              SELECT kokrs
                     belnr
                     buzei
                     ebeln
                     ebelp
                     wkgbtr
                     refbn
                     bukrs
                     gjahr
                FROM covp CLIENT SPECIFIED
                INTO TABLE i_coep
                 FOR ALL ENTRIES IN i_objnr
               WHERE mandt EQ sy-mandt
                 AND lednr EQ '00'
                 AND objnr = i_objnr-objnr
                 AND kokrs = c_conarea.

  • Problem with fetching table field

    Hi all, im explaining the problem, please provide me the query.
    i am having the follong tables
    1)location table contains one PK(loc_id)and authorization field, etc.
    2)accont table contain one FK(loc_id) and hrid , attuid fields etc
    3)LINE table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
    4)TRUNK table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
    5)NODAL_TSG table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
    6)REMOTE_CALL_FWD table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
    7)Order2misc table contains FK(SER_LOC_ID) of Location table
    PIC means INTERLATA_PIC_FREEZE/INTRALATA_PIC_FREEZE
    PLOC means INTERLATA_PIC_FREEZE/INTRALATA_PIC_FREEZE
    i need to send an authorization field value to another interface.
    condition
    ===========
    if(LOCATION.AUTHORIZATION using Account.loc_id is not null and LINE.INTERLATA_PIC_FREEZE not equal to 'F' and LINE.INTRALATA_PIC_FREEZE not equal to 'F' and similaraly for TRUNK, NODAL_TSG and REMOTE_CALL_FWD table fields)
    else
    fetch the authorization field from
    LOCATION.AUTHORIZATION using Order2misc.ser_loc_id
    =======
    please provide me the query.
    thanks in advance

    HI thanks for ur reply
    i tried lmy best.
    im able to put that into 2 queries, but i need to join both of them in single query
    query-1
    ======
    Select l.authorization
    from location l JOIN ACCOUNT a on a.loc_id = l.loc_id
    and l.authorization is not null
    where not exists
    select * from Line where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    union all
    select * from trunk where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    union all
    select * from NODAL_TSG where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    union all
    select * from REMOTE_CALL_FWD where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    query--2
    =======
    Select l.authorization
    from location l JOIN order2misc o on o.ser_loc_id = l.loc_id
    and l.authorization is null
    where exists
    select * from Line where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    union all
    select * from trunk where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    union all
    select * from NODAL_TSG where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    union all
    select * from REMOTE_CALL_FWD where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    ================
    i need a single query. and correct me if the above query's are wrong

  • Problem with fetching Map object from ObjectInputStream

    Hi, please can you help me with the following...I've never seen this before (with my limited experience of JDK1.5)
    ObjectInputStream is = new ObjectInputStream(new FileInputStream(store));
    Map<Integer, Report> readObject = (Map<Integer, Report>) is.readObject();This code gives me a warning...
    Type safety: The cast from Object to Map<Integer,Report> is actually checking against the erased type Map
    How can I get rid of this warning?

         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         ObjectOutputStream oos = new ObjectOutputStream( baos );
         List<String> list = new LinkedList<String>();
         list.add( "one" );
         list.add( "two" );
         oos.writeObject( list );
         oos.flush(); oos.close();
         ObjectInputStream ois = new ObjectInputStream
             ( new ByteArrayInputStream( baos.toByteArray() ) );
         List<String> list2 = (List<String>)ois.readObject();Give me 1 compile time error (Test.java:109: warning: [unchecked] unchecked cast), and no runtime errors.
    Removing the <String> from "list" add some more [uncheked], but still runs fine (no runtime warning). Adding a none-String only causes a problem when I try to "get" it. (class cast).
    When do you get this warning?

  • Problem with fetching a row after creating a standard form

    ORA-02291: integrity constraint (TICKET_DEV.MAILALERTTEXT_MAILALERTTY_FK1) violated - parent key not found
    Unable to process row of table MAILALERTTEXT.
    I have created a form on the table mailalerttext with the intention of beeing able to put in new mailalert texts. I have taken all the fields of that table:
    MAILALERTTEXTID,MAILSUBJECT,MAILCONTENT,APPLICATIECD,MAILALERTTYPEID
    and linked it to the mailalerttype table:
    MAILALERTTYPEID,OMSCHRIJVING,CODE
    I've deleted the field applicatiecd. I've made the mailalerttypeid field a select list using a lov_mailalerttypes, with the following query:
    select maty.omschrijving display_value, maty.mailalerttypeid return_value
    from mailalerttype maty
    order by 1
    All the processes are just standard, nothing has been changed to them.
    Any ideas what could cause this ? Meanwhile I'll keep trying.
    Floris

    I have created a different form on a similar table with the same comments. dropped the mailalerttype column, and added a mailalerttypecode column.
    Inserting now works, with one quirky fact, is that it did one insert, and then it always overwrites the last record. Even if I chose different types, it just changes the last record. So I know now that at least it inserts data, it just doesn't seem to think or make the action, add one count to the sequence and take the next number, which should be 65, which in a way is good if i want to make a difference between the default texts and new ones. So I'm still doing something wrong, or I forgot to do something. Has anyone an idea what ?
    Its just that if I can get this to work, then maybe I can find out, how to get it to work on the mailalerttext table and just keep the maillalerttextbis table as backup.

  • PROBLEM WITH FETCHING THE TEXT FROM  HEADER DATA

    Hi,
    plz give me the solution.
    TYPES:BEGIN OF WA_TLINE,
            TDFORMAT TYPE TLINE-TDFORMAT,
            TDLINE(132) TYPE C, "TLINE-TDLINE,
           END OF WA_TLINE,
         BEGIN OF WA_STXH,
            TDOBJECT TYPE RSTXT-TDOBJECT,
            TDNAME TYPE STXH-TDNAME,
            TDID TYPE STXH-TDID,
            TDSPRAS TYPE STXH-TDSPRAS,
          END OF WA_STXH.
    DATA : OBJECT(10) TYPE C,
           it_inline  TYPE TABLE OF WA_TLINE with header line,
           IT_LINE TYPE TABLE OF WA_TLINE WITH HEADER LINE,
           IT_STXH TYPE STANDARD TABLE OF WA_STXH WITH HEADER LINE,
           IT_HEAD TYPE THEAD.
    *data:it_tdline like  table of tline with header line.
    PARAMETERS:PA_VBELN TYPE VBELN_VF.
    START-OF-SELECTION.
    SELECT TDOBJECT TDNAME TDID TDSPRAS FROM STXH INTO CORRESPONDING FIELDS OF TABLE IT_STXH
      WHERE  TDNAME = PA_VBELN.
    MOVE IT_STXH-TDOBJECT TO OBJECT.
    IF SY-SUBRC EQ 0.
    CALL FUNCTION 'READ_TEXT_INLINE'
      EXPORTING
        ID                    =  IT_STXH-TDID
        INLINE_COUNT          =  '1'
        LANGUAGE              =  IT_STXH-TDSPRAS
        NAME                  =  IT_STXH-TDNAME
        OBJECT                =  'VBBK'
      LOCAL_CAT             = ' '
    IMPORTING
      HEADER                =  it_head
      TABLES
        INLINES               = it_inline
        LINES                 = it_line
    EXCEPTIONS
      ID                    = 1
      LANGUAGE              = 2
      NAME                  = 3
      NOT_FOUND             = 4
      OBJECT                = 5
      REFERENCE_CHECK       = 6
      OTHERS                = 7
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.
    write:/ it_inline.
    iam using this program but it will shows the error  object is not found but it will comes in itab when u pass the data from itab to function module it will shows the error.
    I will give the nuts.
    Regards,
    Venkat

    Hi Venkat,
    This is working fine for me.
        CALL FUNCTION 'READ_TEXT_INLINE'
          EXPORTING
            id                   = '0001'
            inline_count    = '1'
            language        = 'D'
            name             = '0000005462'
            object            = 'VBBK'
            local_cat        = ' '
          IMPORTING
            header           = it_head
          TABLES
            inlines            = it_inline
            lines               = it_line
          EXCEPTIONS
            id                    = 1
            language         = 2
            name              = 3
            not_found        = 4
            object             = 5
            reference_check = 6
            OTHERS          = 7.
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-      msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
      WRITE:/ it_inline.
    Regards
    avi.....

  • Problems with Fetch settings on 4s

    I set the Fetch to manual. Now, I can't find a way to turn it back on. All the email, Facebook, and Twitter accounts, and the Fetch New Data switch are grayed, and won't let me do anything. Someone help?  Thanks!

    Ha! Fixed it! I forgot that I had also enabled Restrictions, so I was unable to access those controls. peace

  • Problem with type conversion and primary key during row fetch

    [Note, this error occurs in Oracle XE, APEX 2.1.0.00.39]
    I have been having a problem with Automatic Row Fetch:
    ORA-01460: unimplemented or unreasonable conversion requested
    So in an effort to resolve this, I created a PL/SQL process with the query below and was able to isolate the same error. The problem seems to come from one of the primary keys being a "number" type (APP_ID). The error occurs on the line:
    where u.app_id=:P5_APP_ID
    I have tried the following variations on this line in an effort to resolve this, but all generate the same error:
    1) where to_char(u.app_id) = :P5_APP_ID
    2) where u.app_id = to_number(:P5_APP_ID)
    3) where to_char(u.app_id) = to_char(:P5_APP_ID)
    I've also tried the laternate syntax "&__." and "#__#", but these don't function in the Source field and show up as syntax errors.
    Any suggestions are welcome.
    begin
    for r in (
    select app_name, apptype, appcreator, appurl
    from application_users u, application_info i
    where u.app_id=:P5_APP_ID
    and i.app_id=u.app_id
    and u.username=:P5_USERNAME)
    loop
    begin
    :P5_APP_NAME := r.app_name;
    :P5_APPURL := r.appurl;
    exception
    when others then
    raise_application_error(-20000,'In Loop Failure',true);
    end;
    end loop;
    exception
    when others then
    raise_application_error(-20000,'Out of Loop Failure',true);
    end;
    Thanks in advance,
    Barney

    I found a prior post referencing a similar issue and it was solved by using the "v(__)" syntax. This did resolve my issue, however, I have a quick follow-on which I'm hoping someone can answer quickly...
    Since the "v(__)" syntax won't work for the Automatic Row Fetch (at least to the best of my knowledge), I have to do a manual process. However, the manual query as shown above doesn't actually populate any of the form values through the bind variables. They all remain at their cached values from prior data entry on the form.
    Is using the bind variables for assignment incorrect, or is there something that must be done to get the updates to show up in the form (ordering of processes, etc.).
    My manual process is running in the Load: Before Header state so I would have expected it to update all of the fields.
    Thanks in advance,
    Barney

  • Problem with data fetching

    Hi,
       I am facing the problem while fetching the data from COEP table.The scenario is as follows:
    1) For the projects entered on selection screen,fetch BEDID from AFKO. (PRONR = Project def.)
    2) Based on value of BEDID,fetch OBJNR from AFVC.
    3) Based on value of OBJNR, fetch WOGBTR from COEP and sum it up.
       I am facing problem with step 3 as WHERE clause in the select query is based on nonkey field of the table.Same is the case while fetching data from AFKO and AFVC.
       Please suggest the better alternative

    Hi,
    In WHERE clause you can use non key fields. The important is that on the left side it must be a column from LEFT table i.e.
    select ... from AFVC as A inner join COEP as C on
                                   a~column1 = c~column1 and
                                   where a~non_key_column = ....   "here on the left must be a left table column provided, but non key field is allowed
    Regards
    Marcin

  • XML fetch failed -- possibly a problem with AvXml.dll or its permissions

    When attempting to access the Status Monitor I receive the following error message:
    XML fetch failed -- possibly a problem with AvXml.dll or its permissions.
    Check that the "AvXml" virtual directory settings in IIS have proper permissions and allow execute access.
    I've tried all combos of security on the IIS directory. What am I missing?

    Hi Lindborg
    I have that problem with version 4.0 (X), it is due?, As I fix?.
    Unity I have a failover cluster, I have several problems, sometimes not let me delete mailbox, I can retrieve messages.
    thanks for any help you can provide.
    Regard

  • Problem with item and/or data during page-processing-PS/SQL

    Greetings!
    On my page I have a custom report (from 2 tables) and a small form-field, that adds and edits data in the report. After generating the form with the wizard I added an extra item, to store the id from one of the tables from the report data.
    Now, on submit a calculation should take place, that updates data according user input with a procedure in Page-Prosseses:
    declare a number;
    begin
    case :PLATZ
    when 1 then a:=100;
    when 2 then a:= 50;
    else a:=25;
    end case;
    update TBL_MITGLIEDER set TURNIERPUNKTE = TURNIERPUNKTE + a
    where ID_MITGL = :P14_ID_MITGL;
    end;
    :PLATZ is user selected (1,2,3), :P14_ID_MITGL stores the reference to TBL_MITGLIEDER (and shows the change, when I select another record)
    As I understand, that process should also run, when I submit a chance, but nothing happens then.
    But when I try to save a new record (which worked without any problems before adding that process), I get this error message:
    ORA-06550: line 1, column 64: PL/SQL: ORA-00957: duplicate column name ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table TBL_TURNIERSIEGER.
    Then, when I go back into the app-builder and try to run the page again, I get this message:
    ORA-01403: no data found
         Error      Unable to fetch row.
    I am not sure, if you guys have all the information you need, to know whats going on. Maybe this has to do with session-id and the whay, items are updated. I hope you can help me.
    Thanks, best regards,
    tobi

    First can you please post all log file errors
    >> I can't really give you a solution or specific recommendation since I did not saw this error yet myself, but on your own risk you can try:
    1. You may try to just register 'dts.dll' using regsvr32.exe, but this error may indicate a bigger problem with setup.
    If you are running SQL Server 64bit then try running this at the command prompt: %windir%\syswow64\regsvr32 "%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\dts.dll"
    2. You can try reinstall from start (In this case you have to make sure that you un-install all)
    [Personal Site] [Blog] [Facebook]

  • Java Webstart application problem with TLS certificate revocation checks (Java 1.7.0_76)

    We have a problem with our Java Web Start Application regarding the TLS certificate revocation check:
    The application is running on a server within a wide area network which is separated from the internet.
    The application users have access to the WAN, and also access to the internet over some corporate proxy/firewall.
    The user has to enter, for example "https://my-site.de/myapp/ma.jnlp" within a webbrowser or could also call  "javaws https://my-site.de/myapp/ma.jnlp" to start the application client.
    The webserver has a certificate from a trusted certificate authority. This certificate seems to be ok, the browser is even configured to perform OCSP status check.
    The application files are signed with a certificate from another trusted certificate authority. This certificate seems also to be ok. Regarding this certificate there
    are no problems with certificate revocation checks.
    The problem is, while starting the application client there is a message box which tell us something like "the connection to this website ist not trustworthy",
    "Website: https://my-site.de:80", and something about an invalid certificate, meaning the webserver certificate.
    Obviously the jvm runtime, which is executed on the users workstation, tries to perform a revocation check for the webservers certificate, but this fails because
    it cannot fetch the certificate under https://my-site.de:80.
    The application will execute without further problems after that message but the users are very concerned about the "invalid" certificate, so here are my questions:
    - Why is the application trying to get the webserver certificate over Port 80. Our application developers told me, there is no corresponding statement. Calling this address
      has to fail while "https://my-site.de:443" or "https://my-site.de" would not have a problem.
    - Is there a way to make the application go on without performing a tls revocation check? I mean, by adjusting the application sourcecode and not by configuring the users Java Control Panel.
      While disabling the TLS Certificate Revocation check in the Java Control Panel, the Webstart Application executes without a warning message, but this is not a workable solution for
      our users.
    It would be great if someone can help me with a hint so i can send our developers into the right direction;-)
    Many thanks!
    This is a part from a java console output after calling "javaws -verbose https://my-site.de/myapp/"
    (sorry for this is in german... and also my english above)
    network: Verbindung von http://ocsp.serverpass.telesec.de/ocspr mit Proxy=HTTP @ internet-proxy.***:80 wird hergestellt
    network: Verbindung von http://ocsp.serverpass.telesec.de/ocspr mit Proxy=HTTP @ internet-proxy.***:80 wird hergestellt
    security: OCSP Response: GOOD
    network: Verbindung von http://ocsp.serverpass.telesec.de/ocspr mit Proxy=HTTP @ internet-proxy.***:80 wird hergestellt
    security: UNAUTHORIZED
    security: Failing over to CRLs: java.security.cert.CertPathValidatorException: OCSP response error: UNAUTHORIZED
    network: Cacheeintrag gefunden [URL: http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl, Version: null] prevalidated=false/0
    cache: Adding MemoryCache entry: http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl
    cache: Resource http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl has expired.
    network: Verbindung von http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl mit Proxy=HTTP @ internet-proxy.***:80 wird hergestellt
    network: Verbindung von http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl mit Proxy=HTTP @ internet-proxy.***:80 wird hergestellt
    network: ResponseCode für http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl: 200
    network: Codierung für http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl: null
    network: Verbindung mit http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl trennen
    CacheEntry[http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl]: updateAvailable=true,lastModified=Tue Mar 24 10:50:01 CET 2015,length=53241
    network: Verbindung von http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl mit Proxy=HTTP @ internet-proxy.***:80 wird
    network: Verbindung von socket://ldap.serverpass.telesec.de:389 mit Proxy=DIRECT wird hergestellt
    security: Revocation Status Unknown
    com.sun.deploy.security.RevocationChecker$StatusUnknownException: java.security.cert.CertPathValidatorException: OCSP response error: UNAUTHORIZED
        at com.sun.deploy.security.RevocationChecker.checkOCSP(Unknown Source)
        at com.sun.deploy.security.RevocationChecker.check(Unknown Source)
        at com.sun.deploy.security.RevocationCheckHelper.doRevocationCheck(Unknown Source)
        at com.sun.deploy.security.RevocationCheckHelper.doRevocationCheck(Unknown Source)
        at com.sun.deploy.security.RevocationCheckHelper.checkRevocationStatus(Unknown Source)
        at com.sun.deploy.security.X509TrustManagerDelegate.checkTrusted(Unknown Source)
        at com.sun.deploy.security.X509Extended7DeployTrustManagerDelegate.checkServerTrusted(Unknown Source)
        at com.sun.deploy.security.X509Extended7DeployTrustManager.checkServerTrusted(Unknown Source)
        at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
        at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
        at sun.security.ssl.Handshaker.processLoop(Unknown Source)
        at sun.security.ssl.Handshaker.process_record(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
        at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
        at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
        at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
        at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.checkUpdateAvailable(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.isUpdateAvailable(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
        at com.sun.deploy.model.ResourceProvider.getResource(Unknown Source)
        at com.sun.javaws.jnl.LaunchDescFactory._buildDescriptor(Unknown Source)
        at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
        at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
        at com.sun.javaws.Main.launchApp(Unknown Source)
        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
        at com.sun.javaws.Main.access$000(Unknown Source)
        at com.sun.javaws.Main$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        Suppressed: com.sun.deploy.security.RevocationChecker$StatusUnknownException
            at com.sun.deploy.security.RevocationChecker.checkCRLs(Unknown Source)
            ... 35 more
    Caused by: java.security.cert.CertPathValidatorException: OCSP response error: UNAUTHORIZED
        at sun.security.provider.certpath.OCSP.check(Unknown Source)
        at sun.security.provider.certpath.OCSP.check(Unknown Source)
        at sun.security.provider.certpath.OCSP.check(Unknown Source)
        ... 36 more
    security: Ungültiges Zertifikat vom HTTPS-Server
    network: Cacheeintrag nicht gefunden [URL: https://my-site.de:80, Version: null]

    Add the JSF Jars to the WEB-INF/lib directory of the application. If still getting error add to the CLASSPATH variable in the startWebLogic script in the domain/bin directory.

Maybe you are looking for

  • My laptop shuts down immediately when i unplug the charger

    Okay so I got my macbook air laptop about six months ago, so it's relatively new. About a month ago the harddrive inside failed and i took it to the aple store and they replaced the harddrive free of charge since i was still under the year warranty.

  • Recover a delete file on PAGES

    I, can anyone help me? Infortunly i erase a file in of pages in my cloud of oages. Can i restore thath file again. Harh shoul i do to recover it. Thank´s Pedro

  • Problem in compiling ejb home interface

    i am starting work on ejbs .the first thing i want to know is how to find an ejb api.I have searched the whole of java site but without success. can anyone help me start on with ejbs. Thank you.

  • Payment card mandatory in sales order

    Hi friends, I want to make payment card filed mandatory when we enter some group of customers in sales order. We normally use the same sales order type for all the customers & when some particular set of customers entered in sales order we need to ma

  • Link to anchor question

    Good afternoon all, In my project, I'm trying to link to an anchored location on an external webpage, in this form, "http://www.website.com/page#anchor" Doesnt seem to be working. A quick search returns this, "Text Anchor and Shared Destination hyper