EO can update the attributes

Hello

I am facing a strange problem in a production environment. One of my OS is updated to an incorrect value and it affecting the value null. The business logic must update the field 'A' and it does, but it updates the field 'B' on a null value too. I have already increased the newspaper on the weblogic (- Djbo.debugoutput = console - Djbo.logging.show.function = true - Djbo.logging.show.timing = true) to check the SQL command and the command just SQL update the field to the right ('A').

Other information:

  • The B field is 'required', so null is not activated and no Houston exception was thrown before the doDML method.
  • This only in production. Acceptance or development this situation is not arrive with the same data and database (dump).
  • My first suspicion was that certain triggers (before the update) was running on Oracle and update this field to null, but there is no trigger in doing so.
  • If I try to run the SQL directly on Oracle, it works very well.
  • The B field is of type char (1 byte) to the database and in the SQL command on the console the UPDATE is B's RETURN in a variable. I did not understand why this has happened but an other EO which has the same attribute (char (1 byte)) did the same thing when it has been updated.

I'm under options, any help would be appreciated.

WebLogic journal:

[210511] (0) OracleSQLBuilderImpl.bindWhereAttrValue (2218) where binding param 1:130593

[210512] (4) OracleSQLBuilderImpl.doEntityDML (322) OracleSQLBuilder execution, lock DML 2 on: TABLE (driver)

[210513] (0) OracleSQLBuilderImpl.buildUpdateStatement (1786) UPDATE buf Reporteoperadora > #u SQLStmtBufLen: 255, real = 125

[210514] (1) table OracleSQLBuilderImpl.doEntityDML (408) START UPDATE TABLE SET A =: 1 WHERE PK =: 2 INTO VOTING B: 3; END;

[210515] (0) OracleSQLBuilderImpl.bindUpdateStatement (2106) update binding param 1:5109570

[210516] (1) OracleSQLBuilderImpl.bindWhereAttrValue (2218) where link param 2:130593

[210517] (18) OracleSQLBuilderImpl.doEntityDML (540) OracleSQLBuilderImpl.doEntityDML failed...

[210518] (1) OracleSQLBuilderImpl.doEntityDML (541) X / Open SQL State is: 72000

[210519] (1) Diagnostic.printStackTrace (410) java.sql.SQLException: ORA-01407: cannot update ('USER'. "TABLE '." ("' B ') with the NULL value

Thanks in advance,

Alexandre Rocco

I discovered what the problem was... The version of the Oracle production database has been changed and that causes a problem with the command "BACK IN" in the update.

All fields with char (1 byte) has been installed with "Refresh after" update and insert in the OT, create this command in update. Remove this option fixes the problem. By default, this field is created with this configuration on Jdeveloper.

Tags: Java

Similar Questions

  • Impossible to update the attributes using the modifyuser IDXML

    Hello

    I'm updating the attributes by using change user IDXML.

    Here are the values that I'm passing to the web service:

    GAtt OAMModify.GenericAttribute = new OAMModify.GenericAttribute ();

    gAtt.AttrName = 'Description ';
    String [] gattvalue = new string [1];
    gattvalue [0] = 'TEST ';
    gAtt.AttrNewValue = gattvalue;
    gAtt.AttrOperation = "REPLACE_ALL;
    attr. GenericAttribute = new OAMModify.GenericAttribute [] {gAtt};

    If I try to update to attribute Title everything works fine, but if I try to change the Description or any custom attribute, I get the following error.

    Invalid name for the attribute Description

    I have been unable to isolate the problem with the description attribute, any help, why it is happening?

    Thank you

    Riou

    Hey riri,.

    You do this in the application identity system, tab of Configuration of User Manager Console and select "Tabs" in the left menu.

    Kind regards
    Colin

  • Y at - there any API in EBS for updating the attributes columns on lines IN... ?

    Hi all

    I'm looking for some API which will help me to update the columns attribute on the lines of PO. I searched in metalink also but I have not found any idea for that.
    Help, please.



    Thank you
    Ravi Raj.

    API in general do not update or manipulate ATTRIBUTE columns from these customer data defined in the store. You will need to update these columns directly.

    year https://forums.Oracle.com/forums/Search.jspa?threadID=&q=attribute+and+API+and+Update&objid=C3&DateRange=Last & userID = & numResults = 15 & rankBy = 10001

    HTH
    Srini

  • How update the attribute of the user of IOM in tasks

    Hi all

    I need to initialize an attribute for all users of the IOM. I created a task where I use the following code:

    ...

    UserLogin string = "";

    < String > retAttrs value = new HashSet < String > ();

    retAttrs.add (AttributeName.USER_KEY.getId ());

    retAttrs.add (AttributeName.USER_LOGIN.getId ());

    retAttrs.add (AttributeName.PASSWORD.getId ());

    ...

    UserMap HashMap < String, String > = new HashMap < String, String > ();

    UserManager usermgr = Platform.getService (UserManager.class);

    User < user > list;

    try {}

    SearchCriteria criteria;

    criteria = new SearchCriteria (AttributeName.USER_LOGIN.getId (), "*", SearchCriteria.Operator.EQUAL);

    users = usermgr.search (criteria, retAttrs, null);

    for (user: user) {}

    System.out.printf ("username: % s\nStatus: % s\nPassword: %s\n\n", userLogin, userStatus, plainTextPassword);

    user.setAttribute ("ClearPassword", plainTextPassword);

    usermgr. Modify (User);

    }

    } catch (UserSearchException e) {}

    e.printStackTrace ();

    } catch (ValidationFailedException e) {}

    e.printStackTrace ();

    } catch (UserModifyException e) {}

    e.printStackTrace ();

    } catch (NoSuchUserException e) {}

    e.printStackTrace ();

    }

    ...

    "This 'update' method does not work for me and I see the error:

    < 22 January 2015 13:09:07 THIS > < error > < oracle.iam.identity.usermgmt.impl > < BEA-000000 > < usr_key is an attribute of the system and cannot be set through the API. >

    oracle.iam.identity.exception.ValidationFailedException: IAM - 3056148:usr_key is an attribute of the system and cannot be set through API.:usr_key

    at oracle.iam.identity.usermgmt.impl.UserManagerImpl.modify(UserManagerImpl.java:624)

    ...

    "

    Please, can you tell me what is the problem?

    Thank you very much!

    Milan

    You must add a few lines in your code and change some

    List of users;

    try {}

    SearchCriteria criteria;

    criteria = new SearchCriteria (AttributeName.USER_LOGIN.getId (), "*", SearchCriteria.Operator.EQUAL);

    users = usermgr.search (criteria, retAttrs, null);

    for (user: user) {}

    System.out.printf ("username: % s\nStatus: % s\nPassword: %s\n\n", userLogin, userStatus, plainTextPassword);

                               User newUser = new User (user.getEntityId ());

                      

    newUser.setAttribute ("ClearPassword", plainTextPassword);

                              usermgr. Modify (newUser);

    }

  • I can update the software version

    Thank you for the update to version 6 s 9.3.5 iOS iPhone software

    You have a problem or a question? Or is it just a "thank you note"?

  • JavaScript in photoshop can update the data in a file image xmp:label?

    Hello, I noticed that the labels in bridge are visible in the bridge, but when you look in the info of a PSD file you do not see an option to change the XMP label to something else, unless you go back to the bridge and change the label None. is it possible to get rid of it in Photoshop?

    Here's a way to remove the label in Photoshop.

    #target photoshop
    if(documents.length){
    if (ExternalObject.AdobeXMPScript == undefined)  ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    xmp = new XMPMeta( app.activeDocument.xmpMetadata.rawData );
    xmp.deleteProperty(XMPConst.NS_XMP, "Label");
    app.activeDocument.xmpMetadata.rawData = xmp.serialize();
    }
    
  • Can update us the attributes column standard table oracle by custom trigger?

    Can update us column attributes in the Standard oracle table using custom trigger? Is this allowed by oracle? Is this supported?

    Thank you

    The ATTRIBUTE columns store information of FDF and so code custom can be used to update their content. It must be that these updates do not 'logic' alteration (an ATTRIBUTE column may be designed to store the color of a product, for example, but an incorrect SQL statement can update the value of a digital, which causes corruption - Oracle doesn't have a way to check the validity of these statements updates). In addition, some locales, as the Brazil and India, reserve some ATTRIBUTE columns during use - update of these columns don't is not supported. More information can be found in Flexfields Guide for your press release to http://www.oracle.com/technology/documentation/applications.html

    HTH
    Srini

  • HOW automatically update the values of the attributes in a VO?

    Hi, experts,

    In jdev12.1.3

    There are two attributes in the original Version, when the line is created or updated and sent, these attributes should be updated automatically:

    1 revise_date: the current datetime object is defined on it;

    2 revisor: employee name of the user who is a field in the page will be defined on it.

    I rewrote the code for RowImpl.java of the VO as java:

    public Date getReviseDate()

    {

    return ((Row.EFFDT_UPDATE_CHANGE_INSERT_MODE == this.getETask () .getEntityState ())

    || ((Row.STATUS_NEW == this.getETask () .getEntityState ())) ? (Date) Date.getCurrentDate ():

    GetAttributeInternal (REVISEDATE) (date);

    }

    But it did not work as I hope. What is wrong with him?

    In addition, in order to set the value of revisor, how do I bind values of a reference of a jsf in RowImpl.java of the VO page

    Thank you!

    Or you can update specific attributes in the method DO DML in your EO Impl class

    Oracle ADF and Jasper ireport tips: overview of the ADF OT and VO classes

    Ashish

  • What api to update the additional attributes of the employee

    Hi all

    I created all of my employees using hr_employee_api.create_employee, now I need to update in bulk the additional attributes for each employee (e.g. attribut1, attribut2... etc). What api should I use to do.

    Thanks and greetings

    Zulfiqar haider

    Hello
    I think you can use HR_PERSON_API. UPDATE_US_PERSON to update the attribute columns. Please check in your test before proceeding
    You can use it for your final update in bulk. Hope this helps you.

    Thank you
    Satin

  • Can not update the settings on the Airport Express

    Currently have a facility - two extremes and an Express network.  I for the life of me can't update the Express settings. I always get an error message but I can update the settings on the two extremes very well. I can make changes to the Express with my Iphone but I can't with my Imac.  I want to activate the function of 5 GHz but I can't do that via my Iphone - with the desktop app I think.  Can someone help me?

    Let's first check and make sure that on which Airport Express version you have.

    Your version of the AirPort Express is there only 1 or 2 Ethernet ports?

    The Express to connect to your network and extend it wireless?  Alternatively, the Express connects to one of the extremes airport using a wired Ethernet cable connection.

    Then, I would be not too concerned of not being able to 'see' the Express of the iMac as long as you can access the settings of the iPhone. You can make almost any change using the iPhone you can use a Mac.

  • Can I update the video BIOS?

    How can I update my video BIOS?

    Hello!

    I've never done an update of the vBIOS and it s doesn't know only not for me if possible.
    She would not recommend the vBIOS updates.

    But you can update the BIOS or the graphics driver. You can download it on the Toshiba page.

    Good bye

  • Can I update the image of factory restore?

    Hi all

    I recently had the pleasure to make a 'factory restore' on a M100 and an A300.

    While the process went smoothly (even if the A300 recovery disk creator should not be put back first to make it work), data that has been restored were, of course, obsolete because he didn't understand not updates either the operating system (Vista Home Basic) or to one of the Toshiba Software (including drivers and tools utility).

    I know that you can return the system to Toshiba for a new image of the HARD drive by them (at great cost), but I don't know if that provides a picture of 'update' or if she simply replaces the original image (obsolete).

    Is it possible the 'factory restore' image stored on the recovery partition can be updated and a user, or a technician of the 'non-Toshiba"without having recourse to external software such as Acronis?

    Thanks in advance for all advice offered.

    Hey Buddy,

    No, you can update the image of factory restore t. Settings (Windows, driver, etc.) are stored in an image that can t be changed or updated because these settings are pre-tested on your laptop computer and any change would be not compatible. In addition, I think that Windows updates are made with two or three clicks, you need just to a good internet connection. Alternative, you install Microsoft's latest Service Pack which contains many important updates ;)

    By the way: I made my own image using Acronis image. After the installation of recovery disk Toshiba I removed all applications that I n t need (ConfigFree for example), installed the Windows updates and my other apps that I need (Skype, Office, etc.). After that, I tested the laptop a bit and finally and especially that I created an image with Acronis. So I can restore my own settings every time too. ;)

  • Passport files no. Dropbox blackBerry visible folder is READ only? But can update through the mixture.

    It worked the last time I checked the folder.  I tried to remove and install the application in.

    If I try to copy a file from the device in the drop box folder, I see:

    "Unable to copy the files to a folder read-only.

    Yet, if I use the mixture to copy a file from my laptop to the SAME dropbox folder, I see that the file in the mixture and the synchronization occurs.   But when I chek the folder on the phone there is nothing.

    Box works very well.

    Not sure why I can update the phone folder.

    Plase help!

    David.

    FIXED!

    https://www.dropboxforum.com/HC/communities/public/questions/201406259-no-folders-appear-in-list-win...

  • Process command API, update the value of the attribute FDF

    I use oe_order_pub.process_order to create a return order and as part of the logic that I need to fill attribute FDF, I see that value is updated in their respective fields once return order is created by API, when question and check the backend, I see the value of the attribute in the field. But when I check since before its is not visible in the field.

    Once I have change the value of the attribute of front end is visible, my question is why is not visible after API has created the return order.

    Attribute is a Date field and we have defined it for use the FND_DATE4 value in the configuration of the FDF, we in R12.

    Appreciate your help on this.

    Thank you!

    Edited by: User910243567 Sep 26, 2011 08:54

    Hello

    You update OE_ORDER_HEADERS_ALL. field of CONTEXT in your script to update the attributes? If you did not update that or somehow that's getting updated with null, then you won't be able to see the attributes of the front. Let me know.

  • apexir_ values - is there a list of all the attributes you can change?

    Hello

    I read how you can change the attributes of .apexir of interactive reports for customization of the IR. Is there a documentation on the attributes that are available to be changed?

    Thank you very much

    Paul

    Hello

    I assume you mean interactive report style sheet?
    I understand that there is no official document.

    But you can see the css file and find all these styles
    /i/CSS/uncompressed/apex_4_0.CSS

    Kind regards
    Jari

Maybe you are looking for