Unable to update records in Plan

Hi
I am trying the example oracle bam integration with Oracle AQ/Database
As while updating myplan in design studio I am not getting any error but data also not inserted in my grid.
when I hit update after 2 mins its displaying updated(2 min 33 seconds, 0 records).
could anyone help me out with this issue?
Regards,
Ana
Edited by: user10181991 on Dec 16, 2008 3:22 AM

Grab your sid of the session that you are running via sys_context('USERENV','SID') or something else and then check out the wait events, and locks:
select * from gv$lock where sid = <sid>;
select * from gv$session_wait where sid = <sid>;P.S. Watch for triggers... YUCK!
Message was edited by:
JoeC

Similar Messages

  • Unable to update record in web Form

    Hi, i am unable to update record in a form. I am building a custom form using forms 6i and putting it on the web in oracle applications 11.5.9
    I used template.fmb as a starting point for my form. I have one datablock based on a table. Insert, update and delete properties are set to yes on the property pallete of data block. The table against which i am running the form has a primary key which is a combination of two fields. I am able to update a record with pure SQL running against the table.
    My form now brings back a record from the db like it should but whenever I try to update that record either by pressing Action Save or by clicking button that has update statement in it, instead of doing an update, it does an insert and tells me that this record already exists and that i entered value(s) that must be unique for each record. It thinks I want to insert but I want to update. What am i doing wrong???
    Update allowed value is set to Yes in all the items in the data block and at the data block level as well. Querly_only is set to no.
    What's even more frustratinng is that I've ran the form manually before starting with template.fmb and have been able to update the table but when I put it on the web and used template.fmb it stopped working!
    I am very new to forms, can anybody suggest anything? Please help!!!

    When you populate the 2nd block with a select into query, it's the same as just typing the data into the block. The record is treated as one needing to be inserted, not as one that is queried.
    To populate it using a true query, but with data from the LOV, you can do this:
    Programmatically set the default_where clause of the block based on the LOV. For example, if a name is chosen from the LOV in an item called LOV1, you could do:
    set_block_property('block2','default_where','name='''||:block1.lov1||'''');
    or if the LOV is a number, like a department number:
    set_block_property('block2','default_where','deptno='||:block1.lov1);
    The tricky part when you build your where clause is that you must surround strings with single quotes, and the way to do this is to use two single quotes to represent an actual single quote in the where clause. Otherwise a single quote is interpreted as part of the PL/SQL syntax.
    Then, just navigate to block 2 and execute a query:
    go_block('block2');
    do_key('execute_query');
    I hope this works for you. I didn't have time to test this, so I hope I didn't make any syntax errors when typing.

  • FRM-40509: ORACLE error: unable to UPDATE record.

    FRM-40509: ORACLE error: unable to UPDATE record.
    what can i do?

    There will always be another error which tells you what the actual problem on the database is. Use the Display message key, or message out DBMS_ERROR_TEXT

  • DataProvider unable to update records in table

    Hi guys,
    as above, I have got this piece of code below.
    What happen is I am unable to update the records in one of the dataprovider - "objectidsDataProvider" (used to keep track of no. of items in itemsDataProvider).
    If I take away the objectidsDataProvider coding; I am able to update the itemsDataProvider.
    Please kindly advice and let me know if any additional info needed. Thanks in advance.
    CODE:
    int newItemId = 0;
    if (itemsDataProvider.canAppendRow()) {
      try {
        RowKey rowKey = itemsDataProvider.appendRow();
        itemsDataProvider.setCursorRow(rowKey);
        // put the new data in the data provider
        itemsDataProvider.setValue("ITEMS.ID", new Integer(0));
        itemsDataProvider.setValue("ITEMS.USERNAME", uname);
        itemsDataProvider.setValue("ITEMS.TITLE", title);
        newItemId = ((Integer)objectidsDataProvider.getValue("MAXITEMID")).intValue();
        objectidsDataProvider.setValue("OBJECTIDS.ID", new Integer(newItemId));
         objectidsDataProvider.commitChanges();
        // Navigate through rows with data provider
        if (itemsDataProvider.getRowCount() > 0) {
          itemsDataProvider.cursorFirst();
          do {
            if (itemsDataProvider.getValue("ITEMS.ID").equals(new Integer(0))) {
              itemsDataProvider.setValue("ITEMS.ID", new Integer(newItemId));   
          } while (itemsDataProvider.cursorNext());
        itemsDataProvider.commitChanges();
      } catch (Exception e) {
        log("Cannot add new DVD", e);
        error("Cannot add new DVD: " + e.getMessage());
      return "success";
    } else {
      return "fail";
    SELECT * FROM DVD.OBJECTIDS
    TABLE_NAME        ID
    items            28
    SELECT * FROM DVD.ITEMS
    ID    USERNAME    TITLE
    1        John        300
    ...

    RowKey rowKey = itemsDataProvider.appendRow();
    itemsDataProvider.setCursorRow(rowKey);
    // put the new data in the data provider
    itemsDataProvider.setValue("ITEMS.ID", new Integer(0));
    itemsDataProvider.setValue("ITEMS.USERNAME", uname);
    itemsDataProvider.setValue("ITEMS.TITLE", title);try to use this :
    RowKey rowKey = itemsDataProvider.appendRow();
        itemsDataProvider.setCursorRow(rowKey);
        // put the new data in the data provider
        itemsDataProvider.setValue("ITEMS.ID", rowKey ,new Integer(0));
        itemsDataProvider.setValue("ITEMS.USERNAME", rowKey ,uname);
        itemsDataProvider.setValue("ITEMS.TITLE",rowKey , title);and dont forget to end ur code with ,,, commiteChanges();
    Hope this will help
    Good luck
    Mohammed

  • Unable to update records in table

    Hi all,
    While updating particular set of records in a table system gets hanged however it is allowing to update rest of record.i checked lock using
    v$locked_object ,v$session but i cud't find any..is there any way to find lock at all levels.
    thanks

    Grab your sid of the session that you are running via sys_context('USERENV','SID') or something else and then check out the wait events, and locks:
    select * from gv$lock where sid = <sid>;
    select * from gv$session_wait where sid = <sid>;P.S. Watch for triggers... YUCK!
    Message was edited by:
    JoeC

  • LSMW (PA40) successful but unable to update records in PA30

    Hi,
    I have tried running LSMW ( with external no range) in Fore ground mode. I can see that the data is getting properly picked from Excel sheet and in foreground mode, I am able to see this data getting into screens when i run LSMW last step.
    But actually when i go and check in tables and in PA30 if these employees are hired, there is no data.
    Can you please check the below --->
    My guess is while recording when we save 0,1,2 there should be some code written for "SAVE". In my recording BDC Code i ddint find any specific code. Can you check in your recordings if there is any special code for "SAVE" like BDC_OKCODE = "SAVE".
    Since there is no code written in my recording, i think this is the reason data is not getting saved.
    Can you let me know what needs to be done? If the above doubt is right, how to insert that in my BDC code.
    For your information-> U can find my BDC code pasted here.
    Recording REC7 M7
    PA40 Personnel Actions
    SAPMP50A 2000
    BDC_CURSOR T529T-MNTXT(01)
    BDC_OKCODE =PICK
    RP50G-PERNR PERNR Personnel Number
    RP50G-EINDA EINDA Entry Date
    RP50G-SELEC(01) X SELEC_01 Indicator for list sc
    BDC_SUBSCR /1PAPAXX/HDR_30060A
    MP000000 2000
    BDC_CURSOR PSPAR-PERSK
    BDC_OKCODE =UPD
    P0000-MASSN MASSN Action Type
    PSPAR-WERKS WERKS Personnel Area
    PSPAR-PERSG PERSG Employee Group
    PSPAR-PERSK PERSK Employee Subgroup
    MP000200 2010
    BDC_CURSOR Q0002-GESC1
    BDC_OKCODE =UPD
    Q0002-ANREX ANREX Form of address text
    P0002-NACHN NACHN Last Name
    P0002-VORNA VORNA First Name
    Q0002-PERID PERID Personnel ID Number
    P0002-GBDAT GBDAT Date of Birth
    Q0002-GESC1 GESC1 Gender key
    Q0002-GESC3 GESC3 Gender key
    BDC_SUBSCR SAPMP50A
    Thanks & Regards,
    Mamta
    Edited by: Mamta on Oct 28, 2008 7:58 PM
    Edited by: Mamta on Oct 28, 2008 7:59 PM

    Dear All,
    First of all I would like to answer all your questions.
    1. Yes, I tried LSMW by including PSPAR-PERNR PERNR Personnel Number in BDC code under MP000000 2000 too. Also, I did add the Perner again in the upload file too. In Read data mode I can see that Perner appeared twice as per our recording. In convert data Perner appeared only one. When I run last step of LSMW in foreground mode everything was perfect. But again when I go and check in PA30 there is no data.
    2. Yes, I did use PA40 for recording.
    3.  The sequence is 0000->0002->0001 while recording , in uploading file and in foreground mode too.
    4. When I run in foreground it appears like the regular Manual PA40 transaction.
    I donu2019t what might be causing this error. I would be glad to know your answers for the above issue.

  • Error in updating records brought by LOV

    Hi everybody
    I am using Oracle 10 g
    when fetching data from the database by choosing a specific record from LOV then trying to make "save" means "commit" I have this error
    FRM-40509: Oracle error: unable to update record
    I think there is a problem in mapping btw the record in the form and the cursor pointing to that record in the database because when i execute "next_recod" button after choosing one in LOV it go to the record next the one specified before choosing from LOV
    knowing that updating process working correctly when choosing by ("first_record, previous_record, next_record or last_record)
    so what is the solution
    please help
    thank you very much

    yes please
    I didn't know what do you mean by customized or default menu
    I build LOV using the wizard and bind it by a query to a table then make Show_LOV from the form
    so when I choose one of the rows and they brought to the text boxes assigend to them after that when I make "Commit" I got that error
    thank you for help
    and sorry for bieng late in reply, I don't have enternet after 2:00 pm

  • Getting the error "Error while trying to update record" when I try to force complete a plan in DAC

    Hello Everyone ,
    I am using OBIA 7.9.3.7 . One of my execution plan has finished executing all the tasks but it is still in running mode . When I try to force complete it , it gives the error " Error while trying to update record" . Upon checking the log file , I found the below errors :
    MESSAGE:::ORA-04092: cannot COMMIT in a trigger
    ORA-06512: at "DAC_CUSTSCM.ETL_FAIL_NOTOFICATION", line 9
    ORA-04088: error during execution of trigger 'DAC_CUSTSCM.ETL_FAIL_NOTOFICATION'
    EXCEPTION CLASS::: java.sql.SQLSyntaxErrorException
    The Plan is in running state for past couple of days . I tried to re-start the DAC services , but again it gave the same error . Kindly suggest .
    Regards
    Satyendra

    Just to correct , the version of obia is 7.9.6.3

  • Unable to update a record using PAI, in Module pool

    Hi Experts,
                        I m unable to update the records in to the table using P A I in module pool, could any one help me out dear.
    The prg is as follows:
    INCLUDE MZFIRSTPAGETOP                          .    " global Data
    TABLES: ZCHP_CUST_INFO.
    DATA:   CNAME LIKE ZCHP_CUST_INFO-CREATED_BY,
            REQTYP LIKE ZCHP_CUST_INFO-REQUEST_TYPE,
            DESC LIKE ZCHP_CUST_INFO-SHORT_TEXT,
            PRIO_TYPE LIKE ZCHP_CUST_INFO-PRIORITY_TYPE,
            EFFECTIVE_DATE like ZCHP_CUST_INFO-REQUIRED_STR_DAT,
            COMM_TYP like ZCHP_CUST_INFO-MODE_OF_COMM,
            COMM like ZCHP_CUST_INFO-ADDRESS.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'FOR1000'.
      SET TITLEBAR '1000'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    INCLUDE MZFIRSTPAGEO01                          .  " PBO-Modules     *
    INCLUDE MZFIRSTPAGEI01                          .  " PAI-Modules     *
    INCLUDE MZFIRSTPAGEF01                          .  " FORM-Routines   *
    *&      Module  USER_COMMAND_1000  INPUT
          text
    MODULE USER_COMMAND_1000 INPUT.
    CASE SY-UCOMM.
      WHEN 'SUBMIT'.
    Updating the record.
            ZCHP_CUST_INFO-REQ_NUM = C_KNUMV.
            ZCHP_CUST_INFO-CREATED_BY = CNAME.
            ZCHP_CUST_INFO-REQUEST_TYPE = REQTYP.
            ZCHP_CUST_INFO-PRIORITY_TYPE = PRIO_TYPE.
            ZCHP_CUST_INFO-SHORT_TEXT = DESC.
            ZCHP_CUST_INFO-CREATED_ON = EFFECTIVE_DATE.
            ZCHP_CUST_INFO-MODE_OF_COMM = COMM_TYP.
            ZCHP_CUST_INFO-ADDRESS = COMM.
    INSERT ZCHP_CUST_INFO.
    COMMIT WORK.
    WHEN 'RESET'.
           CLEAR: CNAME,REQTYP,PRIO_TYPE,
    DESC,EFFECTIVE_DATE,COMM_TYP,COMM.
      WHEN 'CANCEL'.
            LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_1000  INPUT
    Thanks in advance,
    Sunil

    Hi Kal chand,
                      This is the whole prg where the records are not updated. But the ref number is updated.
    INCLUDE MZFIRSTPAGETOP                          .    " global Data
    TABLES: ZCHP_CUST_INFO.
    DATA: OKCODE LIKE SY-UCOMM.
    CONSTANTS: LC_NUMBER_RANGE TYPE INRI-NRRANGENR VALUE '01',
               LC_COND_OBJECT TYPE INRI-OBJECT VALUE 'KONV'.
    DATA: L_IS_REPL_DELIV TYPE XFLAG,
          C_KNUMV TYPE I.
    DATA:   CNAME LIKE ZCHP_CUST_INFO-CREATED_BY,
            REQTYP LIKE ZCHP_CUST_INFO-REQUEST_TYPE,
            DESC LIKE ZCHP_CUST_INFO-SHORT_TEXT,
            PRIO_TYPE LIKE ZCHP_CUST_INFO-PRIORITY_TYPE,
            EFFECTIVE_DATE like ZCHP_CUST_INFO-REQUIRED_STR_DAT,
            COMM_TYP like ZCHP_CUST_INFO-MODE_OF_COMM,
            COMM like ZCHP_CUST_INFO-ADDRESS.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'FOR1000'.
      SET TITLEBAR '1000'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    INCLUDE MZFIRSTPAGEO01                          .  " PBO-Modules     *
    INCLUDE MZFIRSTPAGEI01                          .  " PAI-Modules     *
    INCLUDE MZFIRSTPAGEF01                          .  " FORM-Routines   *
    *&      Module  USER_COMMAND_1000  INPUT
          text
    MODULE USER_COMMAND_1000 INPUT.
    CASE SY-UCOMM.
      WHEN 'SUBMIT'.
    *FOR INCREMENTING THE VALUE.
    C_KNUMV = C_KNUMV + 1.
    USED FM TO GENERATE NUMBERS.
    CALL FUNCTION 'NUMBER_GET_NEXT'
         EXPORTING
           nr_range_nr = lc_number_range
           object      = lc_cond_object
         IMPORTING
           number      = c_knumv.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Updating the record.
            ZCHP_CUST_INFO-REQ_NUM = C_KNUMV.
            ZCHP_CUST_INFO-CREATED_BY = CNAME.
            ZCHP_CUST_INFO-REQUEST_TYPE = REQTYP.
            ZCHP_CUST_INFO-PRIORITY_TYPE = PRIO_TYPE.
            ZCHP_CUST_INFO-SHORT_TEXT = DESC.
            ZCHP_CUST_INFO-CREATED_ON = EFFECTIVE_DATE.
            ZCHP_CUST_INFO-MODE_OF_COMM = COMM_TYP.
            ZCHP_CUST_INFO-ADDRESS = COMM.
    *ENDIF.
    INSERT ZCHP_CUST_INFO.
    COMMIT WORK.
    WHEN 'RESET'.
           CLEAR: CNAME,REQTYP,PRIO_TYPE,
    DESC,EFFECTIVE_DATE,COMM_TYP,COMM.
      WHEN 'CANCEL'.
            LEAVE PROGRAM.
    ENDCASE.
    regards,
    Sunil

  • "FRM-40501: Oracle error: Unable to Reserve Record For Update or Delete"

    "FRM-40501: Oracle error: Unable to Reserve Record For Update or Delete"
    as I can unblock a session in the graphical surroundings of administration of the BD 10g of Oracle

    From experience with this problem since the blocked customer form has been coded not to wait for the updating session to complete then there is likely no waiter on the system now so you cannot find the blocking session.
    What you need to do is determine what row the Form was going after then using SQLPlus issue an update on the row. If the blocking session has not yet committed then this update will wait. Now if you look for blocking sessions you will be able to find it and make a determination if the session should be killed or if someone needs to call the user and ask he or she to flip through their screens and get out of the blocking screen.
    Applications screens written not to wait on currently being updated data need to also be written to expose the information necessary to identify the row(s) in question.
    HTH -- Mark D Powell --

  • Updating detail record and getting multiple 'UNABLE TO INSERT RECORD' msgs

    Help! We have 2 datablocks, master and detail block with relation defined. Master is defined with view based on database joins; detail is view based on table.
    When I update the record in detail block, error message 'UNABLE TO INSERT RECORD' appears four times, then I get transaction complete: 5 records applied and saved, where the one record successfully updates. Why are we getting four records with insert errors and one record update? We don't want to work directly on the table, but why can't we use the view? please help.

    The UNABLE TO INSERT record will be accompanied by more information if you press the Display Error key. Your form commit processing should stop when it gets an error like this, the fact that it doesn't implies that somewhere in your code you are not checking for FORM_SUCCESS before continuing doing something else.
    This sounds quite involved, we would need to have more information about what records are queried and what's being changed on them to cause the commit.

  • FRM-40501 ORACLE error: unable to reserve record for update or delete when

    Hello.
    I have two tab pages and one item on each page. Second tab page item, is mirror item of the first one. I use synchronize property on the mirrored one.
    When i try to update mirrored one i get that error: FRM-40501 ORACLE error: unable to reserve record for update or delete when.
    How can i solve that?
    Thanks

    hi dejan,
    the error u r getting means that the record cannot be locked. This is ussually caused if u had locked the record from somewhere else (u or another user) or when forms cannot find corresponding column to the base table to lock the record.. U probably r facing the second situation. I'm not sure that forms can commit a change to an item that is synchronized cause synchronized items ignore their base table attribute and just copy their value from the other item.
    Why don't u try Copy Value from Item property using <block_name>.<item_name> syntax and your item will have a value copied from the other item but u will have no problem with the db transactions. I suppose..
    hope this helps,
    teo

  • FRM-40509: ORACLE error : Unable to update the record.

    Hi,
    I am having the following code in delete button.
    declare
         v_button  NUMBER;
    begin
      IF :CHNG_CNTRL_JOB_DTLS.SENT_DATE IS NULL THEN
                   v_button := fn_display_warning_alert( 'Do you want to delete the version ?');
                   IF ( v_button = alert_button1 )
                        THEN
                          message('before insert');
                          insert into chng_cntrl_job_dtls_log
                          select * from chng_cntrl_job_dtls
                          where job_name = :CHNG_CNTRL_JOB_DTLS.job_name
                          and job_version_no = :CHNG_CNTRL_JOB_DTLS.job_version_no
                          and sent_date is null;
                          message('before delete');
                          delete from CHNG_CNTRL_JOB_DTLS
                          where job_name = :CHNG_CNTRL_JOB_DTLS.job_name
                          and job_version_no = :CHNG_CNTRL_JOB_DTLS.job_version_no
                          and sent_date is null;
                          message('before commit');
                          silent_commit;
                          go_item('CHNG_CNTRL_JOB_DTLS.JOB_NAME');
                          P_DELETE_SET_PROPERTY;
                          clear_form;
                   ELSIF ( v_button = alert_button2 )
                        THEN
                          null;
                END IF;
         ELSE
                p_display_alert('Version '||:CHNG_CNTRL_JOB_DTLS.JOB_VERSION_NO||' for the job name '||:CHNG_CNTRL_JOB_DTLS.JOB_NAME||' cannot be deleted.','I');
      END IF;
         exception
              when others then
              message ('Exception in delete version button');
              end;when i am trying to save it says " *FRM-40509: ORACLE error : Unable to update the record*." .
    i am getting message till before commit.
    i am not able to check the error message in help as it is diabled in our form builder.
    I have checked the privileges also. they are fine.
    Please advice.
    Edited by: Sudhir on Dec 7, 2010 12:26 PM

    This error does not come from your procedure code, but from Forms itself. If you are in a database block, change something, and do a commit (either via a Forms key or in your own procedure), Forms commits the changes. For some reason this is not possible. You can see the database error via the Display Error key (often Shift-F1).
    I see in the OP that this key is disabled. Change the on-error code then:
    begin
       message(dbms_error_code||'-'||dbms_error_text);
       raise form_trigger_failure;     
    end;     Edited by: InoL on Dec 7, 2010 8:50 AM

  • Unable to update when executed, table gets lock Execution does not stop Execution even for an hour

    Following is my Query unable to update when Executed table gets lock Execution does not stop even for an hour.
    update Employees 
          set Status = 'Close'
          where statusid IN (select statusid 
                                             from MyView 
                                              where DownloadedDate ='2014-07-27 00:00:00.000'
    here Employee contains 3,00,000 of records and Subquery return 1,50,000 Empid 
    i tried in various ways but not able to solve, statusid  column have no index on,  i tried using cursor but it does not work.
    plz let me know how to solve this Issue, THANKS IN ADVANCE.

    Hello,
    You should better post your question to a more related Forum, like Transact-SQL or SQL Server Database Engine; this Forum is for samples & community Projects.
    Have you checked the execution plan if indexes are used?
    You could update the data in chunks, e.g. 10.000 rows per execution. For this you have to add a TOP clause and a filter to update only those, who are not updated yet.
    update TOP (10000) Employees
    set Status = 'Close'
    where statusid IN
    (select statusid
    from MyView
    where DownloadedDate ='2014-07-27 00:00:00.000')
    AND Status <> 'Close'
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • I am unable to update apps on my iPhone 4. I tried rebooting but still I get an error message which says "unable to update"

    I am unable to update apps on my iPhone 4. I tried rebooting but still I get an error message which says "unable to update"

    I really didnt want to restore unless i had absolutely other option.
    as per usual, apple wont help unless i buy an apple care plan. helpful much.

Maybe you are looking for