Another user has changed the primary key

uses 11.1.1.5.0 - adfbc jdev

After each insertion while saving the recording
get error like this > > > another user has changed the primary key

What should I do to avoid this?
<?xml version = '1.0' encoding = 'UTF-8'?>
<BC4JConfig version="11.1" xmlns="http://xmlns.oracle.com/bc4j/configuration">
   <AppModuleConfigBag ApplicationName="com.rits.glm.model.servicesAM.generalLedgerAM">
      <AppModuleConfig DeployPlatform="LOCAL" JDBCName="goodwell" jbo.default.country="IN" jbo.project="com.rits.glm.GeneralLedger" name="generalLedgerAMLocal" ApplicationName="com.rits.glm.model.servicesAM.generalLedgerAM">
         <Database jbo.locking.mode="optimistic"/>
         <Security AppModuleJndiName="com.rits.glm.model.servicesAM.generalLedgerAM"/>
      </AppModuleConfig>
      <AppModuleConfig DeployPlatform="LOCAL" JDBCName="goodwell" jbo.default.country="IN" jbo.project="com.rits.glm.GeneralLedger" name="generalLedgerAMShared" ApplicationName="com.rits.glm.model.servicesAM.generalLedgerAM">
         <AM-Pooling jbo.ampool.dynamicjdbccredentials="false" jbo.ampool.isuseexclusive="false" jbo.ampool.maxpoolsize="1" jbo.ampool.resetnontransactionalstate="false"/>
           <Database jbo.locking.mode="optimistic"/>
         <Security AppModuleJndiName="com.rits.glm.model.servicesAM.generalLedgerAM"/>
      </AppModuleConfig>
   </AppModuleConfigBag>
</BC4JConfig>

a few suggestions
Houston-25014: another user has changed...
http://adfhowto.blogspot.com/2010/12/troubleshooting-another-user-has.html
Another user changed the row with primary key

Tags: Java

Similar Questions

  • What is this error represents "another user has changed the line containing oracle.jbo.Key [21 primary key]."

    Mr President.

    What is this error represents "another user has changed the line containing oracle.jbo.Key [21 primary key]."

    Concerning

    You get this exception quite often when you have a business in PL SQL layer, but you can safely ignore (suppress) it by substituting the lock() method in all implementation of your entity classes.

    /*** customizing locking management: 
    * Because attribute values can change 'outside' ADF standard life cycle, 
    * when optimistic locking executes, the exception "Another User Changed the Row" is thrown. 
    * In this case, we execute locking again, ignoring the exception 
    */ 
    public void lock() 
    { 
     try 
     { 
      super.lock(); 
     } catch (oracle.jbo.RowInconsistentException e) 
     { 
      if (e.getErrorCode().equals("25014")) 
      { 
      super.lock(); 
      } 
      else throw e; 
     } 
    }
    
  • Another user has modified the line containing oracle.jbo.Key primary key

    Hello

    In jdev 12 c

    I have a jsf page in a BTF, and there is a display of master(A:readonly table)-detail(B1:readonly table)-detail(B2:editable form) this page

    The (readonly table) B1 and B2 (editable form) are created on the same data control. There is no other layout compicated or functions on this page.

    The B2 (editable form) was based on a VO whose id is a type of DBSequence, and the new value has been created by a database trigger.

    I put

    All the columns that are updated by a database trigger or a PL/SQL call, are enabled for "Refersh on Insert" (for the case of the insertion) or "Refresh update" (for the case of update) or both in the entity object xml file.

    But when I submit/validate the page (form B2), the error msg 'another user has changed the line containing oracle.jbo.Key primary key' was always held randonly.

    And after the error msg, I can commit the data successfully by press the button validate again.

    How can I solve this problem?

    Thank you.

    The problem is that you use the pl/sql code. It is run out of the box. When a change is made in a row in this way, the framework removes upward, neither knowing that the change was done rightly and throws an error message.

    The code (which I copied from the other thread for reference) intercepts the error and re executs the lock in the case of the specific error.

    /*** customizing locking management:

    * Because attribute values can change 'outside' ADF standard life cycle,

    * when optimistic locking executes, the exception "Another User Changed the Row" is thrown.

    * In this case, we execute locking again, ignoring the exception

    */

    public void lock()

    {

    try

    {

      super.lock();

    } catch (oracle.jbo.RowInconsistentException e)

    {

      if (e.getErrorCode().equals("25014"))

      {

      super.lock();

      }

      else throw e;

    }

    }


    Timo

  • Another user has modified the line containing oracle.jbo.Key [186 primary key].

    $36F1884EBC353A84.jpg

    as summer sees in this photo, when I click on the button to edit, it will invoke the code like this:

    BindingContext bcxt1 = BindingContext.getCurrent ();

    DCBindingContainer bc1 = (DCBindingContainer) bcxt1.getCurrentBindingsEntry ();

    DCIteratorBinding iterProj = bc1.findIteratorBinding("CuxProjects1Iterator");

    DC DCDataControl = iterProj.getDataControl ();

    ApplicationModule am = (ApplicationModule) dc.getDataProvider ();

    ViewObject projVO = am.findViewObject("CuxProjects1");

    projVO.clearCache ();

    projVO.setNamedWhereClauseParam ("project", currProjId);

    projVO.executeQuery ();

    got this page with changes on the name of the project:

    $24017B6E59120421.jpg

    then click on 'done' button.invoke a procedure like this:

    State channel = null;

    DBTransaction connection BD = this.getDBTransaction ();

    CallableStatement st =

    BD connection.createCallableStatement ("start cux_projects_crud.update_proj(?,?,?,?,?,?,?); end; ", 0) ;

    try {}

    st.setInt (1, proId);

    st.setString (2, proName);

    st.setString (3, proSummary);

    st.setDate (4, null);

    st.setDate (5, endDate);

    st.setInt (6, userId);

    st.registerOutParameter (7, Types.CHAR);

    st.executeUpdate ();

    State = st.getString (7);

    Then return to the first page as the top image.

    My problem is not rested but redesigned data into DB. When I click on the button to edit again, I get ' javax.faces.el.EvaluationException: oracle.jbo.RowInconsistentException: Houston-25014: another user has modified the line containing oracle.jbo.Key [186 primary key].» This error. How to solve this problem?

    In addition, I see a problem that the changes you make in the procedure are not validated and will not be picked up by the query.

    Timo

  • Another user has modified the line containing oracle.jbo.Key [5046 primary key].

    The application of the ADF was working fine until I made the following changes. I changed the phone number field in the number to varchar2 database. Then I synced the entity with the database to take the field changes. I then updated to manually the setter methods and the Get accessor of < entity > RowImpl.java for the phone number field (channel number). I then did the changes associated with in the jspx file to show the phone field.

    Now I am facing this error: another user has modified the line containing oracle.jbo.Key [5046 primary key]. How to debug and fix this? Is that all I need to do to the view the feature-based object?

    Thank you

    Published by: user5108636 on February 8, 2012 15:31

    Published by: user5108636 on February 8, 2012 15:33

    maybe try to drop the EO/VO and create it again.

  • ADF: addition of the JSF error message: another user has modified the line containing oracle.jbo.Key [185 primary key].

    When you call the function DB. The function performs its operation, but shows an exception. In JDev 11.1.2.3

    And there is not another user. I'm testing alone.

    ADF: addition of the JSF error message: another user has modified the line containing oracle.jbo.Key [185 primary key].

    oracle.jbo.RowInconsistentException: Houston-25014: another user has modified the line containing oracle.jbo.Key [185 primary key].

    The problem is that the function db has a commit and my code also. However the db function called once in a case.

    Thanks a lot for your help.

  • which detects that the user has changed the clock of the device?

    Hi all my application dependent on the clock time in the device settings. who can my application to detect if the user has replaced the unit time? Thank you

    Salvation;

    It's the Question2:

    and I found the solution:

    bps_initialize();
    Subscribe (clock_get_domain ());
    clock_request_events (0);

    void ApplicationUI::event(bps_event_t *event) {}
    unsigned int dcode = bps_event_get_domain (event);
    If (dcode is {clock_get_domain()})
    unsigned int code = bps_event_get_code (event);
    if(code == CLOCK_INFO) {}
    Q_EMIT dateorclockuserChanged(); signal function qml
    }

    }
    }

    Thanks a lot for your help

  • Why I am constantly a message saying that another program has changed the metadata?

    I get all the time on the images. I've never used other programs. And I can't find a way to each work on why I get the message. Also, I don't know whether to choose settings to import from disk or to replace the settings because I have not actually used another program. To add to the problem, I can't find a way to add a response to all of the photos at once and thousands seem to be affected. Ideas anyone? Windows 7, just upgraded to 6 of Lightroom, but it happened with Lightroom 3, 4 and 5 as well.
    2016-02-20_120120.jpg

    You use Bridge or Adobe Camera RAW?

    If you use another program other than the latest version of LR, LR 3,4 and 5.

    Choose a version of LR and stick to it. Then once you know that you have all of your presets and other custom settings carried over to LR 6, you must uninstall at least versions 3 and 4

    You can select all the images made and click on the exclamation mark (!) in one of them. You must select in the grid view not in the film strip to apply the changes to all of those at once.

  • Houston-25014: another user has modified the line containing oracle.jbo.Key primary key [...] error on validation and subsequent edition + validation

    JDev Version: Studio Edition Version 11.1.1.7.0

    Java/JDK used in IDE (jdev.conf): jdk1.6.0_45

    I get this error after existing commit changes and then subsequent changes + undertakes, immediately after the first validation.

    In my view, this error is caused the type used in the column of the history of LastUpdateDate.

    In the occurrence area, the type of the attribute LastUpdateDate is defined as the Date (type Java) when the error occurred.

    Tried with Timestamp (Java type), as well, but the same error.

    Finally, tried with oracle.jbo.domain.Date type and the error does not occur.

    I would like to know if there is a directive to use Oracle Date type for columns of history using the date.

    Please let me know

    Take a peek inside

    http://www.jobinesh.com/2011/08/what-you-may-need-to-know-about-data.html

    See you soon

    AJ

  • Change of primary key on the Table clears the other columns

    Preliminary info/Installation
    JDeveloper 11 g 11.1.1.6.0
    We have a table (object view or entity) that has 8 columns. The primary key is composed of 4 1 columns.
    The table is displayed in a page fragment.
    2 of the 4 non-primary key columns are LOV.
    All the 8 columns are needed.
    The table is editable including 2 of primary key columns.

    Question
    Assume that the table displays the 3 lines. If we change a rank 1 non-primary key column and a primary key in row 2 column, everything works well when we are committed to the database
    If, however, we first change a primary key column, then a primary key on a different line column, then the column/row primary key that changed us first, gets annihilated and the other columns LOV on this same line. The 2 columns that are not LOV keep data as it should. We then get a validation error because the required data are not present. All this happens before we try all commit to the database. If debug us and look the iterator, it has the old data in this document, before and after any performance on the binding.
    If we look at and update the data via the App Module, everything works well. We have tried to update the view, etc. through valueChangeListener also with no luck.

    If you change the primary key value, it should not be the primary key.

    This is true in the design of database relational regardless of how access you the data. In addition, EO don't like if you change the primary key value.

    Have you considered adding a surrogate key (use a sequence) and make your PK course a unique key?

    John

  • Change of primary key?

    Hello

    I understand that the change to the primary key on a table enabled version is not possible. What is the proposed route of action then?

    Disable versioning, change of PK and reactivate the version control? Unfortunately, it is not as simple as that because I FKs to other tables enabled version. I would avoid cascading disable version (I have the impression it will spread most of the schema)

    Can I just delete the table and re-create it with the new PK and then reactivate the version control?

    Hello

    You are right. The only way to change the primary key is to run the dbms_wm.disableversioning on the table. Is there are tables that are related through foreign key constraints, then you can drop/disable these constraints and then reactivate once the table has been modified with the new primary key. This will allow you do not have to call disableversioning on several tables.

    Kind regards
    Ben

  • FRM - 40654 Record has been updated by another user. Refresh the file

    Hello

    Scenario of

    ------------
    Header block - H1
    Multi disc child block - C1
    ----------------
    Update of a field - rate of change in the header block - should change two fields - "price and quantity" in the block of records child multi - C1.
    There is no trigger database on all the tables.
    We have treated the logic above in the update of H1 post-declencheur.

    Updated explicit statemetns still appear in the subsequent update trigger, whose purpose is to update the table of the child of the block - price and quantity columns.

    -------------------
    Question
    Is it correct to use an update statement in the post update trigger oto updated the table of the child block. Otherwise, the wheat is the right way?
    We are also updating a column of synthesis called 'sum_amount' which belongs to H1.
    -----------------------
    We get the error:
    -------------
    FRM - 40654 Record has been updated by another user. Refresh the folder to display the change.
    -----------------

    Updates on this would be useful. We stayed by the suggestions in this forum... and were not able to solve this problem...
    Concerning
    SR

    If it is not updated in later day, what's the alternative outside using post - update trigger so that the prices of columns and the amount are updated as soon as the exchange rate is updated.

    Have you commented the trigger for update again?

    In general, I tend to use the over - or before fires (suite-update / Pre - Update). However, I think that you'll get the same error using these triggers. More importantly, I need to know the answer to my previous question:

    We are also updating a summary column called "sum_amount" that belongs to H1.
    

    How are you on this column of table of contents? The SUM_AMOUNT column is a calculated field or you have written the code that updates this article? The column SUM_AMOUNT is a field of database? >
    My first reaction is that this process is the most likely cause of your error FRM-40654, but that's just a guess.

    Craig...

  • APEX do not allow to change the lines of the columns that are the primary key?

    I have pictures:
    http://img508.imageshack.us/my.php?image=21269582oe8.jpg


    Book (id_book - 'Primary key', title, year); book_author (id_author id_book - 'Primary key', - 'Primary key'); author (id_author - "Primary key", name)



    I created a new page-> Form-> form of 'author' table because I want to add new authors, modification and deletion. During the creation of this page, I have chosen column 'id_author' as '1 primary key column' and everything is OK (I can't edit the 'id_author' column - this column is autoincrement and I can change the 'name' column).

    BUT I also created a new page-> Form-> table for table "book_author" because I like to write numbers like id_book and id_author, change and remove them (so add relations between tables: book, book_author and author). During the creation of this page, I have chosen column 'id_book' as '1 primary key column' and 'id_author' as 'column primary key 2'. And on the Web site, I can't edit these fields. And I can not add also new line because I see in each new line: (null).

    http://img444.imageshack.us/my.php?image=11324615yk9.jpg

    APEX do not allow to change the lines of the columns that are the primary key? It's stupid... What can I do?

    Edited by: user10731158 2008-12-20 11:40

    Column unique and not meaningful if you ever want to update. In the case of your example, you need to add an ID column in the intersection of book_author table. Honestly, I was so blown away (and pleasantly surprised) by the absence of rebuttal and the "thx" I advanced and set up an example of how I would define the book_author table:

    create table  book_author
       (id varchar2(32),
        book_id varchar2(32),
         author_id varchar2(32),
         modified_on     date,
         modified_by varchar2(255),
         constraint book_author_pk primary key (id),
         constraint book_auth_book_fk foreign key (book_id) references books(id),
         constraint book_auth_author_fk foreign key (author_id) references authors(id)
         )
    /
    
    create unique index book_author_uq on book_author (book_id,author_id)
    /
    
    create or replace trigger  biu_book_author before insert or update on book_author
    for each row
    begin
         if inserting then
              :new.id := sys_guid();
         end if;
         modified_on := sysdate;
         modified_by := nvl(v('APP_USER'),user);
    end;
    /
    

    Good luck
    Tyler

  • How to generate the primary key element and move to another page?

    How to make the primary key value to another page in a table?

    Form on T_ITEMS 2.png

    Hello

    I am a beginner in the apex,

    Please, now I want to add the primary key to page 1 for item id in page 2...

    Notice:

    Before, I created (process of pl/sql in the rendering of page @ after the header section) to get the id of secuance.

    BEGIN
    :P17_ID := seq_t_items_id.NEXTVAL;
    END;
    
    
    

    primary key is generated for the element ID of page 1... BUT When I update 'page 1' I see error and solved when shut down my browser and open it again...

    Please help me to...

    1. Generate a primary key (article id @ page 1)... without refresh error. ?
    2. Pass him (item_id) on page 2

    Thank you all for...

    Sorry I'm beginner in apex,

    I don't know how Pass value of the item_id TO page 1 page 2 "in the form ID", turn to the first PHOTO... .
    Help me..

    Thank you

  • Current version of the data in the database has changed since the user has launched the process of update: tabular

    Hi people

    Version of the apex is 4.2

    Oracle database: 11.2.0.2

    I have created a simple form in a table on a table with the following structure

    {code}

    Name                                                  Null?    Type

    ----------------------------------------------------- -------- --------------

    TID NOT NULL NUMBER

    TEAM_NAME VARCHAR2 (30)

    EMP_NAME VARCHAR2 (30)

    DATE OF REPORT_DATE

    CATEGORY_NAME VARCHAR2 (30)

    NUMBER OF CATEGORY_HR

    CATEGORY_COMMENT VARCHAR2 (120)

    CREATED_DT                                                     DATE

    CREATED_BY VARCHAR2 (30)

    STATUS VARCHAR2 (1)

    {code}

    In the form of default table is

    {code}

    Select

    TID,

    TID TID_DISPLAY,

    TEAM_NAME,

    EMP_NAME,

    REPORT_DATE,

    CATEGORY_NAME,

    CATEGORY_HR,

    CATEGORY_COMMENT,

    CREATED_DT,

    CREATED_BY

    of ' #OWNER # '. " TIMESHEET.

    {code}

    I wanted to add an additional line inserted in the tabular presentation, that's why I included 'UNION ALL' in the query like this

    {code}

    Union of all the

    Select

    TID, null,

    tid_display null,

    team_name null,

    emp_name null,

    report_date null,

    category_name null,

    category_hr null,

    category_comment null,

    created_dt null,

    created_by null

    of the double

    {code}

    After having done that, I can see a blank line on the form of tables, but each time I fill data in the fields and press the "SUBMIT" button, I get the below error

    Current version of the data in the database has changed since the user has launched the process of update

    Thank you

    Navneet

    Why are you insert an extra line manually in tabular from?  There is a feature to add a line.

    If you want to insert a blank line when the page loads, then create dynamic action, this is a most appropriate feature.

    If you manually insert an extra line so that you have to write the update for this procedure.

    Leave.

Maybe you are looking for