TABULAR FORM UPDATE ERROR CURRENT VERSION OF DATA IN DB HAS CHANGED...!

Hi all Experts on Apex 423 and Oracle xe 11g r2...
I'm getting a systematic error when updating a Apex Tabular form : the Oracle internal engine complaining that the row ID's are out of syncr?  I'm use ROWID instead of ID  ( trigger has been created but I think should not used ...!)
Any advise.
remark:  The  SIMPLE DATA APPLICATION has the same issue when trying to update the QUANTITY field on ORDERS... STRANGE NOT?
MFOConsulting  Switzerland
[email protected]

Hi All Apex Experts,
Détails  with Détails records  in a TABULAR FORM .
I tranformed this program Master-Détails with Détails records  in FORM ( not tabular)  and this  error message is no more displayed on the screen.!!
CONCLUSION:   there is a   SERIUOS  BUG in Apex 423.00.08   and 424.00.008!!
I hope that People in Oracle Corporation is  working on this bug. and the next release of  Apex 5.0 will correct it.
PS:   The SIMPLE DATA BASE installed   with any version of Apex... display this MSg .( update ORDERS  quantity of items and you recieve thiS fanny message!
MFOConsulting Switzerland

Similar Messages

  • Tabular form Update Error,"Current version of data in database has changed

    I'm getting an error when updating a Apex Tabular form. It's complaining that the row id's are out-of-sync. The error reads,' Current version of data in database has changed since user initiated update process. current row version identifier = "56DW5A8A7EBA3B42073AE6E71480A784" application row version identifier = "99B52A15F10E34647E9E18B6B7AE8C30" .
    Has anyone received this error? Any solutions? Note that the primary is being populated by a trigger. I have another tabular form for a different application that updates without issue, this however, uses a sequence to update the primary key.
    Thanks,
    James

    Make sure that the form is defined such that it "knows" that the PK is being set by a trigger. Do not try to set it in the form if the trigger is doing it. Pretty much if a trigger attempt to modify any column that also was editable (including hidden columns) in the form, the two will conflict.
    The other issue could be that do you have any items on the rows that are disabled? Disabled items are not sent to session state so Apex won't be able to properly compute the checksum and it'll find a discrepancy.

  • APEX Error: Current version of data in database has changed since user init

    Hi:
    APEX 4.1
    I have a page with 2 regions. The first region is built with custom SQL using the APEX APIs. I have a process the can successfully update records.
    I built the second region with the tabular form wizard. This created the multi row update process.
    I created a region button and the two process respond to that button: process for first region, then process for the second region.
    When I add data to the second region and click the region button, I get the following error:
    Current version of data in database has changed since user initiated update process. current row version identifier = "A884FA378C851786DDFE3A33709CB23C" application row version identifier = "9ED06A0F09F80F054AB781CA24CC4CBF"
    I know it has something to do with these two types of regions being on the same page, because when I create a page of just the table form, the data is updated.
    Can anyone suggest what I might be doing wrong?
    Thanks.

    Hello
    If you try update the same data from 2 places you will got this message because:
    Apex forms have locking mechanism.
    1. During fetch data to form apex calculate checksum from every items on the forms.
    2. Before update process apex again fetch data from database (in background) and calculate checksum again if checksum from point 1 is the same like this checksum APEX realy update data with new item values. If no, You will got your error (apex secure You, You realy don't know what you update).
    According this if you change data which you use in the form between 1 and 2 point you will got this "error". You can check it for example if you change data from SQL/Plus or from other form.
    Probably you forget about this locking mechanism during designe your process from APEX API <- successfully update records (maybe successful but you don't know what you updated) : )
    If I helped You please check correct or helpful :)

  • MRU Error : Current version of data in database has changed since user init

    When i use HTMLDB Wizard to create Master Detail Form
    (You can see step by step what i doing by see this url :
    http://jroller.com/resources/w/wildan83/MRU%20Error.pdf
    The is error in MRU :
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "A884FA378C851786DDFE3A33709CB23C", item checksum = "0EEFFABE8252B0B279DB14A77F567F5D"., update "CNAP2"."ENROLLMENT" set "STUDENT_ID" = :b1, "SECTION_ID" = :b2, "ENROLL_DATE" = :b3, "FINAL_GRADE" = :b4.
    If there something missing.., just say ..
    Thanks for the help.

    Oh i see ..,i never think if that is the source of the MRU
    error.
    Ok ..,
    Now ..., i have new question .., how can i change so the the primay key in detail table (enrollment table), i have one primary key with two columns .., if you don't understand what i mean ..,
    check this alter table statement :
    ALTER TABLE ENROLLMENT
    ADD CONSTRAINT ENR_PK PRIMARY KEY
    (STUDENT_ID
    ,SECTION_ID) ;
    Now the question is .., when i using wizard to create master detail form .., html db automatically make student_id and section_id as the primary at "application level (html db)" .., how can i change this behaviour ..,
    i want the html db not treat this two column as primary key ?
    Do i have to create master detail form manually to accomplish this ?
    Thanks before .., sorry if my english is not too good.

  • ORA-20001: Current version of data in database has changed since user.....

    Hi,
    I am having a tabular form which I created using the wizard
    I am facing the below error when I try to update or 'Add Row'
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process."
    I havenot changed the query but I made certain columns based on select list,gave some default values,etc..
    How can I solve this problem?
    Also,I am getting the above error once I change the query for another tabular form.The client wanted some more fields to be displayed on the page.
    How can I solve this problem too?
    Thanks and Regards,
    K.tanna

    Can somebody help me out?

  • ORA-20503: Current version of data in database has changed since user initi

    Hi,
    I am getting the below error when I try to update an existing record.
    "ORA-20505: Error in DML: p_rowid=11887, p_alt_rowid=CASE_ID, p_rowid2=, p_alt_rowid2=. ORA-20503: Current version of data in database has changed since user initiated update process. current checksum = "7EB7B6F69DB421184B4CEE0884E435C6" application checksum = "53106AB0EB97FD1442D85F2AAE3AFA69"
    Error Unable to process row of table "
    And this does not happen always. IT happens once in a while and I am unable to check what is causing the issue. It is a critical issue and need to be fixed asap.
    Any help is greatly appreciated!
    Thanks!
    Kavya

    We are using Apex version: 3.1.2.00.02
    What else could be the reason and how should I fix it?
    At this point the application is migrated and I am unable to write a custom package for the DML operations. And this issue happens randomly and that too only while updating the data.
    Please help!

  • More elegant solution for error "Current version of data in database..."

    When two users try to manipulate the same record in a form, one of them gets the "Current version of data in database has changed since user initiated update process." when updating.
    I'd like a more elegant solution (or prevention) of this situation by disabling the update button on the form of the second user who opens the record and display a message on the page that the record is currently opened by another user, so it is only available in "read-only mode" by the other user.
    How can I do something like this? Or what are the multi user policies that other apex developers on the forum use and how are they implemented?

    I don't think I would disable anything, as you need to consider the situation where someone opens a record, then goes to lunch.
    You might update 2 columns such as "last_opened_on" and "last_opened_by" for the row. Then when the 2nd person opens it you could display a prominent indicator (red+bold) if it was opened by someone else in the last 10 min, as well as showing who opened it last. If it hasn't been opened in over 8 hours, you could basically de-emphasize that indicator by making it light gray or something. The goal is not to lock or disable anything, but warn a user when they open a record that was recently opened. If logistically possible, this gives them the opportunity to call / IM each other to coordinate.
    Tyler Muth
    http://tylermuth.wordpress.com
    [Applied Oracle Security: Developing Secure Database and Middleware Environments|http://sn.im/aos.book]

  • ORA-20505: Error in DML - Version of data in db has changed

    Hello,
    Application Express 3.1.0.00.32
    I have created a Report and Master Detail in the Sample Application on oracle.application.com. I am receiving an error on my Master Detail Form when clicking the <Previous and Next> buttons. I have viewed other issues like this in the forum but, it looks like everyone is a little different. Can anyone assist me with this error when browsing to the next record(s). Thanks in advance.
    ORA-20505: Error in DML: p_rowid=6, p_alt_rowid=CUSTOMER_ID, p_rowid2=, p_alt_rowid2=. ORA-20503: Current version of data in database has changed since user initiated update process. current checksum = "E9A08EDC02A82871E6865DB254B09ED2" application checksum = "39454529513F24BE60C167752BF71750"
    I created another Master Detail page and I do not have any errors when scrolling using <> buttons. Here is a process that may be causing my error using the original Master Detail page.
    DECLARE
    CUSTOMER_ID VARCHAR(20);
    BEGIN
    SELECT CUSTOMER_ID INTO :P21_CUSTOMER_ID
    FROM DEMO_CUSTOMERS
    WHERE CUST_FIRST_NAME = :P21_CUST_FIRST_NAME;
    -- processing here
    EXCEPTION
      -- Catches all 'no data found' errors
       WHEN NO_DATA_FOUND THEN
         DBMS_OUTPUT.PUT_LINE
           ('No Data found for SEARCH on ' || CUSTOMER_ID);
    END;Edited by: Charles A on Apr 30, 2009 11:40 AM

    Hi Charles,
    I've had a look at your page 21.
    The problem was that the "Fetch Values 2" process was not conditional and was running in the "On Load - Before Header" process point. This meant that it was being run every time the page was being loaded. This process checks for the CUSTOMER_ID relating to the value in P21_CUST_FIRST_NAME which, because the "Fetch Row..." process hasn't been run at that point (it runs "On Load - After Header"), will always return the same CUSTOMER_ID value from when the page was first loaded. The Next/Previous buttons, however, moved the P21_CUSTOMER_ID forward/back one value (this became apparent when this field was changed from "Hidden and Protected" to "Text"). As a result, the data on the page was for "Albert" but the CUSTOMER_ID value was for whatever record was next/previous to the Albert one. Thus, moving next/previous always caused a mix of the actual data.
    I have changed the "Fetch Values 2" process to be conditional on P21_CUSTOMER_ID being NULL. This way, the CUSTOMER_ID value is ONLY found by code when the page is first loaded. Thereafter, it is controlled by the Next/Previous functionality.
    Andy

  • Back button to re-edit form..."Current version of data..." error?

    I've noticed a fairly common error that my users are running into. Here is the situation...
    A user navigates to a form...makes modifications...saves the form...and is redirected to another page. Then, the user clicks the browser back button to re-edit the form...saves the form and gets the following error...
    "...Current version of data in database has changed since user initiated update process...."
    I am currently running v2.0...but I was able to also duplicate the issue within v3 (online...Customer Tracker sample application).
    Is there any way to catch the error to display a custom message?
    Or maybe some settings that I am missing to guarantee that when the user clicks the back button, the page is refreshed so it doesn't show the cached version with the old data?
    Or maybe there is another way to approach this?
    Thanks...
    Matt

    Matt,
    This is functioning exactly as it should... Imagine what could happen if it didn't work that way! People would overwrite other's information all the time.
    I think the solution you need is two fold: user training and app modifications.
    I know what you're thinking, user training, hah! But it's going to help as you make more of these kinds of web apps.
    As for app modifications there are two I can think of that may help.
    1. I don't know how the users open the app but if they click on a link then you can have the popup window open without tool bars and such (but they still have the backspace on the keyboard).
    2. Add a button on the page they are redirected to after saving the form. Make the condition of the back button "If item is not null" and put PXX_ITEM_NAME in expression 1.
    Then create the item you just put in expression 1as display as text (saves state). Set the condition to never. Now go to the page with the form, and create a process that sets PXX_ITEM_NAME equal to the value of the item used as the primary key for the form. Make sure the process only fires after an update is made.
    Then when the users get to the page after making a modification they will see a "back" button.
    The last step is to create a branch that will take the user back to the form if they click the button and populates the form item for the primary key.
    Let me know if this is making any sense or not.
    Dan
    Dan

  • Error in mru : ORA-20001: Error in MRU: row= 1 Current version of data ...

    hi i am getting tihs error msg
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum
    i'll try to show a form table in which i can edit and add data
    when i use the wizzard it is all fine with editing but i cant creat a new item because i have to insert my primary key and that shoud be done automatically.
    ok again
    my PK is at first col1 and second col2
    i got a dropdown list in which i choose an item from col1 to just show items in my form with that value, here are more than one results possible
    no i want to edit col2 up to col4
    or add a line with the same col1 but different col2 and some col3-col4 values
    but if i add a line i want to insert col2 to up to col4 (and the PK from col1 shoud be automatically insert from my dropwdown list i choosed before)
    i want in col2 an drop down list
    so all this works fine i got all the changes i want but when i try do save or update my changes i got the error frome above
    i think the problem is at the primary key thing cause i want to choose a part manually but i have to
    to get the new line actually u use the add row link but i use instead after my select statement an
    Union select :P62_PNR_VOll, null, null, null from dual
    to get my first pk automatically from my dropdown element (in my case :P62_PNR_VOLL)
    how can i solve that error?
    thx for ur help
    regadrs
    Falk

    Hi Falk,
    It is usually best to have a sequence number for the primary key on a table. If you need to restrict other fields to be unique, then you can create a constraint to do this.
    To create a sequence number and apply this to a new record, you need to do two things:
    Let us say that you have a table called TABLEX and this has a numeric primary key field of ID. Do the following in the SQL Commands window
    1 - Create a sequence SQL object:
    CREATE SEQUENCE "TABLEX_ID_SEQ"  MINVALUE 1 MAXVALUE 99999999999999999999999 INCREMENT BY 1 START WITH 1 NOCACHE  NOORDER  NOCYCLE2 - Create a trigger:
    CREATE OR REPLACE TRIGGER "TABLEX_BI"
    BEFORE
    INSERT ON "TABLEX"
    FOR EACH ROW
    BEGIN
    IF :NEW.ID IS NULL THEN
      SELECT TABLEX_ID_SEQ.NEXTVAL INTO :NEW.ID FROM DUAL;
    END IF;
    END;This needs to be enabled, so run:
    ALTER TRIGGER "TABLEX_BI" ENABLEWhen this is done, you then have "An existing trigger" that you can use for your tabular form. When a new record is created, the trigger is run and this checks for a value in the ID field. If this is NULL, then the next value in the sequence is assigned to it.
    Primary Keys can be based on other values. You can use any value from the current record - for example, if you need to get the value from the XXX field, you just reference :NEW.XXX You can use this to pass into a function that returns your new primary key value. But I would recommend keeping to one field for your primary key as this makes things a lot simpler later on.
    Andy

  • Cannot Update Tabular form Values Error in mru internal routine: ORA-20001:

    i have created some master detail records through a manual tabular form. Iam getting the following error when i tried to updated the values through another inbuilt tabular form....
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "9067F4C5EF14529F831CB42B5567C288", item checksum = "07865E78639EB6477FB5DFB8B02EA047".,

    Hi
    Hopefully my response to your Error in mru internal routine: ORA-20001: no data found in tabular form thread will help. In this thread's example, there is no error message that displays the column names required, but the principle would be the same: Make sure that all fields drawn from the table are included as editable or hidden columns on the report (so that there is one instance of each field shown with a tick in the Edit column on the report's Report Attributes page).
    Andy

  • Not a tabular form, but getting row version identifier error.

    APEX 4.1.0, Oracle 10g
    Error is: Current version of data in database has changed since user initiated update process. current row version identifier = "47FAF7A2C1A5E49E0CF90D1320CCFC50" application row version identifier = "0"
    I've seen this error in the forums for tabular forms, but my form is just a normal apex page with a standard fetch and a standard insert/update/delete process. It isn't a tabular form or a master/detail, just a simple form. There is not another person using the data. This happens on an update or delete and on several different pages for several different tables!
    I've tried using debug, and from debug, I see that the error comes right after this:
    ...Execute Statement: begin begin select "NARR_ID","TEXT","PRJ_PROJ_ID","NARR_TYPE_PROJ"
    into wwv_flow.g_column_values(1),wwv_flow.g_column_values(2),wwv_flow.g_column_values(3),wwv_flow.g_column_values(4)
    from "BASIS"."NARRATIVES" where "NARR_ID" = :p_rowid for update ; end; end;
    I more or less understand what the error is intended for. APEX produces a checksum of the table row values at some earlier point (maybe at the fetch?) and then produces another checksum of the table row values just before the update or delete. APEX then compares the two checksums.
    Based on the error message, one of the checksums is "0". I'm not sure if the "application row version identifier" is the first checksum or the second checksum, but either way it shouldn't be zero. Right? So, why would this checksum be zero?
    Edited by: JackieW on Apr 29, 2013 8:42 AM

    I upgraded to JDev 3.2 and rewrote my code to extend the new
    version of EditCurrentRecord. Now when I deploy to 9ias I get a new error:
    Error Message: java.lang.NullPointerException: I'm following the online help
    to deploy but I must be missing something cause it works in JDev. Any
    suggestions?

  • Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in data

    I have a page that has a form to my issue table and on the same page, in a different region, I have a tabular report that shows the issue_activity for the specified issue. The primary key on the issue table is the issue_no which is a sequence and the primary key on the issue_activity table is (issue_no,line_no), where issue_no comes from the issue table. A parent-child relationship between issue and issue_activity.
    When I add a row to my tabular form and type in some data, I get a (Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process.) error. When I look at the data, everything looks fine.
    The issue_no and line_no are correctly set. My Issue_no and line_no fields on my report are hidden fields.

    I rebuild the report using a tabular form and populated the primary key with a PL/SQL expression and now it appears to be working. P1_ISSUE_NO is the primary key on the issue table and I could not figure how to get it in the issue_no field of the tabular report when a new line was entered I ended up putting the following code in for the default for
    issue_no on the report:
    Begin
    return :P1_ISSUE_NO;
    end
    It works great.

  • Tabular Form update,delete

    Hi,
    I am using database 11G, on windows XP with apex 3.0. I have created a tabular form with update & delete buttons. The table is a detail table having foreign key columns. On creation of form I choose foreign key column as primary key. The problem is when i check one row for delete the rows having same id on foreign key column are also deleted. Second When I update the following error is reported & no column is updated,
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "197D508D2444826DA98FC1E3D259EA31", item checksum = "F98E67DE7FF4EC9710E5A1B052E38C78"., update "HT"."INTRA_ORAL_EXAM" set "OPD#" = :b1, "TOOTH#" = :b2, "RESTORATION" = :b3, "DENETAL_DECAY" = :b4, "XRAY" = :b5, "SYMTOM" = :b6
         Error      Unable to process update.
    need help
    Sajjad

    Hi,
    OK - that makes it a bit more complicated as you can not add a primary key to a table that contains data. This means that we will have to copy the data into a temporary table first.
    Assume that you have a table called C_TABLE that is defined as:
    CREATE TABLE C_TABLE
    FIELD1 NUMBER,
    FIELD2 NUMBER
    )These are the steps that you need to do (each of these bits of code run be run separately):
    Firstly, copy the data into a new table:
    CREATE TABLE C_TABLE_COPY
    AS
    SELECT FIELD1, FIELD2
    FROM C_TABLECheck that the table has been created:
    SELECT * FROM C_TABLE_COPYThen drop the existing table:
    DROP TABLE C_TABLECreate C_TABLE with a new Primary Key column:
    CREATE TABLE C_TABLE
    C_ID NUMBER,
    FIELD1 NUMBER,
    FIELD2 NUMBER,
    CONSTRAINT "C_TABLE_PK" PRIMARY KEY (C_ID)
    )Create a new SEQUENCE object to provide the primary key with values:
    CREATE SEQUENCE "C_ID_SEQ" MINVALUE 1 MAXVALUE 99999999999999999999999 INCREMENT BY 1 START WITH 1 NOCACHE NOORDER NOCYCLECreate a new TRIGGER object to populate the primary keys with new SEQUENCE numbers when new records are added to C_TABLE:
    CREATE OR REPLACE TRIGGER "C_TABLE_BI"
    BEFORE
    INSERT ON C_TABLE
    FOR EACH ROW
    DECLARE
      v_id NUMBER;
    BEGIN
      BEGIN
        IF :NEW.C_ID IS NULL THEN
          SELECT C_ID_SEQ.nextval INTO v_id FROM dual;
          :NEW.C_ID := v_id;
        END IF;
      END;
    END;Enable the trigger:
    ALTER TRIGGER "C_TABLE_BI" ENABLECopy the data back into the table:
    INSERT INTO C_TABLE (FIELD1, FIELD2)
    SELECT FIELD1, FIELD2
    FROM C_TABLE_COPYCheck the new table has primary keys:
    SELECT * FROM C_TABLEAndy

  • Capturing and dealing with ORA-20001: Current version of data in database..

    Hi all,
    If a user has an edit screen open, and for what ever reason (another user, trigger) the data for that record changes, on save theh user gets ORA-20001: "Current version of data in database has changed since user initiated update process. "
    Understandably.
    How do you guys make this look a little more profesional to ther user. Can you captuere this error and direct them to a message?
    Thanks.
    NT

    Hi All/ Mr. Neil,
    Ditto on your question. I'm having the same problem.
    Boss really doesn't like it. Any nice gui/ user friendly
    solution?
    Thanks.
    Carol

Maybe you are looking for

  • Why is it that every time i go into the discription section on any video on the youtube app it crashes?

    I tried closing out of Youtube and then deleting it from the app history and back in but it did not do anything. I tried signing out an in of my youtube account and still didnt work. Its only other channels on my ipod touch 4g. My channels descriptio

  • Mac OS X Calendar Reminders Multiplier

    I have a daily event in google calendar, which is also in mac calendar and in the iphone calendar, the event has only one reminder 5 minutes before the event, but after some time the reminder began to multiple itself and after a few days I have list

  • Document Mgmt issue

    Hi All, I am having problem in DMS. While trying to work on CV04N transaction and making a search based on Date , the documents are not getting filtered as per the date. Thus date serach in not working correctly .It is filtering all documets irrespec

  • Billing type should pickup by default while doing the Stock transfer invoic

    Dear Guru's, For stock transfer Process when I am creating billing with reference to delivery Billing type ZF2 do not come by default. where I need to do the setting for this. System through the error saying that: 100000245 000000 Delivery type ZNL c

  • Error in date format in lsmw recording

    Hi all, I am uploading condition records using recording..I have two date fields DATAB and DATBI which are of data type dats...I have defined the corresponding source fields as char8...Now in the last step when i am processing the batch input session