Inserting rows in table while logging errors...Urgent

Hi all,
i want to insert rows from temp table to main table.
if temp table contains 100 rows.then all rows must be inserted
in main table.if their is any exception while insertion,
insertion must nt stop and erroring rows along with error no must be inserted in
error log table.
How to do this ?
i used forall save exceptions to achieve this .
but ws able to save only error no. but not errroing rows in error log table.
is there any efficient way to achieve this?
can forall be modified in way that it inserts erroring rows also?????

Hi,
1.) does dbms_errorlog works fine in this case?If all of your 807 tables having same columns then i think it will work (NOT TESTED).
By the way are you also trying to insert rows for all tese 807 tables in a single PL/SQL block?
Please post how you are trying to insert then we can think about it,
Oracle ERROR_LOG table allows us to have any number of columns.
From the Oracle Docs:
The number of columns in this part of the error logging table can be zero, one, or more, up to the number of columns in the DML table. If a column exists in the error logging table that has the same name as a column in the DML table, the corresponding data from the offending row being inserted is written to this error logging table column. If a DML table column does not have a corresponding column in the error logging table, the column is not logged. If the error logging table contains a column with a name that does not match a DML table column, the column is ignored.
Regards

Similar Messages

  • How to Display a message after inserting row in table............

    Hi
    I want to display a message after inserting rows in table like *'you have inserted a new row successfully*'.
    i am using the createinsert ADF Button to insert the rows in table.after that i am comitting it.
    after commiting i want to display message for the user.for this what i need to do.
    Please help me.
    Sailaja.

    user10860137
    Can you please explain me the each line in the code briefly.
    +public String saveButton_action(){+
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("Commit");
    Object result = operationBinding.execute();
    +// note "!" operator has been removed from the default code.+
    +if(operationBinding.getErrors().isEmpty()){+
    FacesContext ctx = FacesContext.getCurrentInstance();
    FacesMessage saveMsg = new FacesMessage("Record Saved Successfully");
    ctx.addMessage(null,saveMsg);
    +}+
    return null;
    +}+
    And i have requirement to show the message on favcet "status bar".not in a popup window.(from the above code the message is showing in popup window. )the Layout i am using is PanelCollection.
    can you tell me what i need to do.
    Thanks
    Sailaja.
    Edited by: sj0609 on Mar 19, 2009 8:03 AM

  • Insert to multiple tables while keeping the referential integrity

    I would like to confirm whether we can have both updatable and reference for secondary entity. It seems to me that even though both updatable and reference can be checked for secondary entity, the secondary entity is not updatable.
    There are some scenarios that I hope to create the "parent" and "child" at the same time in the UI. For example, Employee and ProductExpertise which is in m:m relationship. We have three tables: Employee, EmployeeProduct, and Product. We have two view object, EmployeeVO which contains EmployeeEO, EmployeeProductVO which contains EmployeeProductEO and ProductEO. This can display EmployeeVO as master, and EmployeeProductVO as detail. However when we add a new product for the employee, we can only associate an existing product. We would like to create a new product and associate the product with employee. This cannot be achieved by the current EmployeeProductVO.
    I wonder if ADF supports inserting to multiple tables while keeping the foreign key reference integrity? In other words, in a 1:1..* (1 to 1 or 1 to many) relationship, must we have a master-detail view where we add parent first, then add child? Does ADF support adding both parent and child together with the correct foreign key assigned automatically for the child? Do we need to write code to do it?
    Any insight is appreciated.

    Hi,
    Assuming you are talking about ADF Business Components, yes, the framework can handle a batch insert that inserts both parent and child records in the same transaction. A few things that you may want to review:
    1). If you are using a database sequence for your primary keys (your question "Does ADF support adding both parent and child together with the correct foreign key assigned automatically for the child" made me think perhaps you were), have a read of the Fusion Developer's guide about the DBSequence type.
    2). In the same guide, have a read of section 38.8 - it talks about the small bit of code you may need to write to ensure the parent record is posted before the children, and also discusses about associations that are based on DB Sequences.
    Best,
    John

  • Issue while "log errors into g_logtest_err(1) reject limit 1"

    Hi Gurus,
    I am trying to log the errors occured during installation using log error into command.
    insert into g_logtest(i, col1, col2) values (1, 'col1 23 ',' col2 g ') Log errors into g_logtest_err(1) reject limit 1;
    The col1 lenght is 5 and col2 length is 10. when i run the query record gets inserted into g_logtest_err table
    but the column values of g_logtest_err are getting truncated means instead of 'col1 23 ', it is inserting 'col1 123' and 'col2 g' for col2.
    Could anyone please explain the behavior to me. Is this a default behavior or could be changed?
    What changes could be made into query to achieve this? Is their any global parameter setting to achieve this ?
    Please help, its urgent.
    Thanks in advance
    Girish

    Justin Cave wrote:
    Since the error table definition is based on the definition of the underlying table, I'm not sure that it would be reasonable for Oracle to attempt to solve this problem. Since Oracle has no idea how big the string that would be inserted into the column would be when it is creating the error table (or how big the number you would try to insert into a numeric column), the only options would be to duplicate the base table definition and truncate the data that caused the error or to define every column as VARCHAR2(4000) or CLOB and convert all the data from your INSERT statement before inserting it into the error log. That has its own downsides, of course, since there are lots of queries you might like to run against the error log that depend on the data types being correct that you couldn't run against a table with hundreds of CLOB columns.Justin,
    the point is that obviously trailing spaces are getting truncated when populating the column values. So you end up with values that have less length than the maximum length of the target table, although the error message logged suggests otherwise.
    By the way, when creating the error log table using "dbms_errlog.create_error_log" the columns are already defined as VARCHAR2(4000) regardless of the actual length of the column.
    See the guideline how to create the error log table here:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/tables004.htm
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Understanding logminer results -- inserting row into table with CLOB field

    In using log miner I have noticed that inserts into rows that contain a CLOB (I assume this applies to other LOB type fields as well, have only tested with CLOB so far) field are actually recorded as two DML entries.
    --the first entry is the insert operation that inserts all values with an EMPTY_CLOB() for the CLOB field
    --the second entry is the update that sets the actual CLOB value (+this is true even if the value of the CLOB field is not being set explicitly+)
    This separation makes sense as there may be separate locations that the values are being stored etc.
    However, what I am tripping over is the fact the first entry, the Insert, has a RowId value of 'AAAAAAAAAAAAAAAAAA' which is invalid if I attempt to use it in a flashback query such as:
    SELECT * FROM PERSON AS OF SCN #####'  where RowId = 'AAAAAAAAAAAAAAAAAA'The second operation, the Update of the CLOB field, has the valid RowId.
    Now, again, this makes sense if the insert of the new row is not really considered "+done+" until the two steps are done. However, is there some way to group these operations together when analyzing the log contents to know that these two operations are a "+matched set+"?
    Not a total deal breaker, but would be nice to know what is happening under the hood here so I don't act on any false assumptions.
    Thanks for any input.
    To replicate:
    Create a table with CLOB field:
    CREATE TABLE DEVUSER.TESTTABLE
            ID NUMBER
           , FULLNAME VARCHAR2(50)
          , AGE NUMBER  
          , DESCRIPTION CLOB
           );Capture the before SCN:
    SELECT DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER FROM DUAL;Insert a new row in the test table:
    INSERT INTO TESTTABLE(ID,FULLNAME,AGE) VALUES(1,'Robert BUILDER',35);
         COMMIT;Capture the after SCN:
    SELECT DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER FROM DUAL;Start logminer session with the bracketing scn values and options etc:
    EXECUTE DBMS_LOGMNR.START_LOGMNR(STARTSCN=>2619174, ENDSCN=>2619191, -
               OPTIONS => DBMS_LOGMNR.DICT_FROM_ONLINE_CATALOG + DBMS_LOGMNR.CONTINUOUS_MINE + -
               DBMS_LOGMNR.COMMITTED_DATA_ONLY + DBMS_LOGMNR.NO_ROWID_IN_STMT + DBMS_LOGMNR.NO_SQL_DELIMITER)Query the logs for the changes in that range:
    SELECT
           commit_scn, xid,operation,table_name,row_id
           ,sql_redo,sql_undo, rs_id,ssn
           FROM V$LOGMNR_CONTENTS
        ORDER BY xid asc,sequence# ascResults:
    2619178     0C00070028000000     START                  AAAAAAAAAAAAAAAAAA     set transaction read write
    2619178     0C00070028000000     INSERT     TESTTABLE     AAAAAAAAAAAAAAAAAA     insert into "DEVUSER"."TESTTABLE" ...
    2619178     0C00070028000000     UPDATE     TESTTABLE     AAAFEXAABAAALEJAAB     update "DEVUSER"."TESTTABLE" set "DESCRIPTION" = NULL ...
    2619178     0C00070028000000     COMMIT                  AAAAAAAAAAAAAAAAAA     commitEdited by: 958701 on Sep 12, 2012 9:05 AM
    Edited by: 958701 on Sep 12, 2012 9:07 AM

    Scott,
    Thanks for the reply.
    I am inserting into the table over a database link.
    I am using the new version of HTML Db (2.0)
    HTML Db is connected to an Oracle 10 database I think, however the table I am trying to insert data into (via the database link) is in an Oracle 8 database - this is why we created a link to it as we couldn't have the HTML Db interacting with the Oracle 8 database directly due to compatibility problems (or so I've been told)
    Simon

  • Insert rows in table - ORA-01008

    Hi everybody,
    I have designed a page (Page 11, Page Name: Evaluar ALUMNOS) to insert rows in a table. I didn´t want to use a tabular form, so I used this:
    Page items
    LISTA_CURSOS Select List
    Region: Añadir
    ID_ALUMNO Select List with Submit          
    DESCRIPCION Text Field     
    NOTA     Select List     
    OBSERVACIONES Text Field     
    FECHA     Date Picker (DD-MON-RR)
    Buttons
    ANIADIR Button
    ...Database Action -> SQL INSERT action
    Processes
    PROCESS Aniadir     PL/SQL anonymous block     Conditional
    ...Process Point -> On submit - After Computations and Validations
    ...Source:
    declare
    begin
    execute immediate 'insert into EVALUACIONES
    (ID_ALUMNO, ID_CURSO, DESCRIPCION, NOTA, OBSERVACIONES, FECHA)
    values
    (:page11.ID_ALUMNO, :page11.LISTA_CURSOS, :page11.DESCRIPCION, :page11.NOTA, :page11.OBSERVACIONES, :page11.FECHA)';
    commit;
    end;
    ...When Button Pressed (Process After Submit When this Button is Pressed) -> ANIADIR
    When I run the application, I insert the values and click "ANIADIR" button, but then I get the following error:
    ORA-01008: not all variables bound
    I´ve tried to find a solution, but I don´t know what is causing this...
    It would be great if you could help me!
    Thanks,
    Luis

    Hello again.
    After some tries I cannot solve this error (ORA-01400: cannot insert NULL into...)
    Table EVALUACIONES description is:
    Column Name     Data Type             Nullable     Default     Primary Key
    ID_ALUMNO     NUMBER     No     -      -
    ID_CURSO     NUMBER     No     -      -
    DESCRIPCION     VARCHAR2(400)     No     - -
    NOTA     BINARY_FLOAT     No     -      -
    OBSERVACIONES     VARCHAR2(500)     Yes -      -
    FECHA     DATE No     -      -
    When the error was:
    ORA-01400: cannot insert NULL into ("LUIS2"."EVALUACIONES"."ID_CURSO")
    I tried to use v_ID_ALUMNO number :=nvl(v('page11.ID_ALUMNO'),0) in order to avoid entering a null value, but then it complained about null value in ID_CURSO (wich is not nullable)
    Then I added v_LISTA_CURSOS number :=nvl (v('page11.LISTA_CURSOS'),0); (the value of v_LISTA_CURSOS is the one I want to insert into ID_CURSO) and it complained about null value in the next colunm, DESCRIPCION (wich is not nullable also)...
    ... so I guess that the code wich is getting the value from the items is not working, because when the INSERT is executed, it tries to insert null values in all columns.
    The last code I have tried is this:
    declare
    v_ID_ALUMNO number :=v(':page11.ID_ALUMNO');
    v_LISTA_CURSOS number :=v('page11.LISTA_CURSOS');
    v_DESCRIPCION varchar2(400) :=v('page11.DESCRIPCION');
    v_NOTA binary_float :=v('page11.NOTA');
    v_OBSERVACIONES varchar2(500) :=v('page11.OBSERVACIONES');
    v_FECHA date :=v('page11.FECHA');
    begin
    execute immediate 'insert into EVALUACIONES '||
    '(ID_ALUMNO, ID_CURSO, DESCRIPCION, NOTA, OBSERVACIONES, FECHA) '||
    'values '||
    '('''||v_ID_ALUMNO||''', '''||v_LISTA_CURSOS||''', '''||v_DESCRIPCION||''', '''||v_NOTA||''', '''||v_OBSERVACIONES||''', '''||v_FECHA||''')';
    -- using v_ID_ALUMNO, v_LISTA_CURSOS, v_DESCRIPCION, v_NOTA, v_OBSERVACIONES, v_FECHA ;
    -- commit;
    end;
    Could you please help me with this?
    Thanks,
    Luis

  • How to insert row in table control and save the data in tables

    Hi,
    I have one table control i am displaying data into table control ,
    my problem is : i want to display data into read mode in table control.
    but when i click on insert button on the same screen i want one blank line should inserted into table control , then i want to insert some data into table control on that row , when i click the save button . the new data inserted into the table control is insert that data into ztable ,
    please give me solution
    main problen is  how can know inserted line in table control and pass that data into ztable.

    Hi,
    Follow the below logic,
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0001.
      MODULE POPULATE_TABLE_CONTROL. --> Get the data from table store in 
                                                                          ITAB
      LOOP AT GT_CTRL_LP_D516 INTO GS_WA_CTRL_LP_D516
           WITH CONTROL CTRL_LP_D516
           CURSOR CTRL_LP_D516-CURRENT_LINE.
      The following module moves data to control
        MODULE MOVE_TO_CONTROL.--> Move data from ITAB to table control
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT GT_CTRL_LP_D516.
      ENDLOOP.
      MODULE EXIT AT EXIT-COMMAND.
      MODULE USER_COMMAND_0001.  --> Here you have to take out the values from table control and update database table
    Reward points if helpful.
    Thanks and regards,
    Mallareddy Rayapureddy,
    Munich, Germany.

  • Inserting rows in table in web template

    How do I insert rows in an already existing table in a web template?
    Thanks,
    Sanjeev

    Hi Gillian,
    By table I meant the layout table, within which you can have multiple queries, the result of each displayed in the manner in which the Web Items are arranged within this table. I think you thought I meant a table Web Item.
    I have a 3x3 table (which I obtained by clicking Insert -> Table -> Insert Table in the menu bar) within which I have 7 Web Items of 'Chart' type. I want to add a few more Web Items to this table, so I want to add rows to it.
    Thanks,
    Sanjeev

  • Inserting rows in table control(Module pool)!!

    Hi,
    Pls provide me with some code sample for inserting rows in a table control (module pool)...
    Regards
    Gunjan

    HI
    Y dont u create a TABLE CONTROL using wizard and copy the coding-
    TRY THIS-
    WHEN 'INSR'.                      "insert row
           PERFORM FCODE_INSERT_ROW USING    P_TC_NAME
                                             P_TABLE_NAME.
    FORM fcode_insert_row
                   USING    P_TC_NAME           TYPE DYNFNAM
                            P_TABLE_NAME             .
    &SPWIZARD: BEGIN OF LOCAL DATA----
       DATA L_LINES_NAME       LIKE FELD-NAME.
       DATA L_SELLINE          LIKE SY-STEPL.
       DATA L_LASTLINE         TYPE I.
       DATA L_LINE             TYPE I.
       DATA L_TABLE_NAME       LIKE FELD-NAME.
       FIELD-SYMBOLS <TC>                 TYPE CXTAB_CONTROL.
       FIELD-SYMBOLS <TABLE>              TYPE STANDARD TABLE.
       FIELD-SYMBOLS <LINES>              TYPE I.
    &SPWIZARD: END OF LOCAL DATA----
       ASSIGN (P_TC_NAME) TO <TC>.
    *&SPWIZARD: get the table, which belongs to the tc                     *
       CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
       ASSIGN (L_TABLE_NAME) TO <TABLE>.                "not headerline
    *&SPWIZARD: get looplines of TableControl                              *
       CONCATENATE 'G_' P_TC_NAME '_LINES' INTO L_LINES_NAME.
       ASSIGN (L_LINES_NAME) TO <LINES>.
    *&SPWIZARD: get current line                                           *
       GET CURSOR LINE L_SELLINE.
       IF SY-SUBRC <> 0.                   " append line to table
         L_SELLINE = <TC>-LINES + 1.
    *&SPWIZARD: set top line                                               *
         IF L_SELLINE > <LINES>.
           <TC>-TOP_LINE = L_SELLINE - <LINES> + 1 .
         ELSE.
           <TC>-TOP_LINE = 1.
         ENDIF.
       ELSE.                               " insert line into table
         L_SELLINE = <TC>-TOP_LINE + L_SELLINE - 1.
         L_LASTLINE = <TC>-TOP_LINE + <LINES> - 1.
       ENDIF.
    *&SPWIZARD: set new cursor line                                        *
       L_LINE = L_SELLINE - <TC>-TOP_LINE + 1.
    *&SPWIZARD: insert initial line                                        *
       INSERT INITIAL LINE INTO <TABLE> INDEX L_SELLINE.
       <TC>-LINES = <TC>-LINES + 1.
    *&SPWIZARD: set cursor                                                 *
       SET CURSOR LINE L_LINE.
    ENDFORM.                              " FCODE_INSERT_ROW
    HOpe this helps u
    Regds,
    Seema.

  • WEB SERVCIE TO INSERT ROW ina Table in DATABASE

    Hi ALL
    I want to create a web service to insert row in a table in database.
    As I am new to Web Service.
    Please help me to do it.
    Thanks in advance !

    Hi Just_For_You !
    I have some code snippet, you can refer them ( i use mySql ).
    @WebMethod
    public void InsertData( int INTVAR2, String STRVAR1)
    Connection conn = null;
    Statement stmt = null;
    try {
    String dbURL = "jdbc:mysql://localhost:3306/wsasset"; // url of the mysql database
    String username = "root"; // username of wsasset database
    String password = ""; // password of wsasset database
    Class.forName("com.mysql.jdbc.Driver");
    conn = DriverManager.getConnection(dbURL, username, password);
    String sqlInsert = "insert into TABLENAME (INTVAR2, STRVAR1)
    values (?, ?)";
    stmt = conn.createStatement();
    stmt.executeQuery(sqlInsert);
    Catch(SQLException e)
    System.err.println(e);
    }

  • Inserting rows into table Based on Column Values.

    Hi,
    I am trying to inserting rows into a table based on Column.
    Id      Name        
    Data
    N 105.1.1
    http://www.example.com/New/105.1.1
    U 105.1.2               http://www.example.com/Used/105.1.2
    S 105.1.3               http://www.example.com/Sold/105.1.3
    I want a table like this. 
    I want to insert Data column value based on Id and Name Columns
    If Id = N and Name = 105.1.1 then Data value should be insert as   http://www.example.com/New/105.1.1
    If Id = U and Name = 105.1.2 then Data value should be  insert as  http://www.example.com/Used/105.1.2
    If Id = S and Name = 105.1.3 then Data value should be insert as   http://www.example.com/Sold/105.1.3
    Can you please help us to write query to insert above Data Column values based on Id and Name Columns.

    INSERT INTO tbl (col) SELECT
    CASE WHEN id='N' and Name='105.1.1 ' THEN 'http://www.example.com/New/105.1.1'
              WHEN id='U' and Name='105.1.2 ' THEN 'http://www.example.com/New/105.1.2'
    END col
    FROM anothertbl
    Sorry , cannot test it right now.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • JDev 11g-Multiple Row Selection Table-Ctrl+A error

    Hello All,
    Jdeveloper : Studio Edition Version 11.1.1.2.0, Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    ADF Business Components : 11.1.1.55.36
    Java(TM) Platform : 1.6.0_11
    Oracle IDE: 11.1.1.2.36.55.36
    SOA Composite Editor: 11.1.1.2.0.12.16
    Versioning Support: 11.1.1.2.36.55.36
    I am trying to remove the selected rows from the table with RowSelection property set to Multiple. I am able to select the rows using by holding key board Ctrl key and click on the rows. The following code in backing bean successfully deletes the rows selected using this step.
    public void removeGeoSpecs(ActionEvent actionEvent)
    RowKeySet rowKeySet = getGmemTbl().getSelectedRowKeys();
    CollectionModel collectionModel =
    (CollectionModel) getGmemTbl().getValue();
    for (Object facesTreeRowKey: rowKeySet)
    collectionModel.setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData =
    (JUCtrlHierNodeBinding) collectionModel.getRowData();
    rowData.getRow().remove();
    But when i select all the rows in the table using Ctrl+A, all the rows got selected. I hit the Remove button, then after deleting the first row, getting the following error.
    javax.servlet.ServletException: ADFv: Could not find row: USA 548 with key: oracle.jbo.Key[] inside parent: GeoSpecTVOIterator with key: null.
    Caused by: java.lang.IllegalStateException: ADFv: Could not find row: USA 548 with key: oracle.jbo.Key[] inside parent: GeoSpecTVOIterator with key: null.
    Here USA 548 is my first row's data. Please let me know if you want complete error stack.
    During design time, While drag and drop the table i have not selected Row Selection check box as it sets property for single row selection. Table is inside the <af:panelCollection> . Here is the table source.
    <af:table value="#{bindings.GeoSpecTVO.collectionModel}" var="row"
    rows="#{bindings.GeoSpecTVO.rangeSize}"
    emptyText="#{bindings.GeoSpecTVO.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.GeoSpecTVO.rangeSize}"
    rowBandingInterval="0" id="GmemTbl"
    partialTriggers=":::AddRowsBtn :::AddRangeBtn ::RemoveBtn :::SaveBtn"
    rowSelection="multiple"
    binding="#{backingBeanScope.GeoGrpSpecBean.gmemTbl}">
    Here GeoSpecTVO is a transient view object which is not having query and not attached with EO.
    I tried to fix this issue by myself and also searched for similar issues in the FORUM and google. But no luck... I very much appreciate all your inputs/pointers. Kindly let me know if you need additional information.
    Thanks
    Annadurai.

    Hi Annadurai
    I tried the same work around but still i am facing the issue, could you please help me.
    public void deleteRec(ActionEvent actionEvent) {
    // Add event code here...
    RowKeySet rowKeySet = (RowKeySet)this.embossTB.getSelectedRowKeys();
    CollectionModel cm = (CollectionModel)this.embossTB.getValue();
    Row specRow = null;
    ArrayList rowList = new ArrayList();
    int listLength = 0;
    ArrayList<Number> printReqLST=new ArrayList<Number>();
    ViewObject vo1=null;
    boolean flag=false;
    for (Object facesTreeRowKey : rowKeySet) {
    cm.setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)cm.getRowData();
    specRow = rowData.getRow();
    rowList.add(specRow);
    listLength++;
    for (int index = 0; index < listLength; index++){
    specRow = (Row)rowList.get(index);
    Number printReqID = (Number)specRow.getAttribute("PrintRequestId");
    String PrintState = specRow.getAttribute("PrintState").toString();
    if (PrintState.equalsIgnoreCase("PRINTED")) {
    System.out.println("cann't delete");
    FacesContext fctx = FacesContext.getCurrentInstance();
    FacesMessage message =
    new FacesMessage("Cann't Delete the selected row:" + printReqID);
    message.setSeverity(FacesMessage.SEVERITY_ERROR);
    fctx.addMessage(null, message);
    } else {
    System.out.println("delete");
    flag=true;
    specRow.remove();
    if(flag){
    System.out.println("before commit");
    commitRows();
    }

  • Unable to insert row into table.

    hi all,
    here i am using oracle apex 3.2.0.0.0.27 version.
    i am unable to insert a row in the database table.when i press a save button i get an error is
    0.07:
    0.08: S H O W: application="132" page="4" workspace="" request="" session="3286250612369434"
    0.14: Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
    0.15: alter session set nls_language="AMERICAN"
    0.16: alter session set nls_territory="AMERICA"
    0.16: NLS: CSV charset=WE8MSWIN1252
    0.16: ...NLS: Set Decimal separator="."
    0.16: ...NLS: Set NLS Group separator=","
    0.16: ...NLS: Set date format="DD-MON-RR"
    0.17: ...Setting session time_zone to +05:30
    0.17: Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY HH:MIPM
    0.18: ...NLS: Set date format="DD-MON-YYYY HH:MIPM"
    0.19: NLS: Language=en-us
    0.21: Application 132, Authentication: CUSTOM2, Page Template: 102166708405540699
    0.27: ...Session ID 3286250612369434 can be used
    0.27: ...Application session: 3286250612369434, user=COMP
    0.28: ...Determine if user "COMP" workspace "16032411264866286" can develop application "132" in workspace "16032411264866286"
    0.29: ...Check for session expiration:
    0.31: Session: Fetch session header information
    0.33: ...Metadata: Fetch page attributes for application 132, page 4
    0.34: Fetch session state from database
    0.38: Branch point: BEFORE_HEADER
    0.39: Fetch application meta data
    0.49: Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY HH:MIPM
    0.49: ...NLS: Set date format="DD-MON-YYYY HH:MIPM"
    0.49: Computation point: BEFORE_HEADER
    0.49: Processing point: BEFORE_HEADER
    0.49: ...Process "Row_fetch": DML_FETCH_ROW (BEFORE_HEADER) F|#OWNER#:PC_MASTER:P4_PC_ID:PC_ID
    0.73: Show ERROR page...
    0.73: Performing rollback...
    0.79: Processing point: AFTER_ERROR_HEADER
    ORA-06550: line 1, column 17: PL/SQL: ORA-00936: missing expression ORA-06550: line 1, column 9: PL/SQL: SQL Statement ignored
         Error      UNABLE TO FETCH
    OK      
    please anyone can help me to come out this problem.
    thanks
    regards,
    tipan

    Hi Tipan,
    This error isn't due to you pressing save, it occurs when the page reloads because you are trying to fetch a record from a database table and the Primary Key APEX Page Item field doesn't have a value in it. You need to add a condition to your fetch so it only runs when the primary key page item has a value in it.
    Hope this helps
    Paul

  • Object Browser - Insert row into table

    Hi,
    I'm attempting to simply INSERT a row into a table using the "Create Row" in the Object Browser. I enter in all the data for the row, and click the Create button. There is no process success message, just another entry form for the Create Row is displayed. When I query the table, the data I just entered for the row is not there. What is going on?
    Thank you,
    Laura

    What version are you using? 2.2.0.00.32
    What are the column datatypes? I have several VARCHAR2, NUMBER, DATE, and CHAR columns.
    Are you using (do you see) the Create or "Create and Create Another" button?
    Yes, I tried both the "Create" and "Create and Create Another" button.
    Does it work correctly on apex.oracle.com?
    Hmm...looks like I will have to request a new Workspace. I haven't logged into there for quite some time (forgot my Workspace name, etc.)...and the email address you have on file for me is no longer a valid email address.

  • Read a file and insert rows into table

    Hi,
    i would like to know how read a file (expl.txt) with the utl_file package and after insert each row into the table (dataID).
    ie :
    file /tmp/expl.txt is containing :
    id1 id2 describe
    2 3 test1
    6 5 test2
    4 7 test3
    and
    table dataID (
    id1 number,
    id2 number,
    describe varchar2(100));
    Thanks you very much.

    Hello,
    You can use the TEXT_IO package.
    Perform an over-all search (right upper corner) on TEXT_IO, and in the results you will find a manual on how to use the package.
    Hope this will help you.
    Regards,
    Cindy

Maybe you are looking for

  • Help with website layout

    Hi, I need help with Dreamweaver CS4. I don't know HTML which is why I am using this program. I am using the AP Div (Not the Insert Div Tag) Icon at the top in the Standard Layout tab accessed by the icon at the top of the panel in the classic layout

  • Outbox in Fax server status

    I am try to export Outbox and Send status in windown 2012 Fax server. I don't need actual fax image. I only want Recipient number, Status.... etc showing in wfc.exe. It's showing in WFC.exe application but I just can't find a way export the list to a

  • HT4623 All new iSO6 applications did not install. How do I retrieve them.

    All new iSO6 applications did not install. How do I retrieve them. (Exp.SIRI)

  • TC for 2 Macs?

    Hello, can i use Time Capsule with 2 Macs (iMac+Macbook), so that i have 2 seperate Backups on one TC? Thanks

  • Why can't i tap the wifi button on my ipod touch 4g?

    When i go to "Settings" the wifi button is greyed out and i can't tap it. Help me please!!