Database update error message

I am testing a database in JDev. I have a table called PUNTERS which has just one field, PUNTER_NAME. I have made this the Primary Key as I don't want duplicates but perhaps I should have made it a Unique key. I have another table, DRAWS, which also has a field called PUNTER_NAME. I am trying to update this field with a List Of Values (PUNTER_NAME) taken from the PUNTERS table. However, when I try to commit I get the following error message:
(oracle.jbo.DMLException) JBO-26041: Failed to post data to database during "Insert": SQL Statement "BEGIN INSERT INTO DRAWS(PUNTER_NAME) VALUES (:1) RETURNING ROWID INTO :2; END;".
I would be grateful for any explanation and advice on how I can commit this update.
Thanks,
Jim

Hi,
Thanks for the reply. Sorry I have been slow in responding but I just couldn't get on to this site over Christmas.
Yes it is ADF 11g. Looks like the Row Id was created automatically on the DRAWS Table because I didn't define a Primary Key. I did this deliberately as PUNTER_NAME can be duplicated and the other attribute can be blank. I removed the Row Id but it looks like I must have something as a Primary Key. I have got myself into a mess adding an attribute to be the Primary Key and am going to start again.
This means that it could be a while before I can say that my problem is solved but perhaps you can tell me if this will work. That is, update PUNTER_NAME on the DRAWS Table, where it is not the Primary Key, from a List of Values taken from the PUNTERS Table where PUNTER_NAME is the Primary Key.
Thanks,
Jim

Similar Messages

  • After last automatic update, error message XUL Runner error platform version '6.0.2' is not compatible with minVersion 6.0.1. maxVersion 6.0.1. I am unable to open Mozilla Firefox at all. Had to use Explorer to ask this question!

    After last automatic update, error message XUL Runner error platform version 6.0.2. is not compatible with min Version 6.0.1 maxVersion 6.0.1 appeared every time I try to open/run Mozilla Firefox.

    See:
    *[[/questions/869812]]
    *[[/questions/869951]]

  • Please i am unable to restore my ipad due to error 3194.The restore process stalls when it gets to the point where the firmwarwe is being updated.error message 3194 comes up.please help me

    please i am unable to restore my ipad due to error 3194.The restore process stalls when it gets to the point where the firmwarwe is being updated.error message 3194 comes up.please help me

    http://support.apple.com/kb/TS3694#error3194 
    Unable to contact the iOS software update server gs.apple.com

  • Elements 10 update error message

    elements 10 update error message that says the update server is not responding?

    RKV
    Thanks for the reply. The deletion of the BadDrivers.txt file is your best opportunity for a resolution. So, let us pursue that.
    If you have Premiere Elements 10 on Windows 7 64 bit, the BadDrivers.txt file is there. But....in your attachments, you show
    Program Files
    Program Files (x86)
    and no signs of Program Data where you must start in the path to the BadDrivers.txt file.
    a. Could you be using Windows 7 32 bit?
    or
    b. Are you working with Folder Options Show Hidden Files, Folders, and Drives active so that you can see the complete path cited.
    In Windows 7 64 bit,
    Click on Start
    In the Search field that appears above Start, type in Folder Options.
    Folder Options text will appear at the top of that left column for you to click on.
    Clicking on Folder Options will bring up its dialog.
    Click on the View Tab of the Folder Options dialog.
    Then scroll down the list of options under View until you reach Show Hidden Files, Folders, and Drives,
    and make sure that it is selected.
    Program Data should appear in the lineup which includes Program Files and Program Files (x86).
    Please let us know the outcome.
    Thank you.
    ATR

  • PS 6 is not updating: error message U44M1P7 Also have CC installed.

    When I click on "more details" my finder opens like I'm supposed to choose a file and it's all gibberish to me.
    Anyone encounter this and have a solution?

    PS 6 is not updating: error message U44M1P7 Also have CC installed.
    ISSUE: Installation failed. Error Code: U44M1P7, U44M2P7, U44M1P6
    SOLUTION: Run the installer. Reinstall Photoshop CS6 to repair/replace the missing/modified file. Select Help>Updates… to run the updater again. http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-updates-ccm.html

  • After downloading Yosemite iPhoto is blocked.  Update error message reads: Update not available for this ID either because it was bought by a different user...

    After downloading Yosemite iPhoto is blocked.  Directed to update.  Update error message: Update not available for this ID either because it was bought by a different user.....  This could be because my iPhone is now linked to the Mac and it is recognising that ID.

    My previous post should read...Could this be because my iPhone is now linked to the Mac and is recognising that ID?

  • Try to retrieve data from database got error message

    Try to retrieve data from database got error message *"java.lang.ArrayIndexOutOfBoundsException: 2*
    *     sun.jdbc.odbc.JdbcOdbcPreparedStatement.clearParameter(JdbcOdbcPreparedStatement.java:1023)*
    *     sun.jdbc.odbc.JdbcOdbcPreparedStatement.setDate(JdbcOdbcPreparedStatement.java:811)*
    *     guestbk.doGet(guestbk.java:32)*
    *     guestbk.doPost(guestbk.java:73)*
    *     javax.servlet.http.HttpServlet.service(HttpServlet.java:710)*
    *     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)"*
    I have used prepared statment
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd/MM/yy");
                java.util.Date dt = sdf.parse(str3);
                       Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                       con=DriverManager.getConnection("jdbc:odbc:gbook");
                       //Statement stmt=con.createStatement();
    PreparedStatement ps = con.prepareStatement("SELECT * from gbook where emailid =? AND date =?");
    ps.setString(1,str1);
    ps.setString(2,str2);
    ps.setDate(3,new java.sql.Date(dt.getTime()));
    //ps.executeQuery();
                       //ResultSet rs=stmt.executeQuery("select * from gbook where emailid = str1");
                  ResultSet rs = ps.executeQuery();
                       out.println("<Html>");
                    out.println("<Head>");
                       out.println("<Title>GuestBook</Title>");
                       out.println("</Head>");
                       out.println("<Table border=1 align=center >");
                       out.println("<H4><B><center>Teacher's Lesson Plan</center></B></H4><BR>");
                       out.println("<TR><TD><b>Teacher Name</b></TD><TD><b>Class</b></TD></TR>");
               while(rs.next())
                        ctr++;
                        String email=rs.getString("emailid");
                        String cmt=rs.getString("comment");
                        out.println("<TR><TD>"+email+"</TD><TD>"+cmt+"</TD></TR>");
            }Please anybody help .

    PreparedStatement ps = con.prepareStatement("SELECT * from gbook where emailid =? AND date =?");
    ps.setString(1,str1);
    ps.setString(2,str2);
    ps.setDate(3,new java.sql.Date(dt.getTime()));Your SQL query has 2 placeholders but you try to set 3 values.
    And didn't you read the stack trace?
    guestbk.doGet(guestbk.java:32)You could've tracked down line 32 and seen what was there at that line.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://www.catb.org/~esr/faqs/smart-questions.html
    ----------------------------------------------------------------

  • HT1338 Not able to down load itunes updates, error message: corrupt file could not be saved

    Not able to down load itunes updates, error message: corrupt file could not be saved try again another time.  All other update are able to download...... but not Itunes. 
    Note:  My internet service is DSL and very slow (military installation with no other option).

    Not able to down load itunes updates, error message: corrupt file could not be saved try again another time.  All other update are able to download...... but not Itunes. 
    Note:  My internet service is DSL and very slow (military installation with no other option).

  • How to show a database trigger error message as a notification on a page

    I have a database with database triggers to ensure data integrity.
    If an insert or update does not comply to all the business rules, a database triggers raises an exception. When using Apex this exception is caught in the Error Screen, a separate screen, where the whole error stack is displayed.
    Does anyone know a way to display only the error in RAISE_APPLICATION_ERROR as a notification in the screen from which the transaction was initiated?
    Dik Dral

    Well, having had so little response, i had to figure it out myself ;-)
    Using Patrick Wolff's ideas from ApexLib I 'invented' a solution for my problem, that I would like to contribute to the community. I hope that it will come out a bit nicely formatted:
    Apex: Show Database Error Message in calling form
    The purpose is to show a neat error message in the notification area of the calling form.
    Default Apex show the whole error stack raised by a DB trigger in a separate error page.
    With acknowledgement to Patrick Wolf, I lent parts of his ApexLIB code to create this solution.
    <br./>
    Assumptions
    <ul><li>The error message is raised from a DB trigger using RAISE_APPLICATION_ERROR(-20000,’errormessagetext’).</li>
    <li>The relevant part of the error stack is contained within the strings ‘ORA-20000’ and the next ‘ORA-‘-string, i.e. if the error stack is ‘ORA-20000 Value should not be null ORA-6502 …’, than the relevant string is ‘Value should not be null’ .</li>
    <li>Cookies are enabled on the browser of the user </li>
    </ul>
    Explanation
    The solution relies heavily on the use of Javascript. On the template of the error page Javascript is added to identify the error stack and to extract the relevant error message. This message is written to a cookie, and then the control is passed back to the calling page (equal to pushing the Back button).
    In the calling page a Javascript onLoad process is added. This process determines whether an error message has been written to a cookie. If so the error message is formatted as an error and written to the notification area.
    Implementation
    The solution redefines two template pages, the two level tab (default page template) and the one level tab (error page template).
    Javascript is added to implement the solution. This Javascript is contained in a small library errorHandling.js:
    <pre>
    var vIndicator = "ApexErrorStack=";
    function writeMessage(vMessage)
    {       document.cookie = vIndicator+vMessage+';';
    function readMessage()
    { var vCookieList = document.cookie;
    var vErrorStack = null;
    var vStart = null;
    var vEnd = null;
    var vPos = null;
    vPos = vCookieList.indexOf(vIndicator);
    // No cookie found?
    if (vPos == -1) return("empty");
    vStart = vPos + vIndicator.length;
    vEnd = vCookieList.indexOf(";", vStart);
    if (vEnd == -1) vEnd = vCookieList.length;
    vErrorStack = vCookieList.substring(vStart, vEnd);
    vErrorStack = decodeURIComponent(vErrorStack);
    // remove the cookie
    document.cookie = vIndicator+"; max-age=0";
    return(vErrorStack);
    function getElementsByClass2(searchClass,node,tag)
    var classElements = new Array();
    if ( node == null )
    node = document;
    if ( tag == null )
    tag = '*';
    var els = node.getElementsByTagName(tag);
    var elsLen = els.length;
    var pattern = newRegExp('(^|\\s)'+searchClass+'(\\s|$)');
    for (i = 0, j = 0; i < elsLen; i++) {
    if ( pattern.test(els.className) ) {
    classElements[j] = els[i];
    j++;
    return classElements;
    function processErrorText()
    var errorElements = new Array();
    errorElements = getElementsByClass2("ErrorPageMessage",document,"div");
    if (errorElements.length > 0 )
    { errorText = errorElements[0].innerHTML;
    errorText = errorText.substr(errorText.indexOf("ORA-20000")+ 11);
    errorText = errorText.substr(0,errorText.indexOf("ORA")-1);
    // errorElements[0].innerHTML = errorText;
    writeMessage(errorText);
    function show_message()
    { var vCookieList = document.cookie;
    var vErrorStack = null;
    var vErrorName = null;
    var vErrorMessage = null;
    var vStart = null;
    var vEnd = null;
    var vPos = null;
    // get errorStack
    vErrorStack = readMessage();
    if (vErrorStack == -1) return;
    // search for our message section (eg. t7Messages)
    var notificationArea = document.getElementById("notification");
    if (notificationArea != null)
    { notificationArea.innerHTML = '<div class="t12notification">1 error has occurred<ul class="htmldbUlErr"><li>' + vErrorStack + '</li></ul>'; }
    else
    { alert(vErrorStack); }
    </pre>
    This code is loaded as a static file in Application Express (no application associated).
    In both templates a reference to this code is added in the Definition Header section:
    <pre>
    <script src="#WORKSPACE_IMAGES#errorHandling.js" type="text/javascript"></script>
    </pre>
    This library is called from the two level tab to show the error message (if any) in het onLoad event of the body tag.
    <body onLoad="javascript:show_message();">#FORM_OPEN#
    This code checks whether a message has been written to a cookie and if found displays the message in the notification area.
    In the error template page the Error section has the content:
    <script language="javascript">
    processErrorText();
    window.history.go(-1);
    </script>
    Back
    The call to processErrorText() looks for the error message, extracts the relevant part of it (between ‘ORA-20000’ and the next ‘ORA-‘), writes it to a cookie and returns to the previous screen.
    The link to the previous page is added should an error in the Javascript occur. It provides the user with a path back to the application.
    With these actions taken, the error messages issued from triggers are shown in the notification area of the form the user has entered his data in.
    The need for database driven messaging
    In some cases the need exists to process error messages in the database before presenting them to the user. This is the case, when the triggers return message codes, associated to error messages in a message table.
    This can be done by using a special Error Message Processing page in Apex.
    The error message page extracts the error message, redirecting to the Error Message Processing page with the error message as a parameter. In the EMP page a PL/SQL function can be called with the message as a parameter. This function returns the right message, which is written to a cookie using dynamically generated Javascript from PL/SQL. Than the contol is given back to the calling form.
    The redirect is implemented by location.replace, so that the error message page does not exist within the browsing history. The normal history(-1) will return to the calling page.
    Implementation of database driven messaging
    The solution redefines two template pages, the two level tab (default page template) and the one level tab (error page template).
    Javascript is added to implement the solution. This Javascript is contained in a small library errorHandling.js already listed in a previous paragraph.
    In both templates a reference to this code is added in the Definition Header section:
    <script src="#WORKSPACE_IMAGES#errorHandling.js" type="text/javascript"></script>
    This library is called from the two level tab to show the error message (if any) in het onLoad event of the body tag.
    <body onLoad="javascript:show_message();">#FORM_OPEN#
    This code checks whether a message has been written to a cookie and if found displays the message in the notification area.
    In the error template page the Error section has the content:
    <script language="Javascript">
    var errorText = null;
    function redirect2oracle()
    { window.location.replace("f?p=&APP_ID:500:&APP_SESSION.::::P500_MESSAGE:"+errorText); }
    function getError()
    { errorText = processErrorText(); }
    getError();
    redirect2oracle();
    </script>
    Go to Error Message Porcessing Page
    Back to form
    The call to processErrorText() looks for the error message, extracts the relevant part of it (between ‘ORA-20000’ and the next ‘ORA-‘), writes it to a cookie.
    Then the EPM-page (500) is called with the extracted message as parameter.
    The link to the EPM page and the previous page is added should an error in the Javascript occur. It provides the user with a path back to the application.
    We need to create an Error Message Porcessing Page.
    Create a new page 500 with a empty HTML-region “Parameters”
    Create an text-area P500_MESSAGE in this region
    Create a PL/SQL region “Process Messages” with source:
    convert_message(:P500_MESSAGE);
    Create a PL/SQL procedure convert_message like this example, that reads messages from a message table. If not found, the actual input message is returned.
    CREATE OR REPLACE procedure convert_message(i_message in varchar2) is
    v_id number := null;
    v_message varchar2(4000) := null;
    function get_message (i_message in varchar2) return varchar2 is
    v_return varchar2(4000) := null;
    begin
    select msg_text into v_return
    from messages
    where msg_code = upper(i_message);
    return(v_return);
    exception
    when no_data_found then
    return(i_message);
    end;
    begin
    v_message := get_message(i_message);
    // write the message for logging/debugging
    htp.p('Boodschap='||v_message);
    // write cookie and redirect to calling page
    htp.p('<script language="Javascript">');
    htp.p('document.cookie="ApexErrorStack='||v_message||';";');
    htp.p('window.history.go(-1);');
    htp.p('</script>');
    // enter return link just in case
    htp.p('Ga terug');
    end;
    Note: The way the message is converted is just an example
    With these actions taken, the error messages issued from triggers are shown in the notification area of the form the user has entered his data in.
    Message was edited by:
    dickdral
    null

  • Win 8.1 update - error message 0xC100101-0x30018

    Hello,
    since this morning I am trying to update Win 8 on Win 8.1. This works until notebook reboot. Then Win 8 Restored and the PC restarted again with the error message that the update was failed and the original Windows has been restarted with the error message 0xC100101-0x30018.
    Thank you in advance for your help.
    Win 8.1 was already installed, but due to a crash Win 8 has been renewed. All necessary updates are already made.
    Greetings

    Try running this to see if there were any problems with W8 updates prior to upgrade (I don't know if it runs on W8).
    There is this
    System Update Readiness Tool
    Also run the System Update Readiness Tool
    For 32 bit Windows
    http://www.microsoft.com/en-us/download/details.aspx?id=504
    For 64 bit Windows
    http://www.microsoft.com/en-us/download/details.aspx?id=1540
    To see results click Start - All Programs - Accessories - Right click Command Prompt and choose Run As Administrator. Type (or copy the below line and one blank line underneath and right click in the command prompt window and choose Paste).
    notepad %SYSTEMROOT%\Logs\CBS\CheckSUR.log

  • I have Acrobat 10 and was getting update error messages so I finally did what Adobe recommended and uninstalled Acrobat.  Now I can;t re-install the program and get a number of different error messages.  Help I need to read pdf docs!

    I have Acrobat 10 (10.1.9) that came in the Creative Suite CS5.  I have received numerous messages about failed updates so finally did what was recommended by Adobe and uninstalled the program.  Now I can't re-install it.  These are the error messages I get.  Help! 
    Exit Code: 6
    Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW050 ... WARNING: DW065, DW066 ...
       -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 3 error(s), 2 warning(s)
    WARNING: DW066: OS requirements not met for {AC76BA86-1033-F400-7760-000000000005}
    WARNING: DW065: Display requirements not met for {53CF3920-648B-4F99-8D05-6A6C5298F57B}
    ----------- Payload: {AC76BA86-1033-F400-7760-000000000005} Acrobat Professional 10.0.0.0 -----------
    ERROR: Error 1328.Error applying patch to file C:\Config.Msi\PTDB05.tmp.  It has probably been updated by other means, and can no longer be modified by this patch.  For more information contact your patch vendor. 
    ERROR: Install MSI payload failed with error: 1603 - Fatal error during installation.
    MSI Error message: Error 1328.Error applying patch to file C:\Config.Msi\PTDB05.tmp.  It has probably been updated by other means, and can no longer be modified by this patch.  For more information contact your patch vendor. 
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - Acrobat Professional: Install failed

    I did it through CS, I think.  I used the installation disk and selected Acrobat.  It loads and then gives me all kinds of error messages and then uninstalls itself.

  • Update "error" message

    When trying to update my iPod the error message "The ipod cannot be updated because one or more of the iTunes playlists selected to be updated no longer exists" appears. Not sure what this means... any help circumventing this error message would be much appreciated.

    This link will explain and resolve your missing playlist error: Hudgie - iPod cannot sync because one or more playlists are missing

  • Ipod update error message says can't write or read to IUPOD

    i have itunes 7.0.1 and a 20gb ipod. i am trying to update/reload the ipod from my itunes library. my itunes library is 24gb.....
    i have reformatted the ipod to factory settings and deselected the podcast category and have failed at loading the ipod. i get an error message after the reload begins which says that the "ipod cannot be read from or written to"
    do i have a bad disk? or am i failing because it is trying to load the entire music library which is 4gb larger than the ipod disk.
    thanks
    dennis

    See this troubleshooting article.
    "Disk cannot be read from or written to" error syncing iPod in iTunes.
    Why are you trying to load 24GB of music onto a 20Gb iPod!!

  • HT1926 Re-downloaded iTunes, could not update, error message is APSDaemon.exe and MSVCR80.dll "Apple mobile device failed to start".... help?

    That's the error message I'm getting. I keep troubleshooting my computer, and trying to troubleshoot iTunes and it's not working or coming up with anything.
    I just used my iTunes yesterday and it was working fine, all I did was try to update it today and then this happened.
    Now I can't even open iTunes...
    Please help!

    Click here and follow the instructions.
    (99033)

  • Illustrator CC (2014) update error message U44M1P7

    When I try to update Illustrator CC (2014) I get the error message U44M1P7. Clicking "more details" just takes me to my Installers folder, which I have no idea how to interpret what that means and, therefore, I don't know how to troubleshoot.

    U44M1P7 - Updates : http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-updates-ccm.html
      .... a solution of this problem.
      1. Launch any of CC App (Photoshop, Illustrator, etc)
      2. Go to the HELP -> UPDATES
      3. It will start Adobe Aplication Manager, then UNCHECK ALL of Adobe CSXS Infrastucture 4 files (910 KB) under all of your updating Aplications.
      4. Click "UPDATE" button.
    U44M1P7, U44M2P7 - Creative Cloud Help / Can't apply Extension Manager update 6.0.2 | Mac OS : http://helpx.adobe.com/creative-suite/kb/unable-apply-extension-manager-update.html

Maybe you are looking for

  • Unable to enjoy Wi Fi features

    Hi, I have enabled Wifi and I  setup Wifi Successfully. But Im not able to connect internet and its saying that "Unable to connect to the internet Please try agian later. If the Problem persist please contact your service provider" Please help in thi

  • When i plug in my phone to my computer it doesnt open to itunes immediately like it use to.

    is it my phone or the computer?

  • ERRORS OCCURED DURING EXTRACTION USING RSA3

    Dear Folks, I have an error in production client & that is when i am doing test extraction for standard datasource using RSA3 i am geting following error:ERRORS OCCURED DURING EXTRACTION. I checked the log and message is extraction program failed as

  • Any way of doing this?

    Hi there, I just bought a new MacBook Pro, I was planning to use the Migration Assistant to transfer my data across from my old MacBook, but it was going to take far too long so I did it manually. Im new to Leopard as well, I had it on my MacBook but

  • OSB: Cannot found SLA Alert Log

    Dear all, http://docs.oracle.com/cd/E17904_01/doc.1111/e15867/alert_destinations.htm "+Alert Logging: If you select Yes, alerts sent to this alert destination are logged to the alert log.+" From this document, Where can I found the alert log ? Thank