Error while trying to update Java Dictionnary Table

Hi experts!!
I am trying to insert some data in a table in the Java Dictionnary, from my WD form template view. I use the following code:
The node's name is "TEST" and the table's name "IR_TETS".
It is not working... Any ideas??????
    IWDNode node = wdContext.getChildNode("TEST",0);
     ITESTElement test = wdContext.nodeTEST().currentTESTElement();
     String  value = (String) test.getAttributeValue("NAME");
     String  value2 = (String) test.getAttributeValue("SURNAME");
     InitialContext ctx;
     try {
          ctx = new InitialContext();
          DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/POSEIDON");
          Connection con = ds.getConnection();
          con.createStatement().executeUpdate ("insert into IR_TETS"  
          + "(NAME, SURNAME )"
          + "values (value , value2)");
     } catch (NamingException e)  {
     } catch (SQLException e2){     
          // TODO Auto-generated catch block
          e2.printStackTrace();
THANX IN ADVANCE!!

I solved the data source problem by creating a datasources.xml file with an alias and i then used the path jdbc/<alias_name>.
I now get an SQL message so any help would be really appreciated..
The message is this..
The SQL statement "INSERT INTO "IR_TETS" ("NAME","SURNAME") VALUES ("NAME","SURNAME")" contains the semantics error[s]: - 1:46 - column ""NAME"" not unique - 1:53 - column ""SURNAME"" not unique
the values of name & surname are retrieved by the context of the WD
with this code...
   IWDNode node = wdContext.getChildNode("TEST",0);
     ITESTElement test = wdContext.nodeTEST().currentTESTElement();
     String  name = (String) test.getAttributeValue("NAME");
     String  surname = (String) test.getAttributeValue("SURNAME");
ANY IDEAS???
THANX IN ADVANCE!!!!

Similar Messages

  • 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

  • Error while trying to update to ios 5

    I keep getting an error while trying to update to iOS 5. I update iTunes this morning to the lastest version so I know that isn't the problem. I have tried restarting both my computer and my phone, but contine getting "The iPhone could not be restore. An unknow error occurred (3194)." PLease help! Thanks in advance

    I am also getting the error 43 when the update tries to back the phone up. Im using the latest version of itunes. This is on an iphone4, I am in the UK.
    I tried deleting all of the historical backups to see if a fresh backup folder helps. It did not.
    Ive tried running iTunes in 'administrator' mode on my Windows 7 machine. This made no difference.
    Ive tried putting the phone in airplane mode. No difference.
    I tried getting it into restore mode just to see if it worked on a iphone4. However it did not seem to want to do it.
    Im not not too sure about proceeding with this update as I done want to loose any of the apps I have. (or 3 my 3 stars in every angry birds level on all 3 versions of the game!!)
    Please someone, HELP !! !!

  • TS3694 just got a 3004 error while trying to update iphone version, what should I do

    juat got  3004 while trying to update iphone version, what should I do?

    error 3014 is this
    Error 3014
    This error occurs when iTunes is unable to reach gs.apple.com in a timely fashion. Follow the steps below inUnable to contact the iOS software update server gs.apple.com.
    If you have jailbroken you will get no support here.  It is against the terms of use of this forum to discuss jailbreaking

  • Java.sql.sqlexception ora24344 error while trying to load Java class

    Hi Guys,
    I am getting "java.sql.sqlexception ora24344 error" while trying to load a java class using sql developer. Due to sensitivity of the code I am unable to post the code here but has anyone experienced a similar error before?
    Thanks

    Hi,
    ora-24344 is known. It means it compiled but there are errors. Because you are not telling which version of Oracle you use, it is hard. Also you couldn't provide code will not make it easy. A common error is not having the right right on packages of SYS, such as UTL_* or DBMS_SYS_SQL. Can you maybe give the line of your code which produces the error?
    Herald ten Dam
    http://htendam.wordpress.com

  • I receive this error while trying to update to iTunes 10.6.3

    I receive this error while trying to complete an Itunes 10.6.3 update.
    "The update could not be verified. It may have been corrupted during downloading. The update will be downloaded and checked again the next time that Software Update runs."
    I have tried installing again many times with the same result.  If someone and tell me how to proceed, this would be great!!  Thanks, Kim

    I'd try updating using a .dmg installer downloaded from the Apple Website:
    http://www.apple.com/itunes/download/

  • Object Open Error while trying to export the vDataFact table

    I am getting an error when trying to export the vDataFact table to a flat file.  I have been able to do this several time before with the segment tables but would like to run this against vDataFact
    The error in the error log is:
       ERROR:
           Code............ -2147217915
           Description..... Object was open.
    The screen error is:
          The connection cannot be used to perform this operation.  It is either closed or invalid in this context.
    The line that appears to cause the issue is: Set rssql = API.DataWindow.DataAccess.farsKeySet(CStr(strSQL))
    Here is my complete script:
    Sub webdatafacts()
    'Declare Variables
       Dim objFileSystem 'File System
       Dim strFileName 'File name
       Dim ObjTextFile
    'SQL variables
      Dim strSQL ' Placehold for SQL Query
      Dim rssql 'Placeholder for result set for sql query execution
    'SQL Statement
                strSQL = "SELECT PartitionKey, Account, AccountX, Entity, EntityX, ICP, ICPX, UD1, UD1X, UD2, UD2X, UD3, UD3X, UD4, UD4X, Amount  FROM vDataFact" 
                set rsSQL = DW.DataAccess.farsFireHose(strSQL,False)
    'Create the filesystem object
                Set objFileSystem = CreateObject("Scripting.FileSystemObject")
                Set ObjTextFile = objFileSystem.OpenTextFile(DW.Connection.PstrDirInbox & "\VDataFactExport.txt", 2, TRUE, 0)  
                ObjTextFile.Close
                If Not rssql.EOF and Not rssql.BOF Then
                Set objTextFile = objFileSystem.OpenTextFile(DW.Connection.PstrDirInbox & "\VDataFactExport.txt", 2, FALSE, 0)
                Do Until rssql.EOF
    'Loop across all fields in recordset delimiting them with a tab key
                For i = 0 To rssql.Fields.Count -1
               strString = StrString & rssql(i) & vbTab
               Next
    'Output the resulting string to the text file
              ObjTextFile.WriteLine (strString)
    'Reset the string to empty for the next record
             strString = ""
    'Move to the next record in the recordset
                  rssql.MoveNext
                  Loop
    'Close the recordset and the text file
                 rssql.Close
                 ObjTextFile.Close
        End If
    'Destroy the instance of the recordset from memory
          Set rssql = Nothing
    End Sub

    Thanks, that was one of my suspicions, however, i was able to get the script to work by changing:
    set rsSQL = DW.DataAccess.farsFireHose(strSQL,False)
    to
    set rsSQL = DW.DataAccess.farsFireHose(strSQL,True)
    ...to be honest though, i'm not entirely sure why that fixed my issue

  • Write back error while trying to update the data

    This is my writeback.xml file*
    <?xml version="1.0" encoding="utf-8" ?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="UpdateBA">
    <XML>
    <writeBack connectionPool="Oracle Data Warehouse Connection Pool">
    <insert> </insert>
    <update> UPDATE XXAUD_W_BUD_QTA_F SET BUDGET_AMT=@{c19},attribute2='@{c15}'
    where INTEGRATION_ID='@{c6}'</update>
    </writeBack>
    </XML>
    </WebMessage>
    <WebMessage name="UpdateQA">
    <XML>
    <writeBack connectionPool="Oracle Data Warehouse Connection Pool">
    <insert> </insert>
    <update> UPDATE XXAUD_W_BUD_QTA_F SET QUOTA_AMT=@{c21},ATTRIBUTE3='@{c18}'
    where INTEGRATION_ID='@{c6}'</update>
    </writeBack>
    </XML>
    </WebMessage>
    <WebMessage name="UpdateFA">
    <XML>
    <writeBack connectionPool="Oracle Data Warehouse Connection Pool">
    <insert> </insert>
    <update> UPDATE XXAUD_W_FORECAST_F SET FORECAST_AMT=@{c19},attribute1='@{c22}'
    where INTEGRATION_ID='@{c15}'</update>
    </writeBack>
    </XML>
    </WebMessage>
    <WebMessage name="UpdatePO">
    <XML>
    <writeBack connectionPool="Oracle Data Warehouse Connection Pool">
    <insert> </insert>
    <update> UPDATE XXAUD_W_SALESLOGIN_DTL SET ACTIVE_FLG='@{c2}' WHERE RESOURCE_ID=@{c1}</update>
    </writeBack>
    </XML>
    </WebMessage>
    <WebMessage name="UpdateRET">
    <XML>
    <writeBack connectionPool="Oracle Data Warehouse Connection Pool">
    <insert> </insert>
    <update> UPDATE XXAUD_W_RET_TARGET_F SET JUL_RET_TAR=@{c3},AUG_RET_TAR=@{c4},SEP_RET_TAR=@{c5},
    OCT_RET_TAR=@{c6},NOV_RET_TAR=@{c7},DEC_RET_TAR=@{c8},JAN_RET_TAR=@{c9},FEB_RET_TAR=@{c10},
    MAR_RET_TAR=@{c11},APR_RET_TAR=@{c12},MAY_RET_TAR=@{c13},JUN_RET_TAR=@{c14}
    WHERE INTEGRATION_ID='@{c0}'</update>
    </writeBack>
    </XML>
    its getting updated at some time but when i tried to update after some time i am getting error
    can you please tell me the reason for this???
    *An error occurred while writing to the server. Please check to make sure you have entered appropriate values. If the problem persists, contact your system administrator.
    Sax parser returned an exception. Message: Expected entity name for reference, Entity publicId: , Entity systemId: , Line number: 1, Column number: 344*
    Error Details
    Error Codes: UH6MBRBC:E6MUPJPH
    Xml parsed: <writeBack template="UpdateQA"><record action="update"><value columnID="c6">ICS_US~1721~15041~1~2009~135</value><value columnID="c7">2009</value><value columnID="c13">2009 / 01</value><value columnID="c17">Specialty</value><value columnID="c15">Carroll, Patrick</value><value columnID="c16">SALES_PERSON</value><value columnID="c12">1st Auto & Casualty Insurance</value><value columnID="c11">ICS_US</value><value columnID="c21">3334</value><value columnID="c18">as</value></record><record action="update"><value columnID="c6">ICS_CAN~1438~15454~1~2009~135</value><value columnID="c7">2009</value><value columnID="c13">2009 / 01</value><value columnID="c17">Specialty</value><value columnID="c15">Barrette, Denis (Denis)</value><value columnID="c16">SALES_PERSON</value><value columnID="c12">AXA Assurances</value><value columnID="c11">ICS_CAN</value><value columnID="c21">147</value><value columnID="c18">fg</value></record></writeBack>

    Hi,
    i changed my xml by replacing update stmt in <insert> but still facing same problem.
    One thing the table with columns customer name, amount,comments.
    the customer name have some spl character like *"&"* (john&Franklin).I think this might be a problem(special char &),due to this getting error????
    Sax parser returned an exception.
    Message: Expected entity name for reference, Entity publicId: , Entity systemId
    SAX parsor is not able to read this character???
    Help me out!!!
    Thanks,
    Varanasi Saichand

  • Stale data error while trying to update row.

    Hi,
    I have a search page, from where i would like to select a particular record and update some of its attributes. But when i try to commit the transaction, i get the error below:
    Unable to perform transaction on the record. \nCause: The record contains stale data. The record has been modified by another user. \nAction: Cancel the transaction and re-query the record to get the new data.
    My Results table, based on VO1(based on EO), has an image item which submits the page and opens another page with the details of the current record, and provides the user with an option to update one of the attributes. The second page, where the user updates the attributes is based on another VO (say VO2, which again is based on the same EO as VO1).
    Behind the Apply button, i call a method in the AM which simply commits the transaction and then re-directs to the original search page and displays the confirmation message.
    Pseudo Code:
    In the controller for VO1 (search page).
    if <update> then
    params = config_id ;
    am.invokeMethod("initSketchDetails,params) ;
    In AM
    public void initSketchDetails(String config_id)
    vo = getVO2 ;
    vo.initQuery ;
    In VO2Impl
    public void initQuery(String config_id) {
    <convert string to jbo.domain.number>
    setWhereClause("config_id = :1);
    setWhereClauseParams(null) ;
    SetWhereClauseParam(0,config_id);
    executeQuery();
    In the PFR of Controller for the Update Page
    if ("apply" != null)
    am = pageCOntext.getAM ;
    am.invokeMethod("apply") ;
    pageCOntext.forwardImmediately to results page ..
    AMImpl
    public void apply() {
    getTransaction.commit();
    Where am i going wrong?
    Thanks
    Ashish

    Hi,
    I noticed that this error is occuring only under certain conditions.
    In my application a particular record can have 4 statuses (Draft, Submitted, Cancelled and Technical Query). But when a record is being updated, it can only be updated to Draft, Technical Query or Cancelled.
    The error occurs ONLY when i am trying to update a record which is in Submitted Status to any other status. If i update a record from Draft -> Technical Query/Cancelled, there are no issues!!!
    I cant figure out where the problem lies.
    The poplist picks up values from a lookup.
    Any idea how to debug this situation?
    Thanks
    Ashish

  • Error while trying to view the details table from Show/Hide icon

    What we are having is two tables, Outer and Inner, having Outer VO and Inner VO,outer VO is linked with inner VO. Now when I am trying to view the inner table
    through Show/Hide icon to see the details of the table ,I am getting an error like ...
    The record with primary key values {2280} could not be found in view object MisForecastHeadOfiiceAM.InnerTableVO_OuterInnerVL_InnerTableVO.
    I want to know how this error can be resolved

    Hi Abdul,
    We are not getting error while searching. As said earlier
    While search for the first time > We could see proper results in out table and Even show/hide is working fine and display correct data in Inner table
    When searching for the second time with different criteria > We could see proper results in outer table and on clicking show/hide (to view inner table data), we are getting error.
    The record with primary key values {2280} could not be found in view object AM.ViewLinkVL_InnerTableVO
    From the error message, we found that its trying to get the row (of inner table) pertaining to first search results and not for the outer table row in context to second search results.

  • Error while trying to update my Ipad for new iOS5 :(

    On trying to update to the lastest iOs5 version for my Ipad, after syncing everything correctly, a last pop-up shows " Error occured while backing up Ipad (-37) Continue will result in lost of all contents of Ipad"...what do i need to do or fix!? Help please!!

    i have tried this a couple of times already and it also would show " error... (-5000) , but it says the same thing only difference is the error number. Please help!!!

  • Error 103 trying to update java 6 to 1.6.0_51

    Ciao,
    my mac asks me to update "Java per OS X 2013-004 1.0" but every time I try to download and install this update all I get is "Si è verificato un errore durante l'installazione degli aggiornamenti.(103)" (means: an error occurred during updates installation -> 103).
    I'm using Mac OS X 10.8.5 on a iMac 24in built in "late 2011".
    I want to know if is it possible to install this update manually or, eventually, skip this version.
    Thank you, here is a screenshot of my App Store:

    Try each of the following steps.
    Step 1
    If you're trying to install more than one update, do the updates one at a time.
    Step 2
    Triple-click anywhere in the line below on this page to select it:  
    /Library/Updates
    Right-click or control-click the highlighted line and select
    Services ▹ Open
    from the contextual menu. A folder should open. Move the contents to the Trash. You may be prompted for your administrator password.

  • "Update Failed" error while trying to update Bridge and Photoshop (U44M1l216)

    I'm having issues just trying to update Photoshop and Bridge.
    I have Adobe CC 2014 on a Late 2012 Mac Mini OSX Yosemite (though I was also having this issue before I upgraded from Mavericks a few days ago) This is a work computer that's only had these programs for 2-3 weeks- as this is a new job, so everything is really fresh with installs and so on.
    When Updating the to the Latests Apps I get this Window:
    When I click "Learn More" I get these Windows:
    Googling this Error Number only takes me to error codes similar but the number isn't quite right.
    I stumbled upon a thread with similar numbers and tried installing the updates directly from the Adobe Website, and they failed. I did that last week so i don't have screenshots of the exact error. If you need me to do that again to get more diagnostic information, please let me know. I also tried reinstalling Adobe Extension manager and it did nothing either way in affecting the situation.
    I have no idea what's wrong or what to do to figure this out.
    Any help or clarity would help.
    thank you

    I found a solution:
    I have try all: Uninstall, reinstall, reboot, Clean... and nothing have worked until I have seen somebody saying this:
    to fix this (on a PC)
    1: open up the Creative Cloud control panel, and quit out.
    2: Navigate to C:\Users\YOUR_USERNAME\AppData\Local\Adobe\AAMUpdater
    3: Delete (or rename) the directory named "1.0"
    4: restart Creative Cloud
    5: Got to the App manager and update
    I try that but didn't work. But finally a notice (in my case) in this directory (C:\Users\Bart Raven\AppData\Local\Adobe\AAMUpdater\1.0\Install\AdobeAfterEffects-13.0.0-Trial\13.0.2) I had a SETUP.ZIP file of the 13.0.2 update that was BROKEN and it didn't want to unzip. IT WAS A SETUP.ZIP file BROKEN.
    THAT WAS THE PROBLEM!!
    I download a new 13.0.2 update from this site:
    All Adobe CC 2014 Updates: The Direct Download Links for Windows | ProDesignTools windows
    All Adobe CC 2014 Updates: The Direct Download Links for Mac OS | ProDesignTools MAC
    and put it unziped in the same directory: ((C:\Users\Bart Raven\AppData\Local\Adobe\AAMUpdater\1.0\Install\AdobeAfterEffects-13.0.0-Trial\13.0.2)
    RUN IT, and finally everything works fine again!!
    Then i put the last update from the Adobe Cretive Cloud.
    SO, The problem is a broken SETUP.ZIP file update in some place in here: C:\Users\Bart Raven\AppData\Local\Adobe\AAMUpdater\1.0\Install  - for WINDOWS.
    Just replace it for a good one.
    Hope this help
    More info: Update Failed. Unable to extract the downloaded files. (U44M11210)

  • HT201210 3194 error while trying to update iphone 3g to 4.2

    gota 3194 error while updating iphone 3g to 4.2

    Temporarily disable ALL of your antivirus/antispyware software and try again.

  • Error while trying to update to 7.5

    I'm trying to update my iTunes to 7.5 but it said there was an error and to just download and install manually but there's an error saying Invalid Drive: H:\. So yea, any suggestions and help is much appreciated.

    I also had an error updating to 7.3.2.6 on win 2000
    Message was edited by: Vandyke

Maybe you are looking for

  • My Firefox browser is no longer working on my phone

    I primarily use my Mozilla Firefox browser on my android phone. I went to use it yesterday and got an error message stating it was sorry and then wanted me to send the crash report. Then it said it sent the report and then goes right back to the scre

  • New Mac Mini Server (Mid 2011) + 12TB Storage = ?

    So the goal is kind of simple...I just bought a Mac Mini Server (+ 4GB Ram upgrade to total 8GB) with Lion of course to faciliate a fairly basic concept. The Mac Mini Server will be running all the time and will be the central storage point for all d

  • Exception in XML Parser

    Hi all, I have a file-XI-file scenario. In this scenario the Transport Protocol used is FTP. The remote sender and the receiver system have Golden FTP server installed. The xml file is getting properly picked from the sender system. The format of thi

  • Is the new (2012) the best choice for home theater use?

    I've been anxiously awaiting the arrival of this update because my 2009 model just doesn't cut it any more. Unless I clean the ram (4GB) a couple of times after shutting down the usual ram hogs (Firefox, NZB Vortex, etc.), 1080p delivery is unaccepta

  • How do i get iMessage Contacts Other than my friends

    I baught an I phone 4s because my bbm was playing up and I heard imeassage was really good but I only know two people with an iPhone and that's it all my other friends are on bbm so how do I get new contacts to talk to on my iMessage ? Please help or