XSU: OracleXMLSQLException thrown when column key is rowid.

Hi All,
I run into a problem where I wanted to update a column which is the key. Let's say I have table
create table XYZ (
key varchar2(20),
name varchar2(20)
Using SQLPLUS, it is possible to do:
update XYZ
set (key='123', name='joe')
where
rowid='AAABrXAAEAAAJL1AAH';
rowid is the unique identifier assigned by oracle to each row.
the following is returned using OracleXMLQuery and saved into xml_file.
<rowset>
<row num="1">
<key>123</key>
<name>joe</name>
<rowid>AAABrXAAEAAAJL1AAH</rowid>
</row>
</rowset>
I change the value of key and name columns and I try to update the row using the following code:
OracleXMLSave query = new OracleXMLSave(conn, table);
keyColNames[0]= "rowid";
query.setKeyColumnList(keyColNames);
query.updateXML(xml_file);
An SQLException Exception is thrown:
oracle.xml.sql.OracleXMLSQLException: Column 'rowid', specified to be a key column, does not not exits in table 'XYZ'.
Since the updateXML method does not take the old and new value, is there a way to use a rowid as the unique Key to perform an update.
I will appreciate any help.
Thanks
Sa

I suggest you read this, otherwise you won't get much help...
HOW TO: Post a SQL statement tuning request - template posting

Similar Messages

  • How do I use Primary Key and RowID in Materialized View Logs and MVs

    How do I use Primary Key and RowID in Materialized View Logs and Materialized Views????
    I don’t understand in the Materalized View Logs the diference between Primary Key and RowID. Besides, I could choose both Primary Key and RowID.
    When I have to use RowID?? Why?? And Primary Key??? And both, Primary Key and RowID????
    Thank you very much!

    Yes, I have already read it...
    But for example I don’t Understand:
    This is the example 8-1
    CREATE MATERIALIZED VIEW LOG ON products
    WITH SEQUENCE, ROWID
    (prod_id, prod_name, prod_desc, prod_subcategory, prod_subcat_desc, prod_
    category, prod_cat_desc, prod_weight_class, prod_unit_of_measure, prod_pack_
    size, supplier_id, prod_status, prod_list_price, prod_min_price)
    INCLUDING NEW VALUES;
    But if I create a Materialized View with TOAD if I choose a KEY field I receive the error:
    ORA-12026: invalid filter column detected
    Then I have to take out the Key (in the above example prod_id)
    And then the script is
    CREATE MATERIALIZED VIEW LOG ON products
    WITH ROWID, SEQUENCE, PRIMARY KEY!!!!!!!!!!!!!!!!!!!!
    (prod_id, prod_name, prod_desc, prod_subcategory, prod_subcat_desc, prod_
    category, prod_cat_desc, prod_weight_class, prod_unit_of_measure, prod_pack_
    size, supplier_id, prod_status, prod_list_price, prod_min_price)
    INCLUDING NEW VALUES;
    I have PRIMARY KEY in the definition (I don’t choose it) and I don’t have the prod_id field
    Why is it????
    Note: If I execute the script to create the MV Log manually the PRIMARY KEY option NO IS in the script and the prod_id field either is in the script.
    And on the other hand,
    What is this:
    CREATE MATERIALIZED VIEW LOG ON sales
    WITH ROWID;
    CREATE MATERIALIZED VIEW LOG ON times
    WITH ROWID;
    CREATE MATERIALIZED VIEW LOG ON customers
    WITH ROWID;
    These MATERIALIZED VIEW LOG contain any fields????
    Or it contain the primary key fields of this tables (sales, times and customers)??? Then, Why is it ROWID instead of PRIMARY KEY????
    Thanks!

  • Excel function and ev function not working in static column key

    I have created a evdre report and I notice that  when I tried to use any excel function and ev functions in the static column key cell to get the value for that cell, it's not working.
    e.g I have Col key define as:
    ColKeyRange  Sheet!&$J$12:$N$14
    In K13 which is key id for time. I define is as = $K$10 where K10 is the time value from current view, it not working,the value is still K13 = $K$10. then I tried to use EVCVW function to replace K10, it also not working, but I use the same function in the description of the ID underneath, both of the are working, Any thought?
    Edited by: DFW on Feb 9, 2010 7:33 PM

    Hi,
    That was exactly what I meant. They just dont work on the green ID areas or the yellow data region. Few days back even I tried that, but didnt work. So, I followed the different approach. I dont remember about the dynamic templates. Are you sure that the functions were written in the green ID region?
    I remember this used to work fine in the MS version. However, in the NW version, even I am not able to make them work.
    Edited by: nilanjan chatterjee on Feb 9, 2010 9:38 PM

  • EVDRE u0096 Column Keys staying hidden on multiple expansions

    I have an EVDRE that has two membersets and two Column Key Ranges.  I also have the Hide Column Key option selected.  When the first expansion member list either increases or decreases upon re-expand and the original second Column Key Range stays hidden.
    Before Expansion
    PageKeyRange    sheet1!C4:sheet1!C20
    RowKeyRange     sheet1!T33:V64,sheet1!T73:V85
    ColumnKeyRange  sheet1!W28:IV32,sheet1!W69:IV72
    After Expansion
    PageKeyRange    sheet1!C4:sheet1!C20
    RowKeyRange     sheet1!T33:V107,sheet1!T116:V128
    ColumnKeyRange   sheet1!W28:IV32,sheet1!W112:IV115
    The second column key range is below the first data range.  When members are added or removed from the first memberlist, the original second column key range's rows W69:IV72 remain hidden and the new second column key range's rows W112:IV115 are also hidden.  Except now the original column key rows now contain data not column keys.
    I need to know how to make the original second Column Key Range unhide with every re-expansion.

    If I understand the issue you have written, the following information may assist you in a solution.
    How the key of a cell is built
    The full key (“current view”) of a cell is ultimately controlled by EvDRE “overlaying” onto each cell the definitions of a current view as defined by any combination of the following settings:
    1)     The system current view, as defined in the Current View bar
    2)     The workbook current view, as “parked” in the workbook options, if set.
    3)     The page current view, as defined in the PageKeyRange, if existing.
    4)     The column current view, as defined in the ColumnKeyRange
    5)      The row current view, as defined in the RowKeyRange
    6)     The cell current view, as defined in the CellKeyRange
    These definitions, if in conflict, take precedence from the lowest to the highest in the above list (The cell key, if existing, wins on the row key, that wins on the column key, that wins on the page key, etc.).
    So, I think that if you keep the column key range of the 2nd set on the same rows as the 1st set as a relative reference, you should have a positive result, since the 2nd set of ranges create the point of intersection data retrival.  Otherwise, you may need to consider using 2 evdre statements.  If fact, if the data from the columns is in different catgories, or time members, you may want to consider this approach to develop a faster query.

  • View object SponsorVwView does not include a primary key attribute RowId

    Hi,
    I have an Entity Object and a View Object which do not have a primary key. So I use a ROWID to act as one. The only thing is that sometimes I get this error which causes the application to fail on the server:
    JBO-30003: The application pool (gov.fda.cber.pts.model.services.CberPtsServiceLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.PersistenceException, msg=JBO-26028: View object SponsorVwView does not include a primary key attribute RowId of entity base SponsorVw.
    Does anyone have any any ideas on this?
    Thank you in advance

    Hi...
    I believe you'll need a PK so Oracle will know how to update the MV. Is there any particular reason for you not having a PK in FAFG_ASSETS table? As an alternative, you may want to create a new column in this table and having a table trigger/sequence populating this column.
    But It looks like you are using EBS, so, I don't know if you can add new columns to tables.
    See if this thread can help you:
    Re: ORA-12014: table 'XXX' does not contain a primary key constraint
    Regards,
    Marcos

  • Error: Thrown when the IP address of a host cannot be determined

    hi,
    While i install oracle 10g on Windows XP SP2, i got the error "Thrown when the IP address of a host cannot be determined". I am not connected to any network and my host file contains the loopback IP address (127.0.0.1). I don't know why did i get this error. If somebody knows then, please help me as quickly as possible.

    Hi.
    I can't say I've ever tried to install Oracle on an non-networked PC :(
    My first guess would be to add an entry on the hosts file (C:\WINDOWS\system32\drivers\etc\hosts) for the local PC so you have something like:
    127.0.0.1       localhost
    127.0.0.1       machinenameWhere "machinename" is your machine name :)
    This might resolve the issue.
    Cheers
    Tim...

  • Error message to be thrown when multiple enteries are not entered

    Hello Guys,
    I have used a select-options with no intervals in the selection screen.
    If the user enters one value in the range, its working.
    But I want a error message to be thrown when only one entry is entered. User should enter more than one entry always.
    I used low and high but its not working.
    Kindly guide me.

    No intervals only works on the main screen.  If the press the right arrow and go to the ADDL choices, they can choose the entire database table in a single range....Your test is, therefore, too simplistic.  If you want to limit this on both the main and the additional choices screens, you have to implement Function Module SELECT_OPTIONS_RESTRICT in the Load-of-Program or Initialization event.
    Why not select from a table into a work table where the values are IN the select-options and see how many the user obtained?
    Something like this:
    Select <your field> from <your table> into table <your internal table>
    where <your field> IN <your select-options>.
      if lines( <your internal table> ) lt 2.
        <your error message>.
    endif.

  • Java.lang.NullPointerException is thrown when packaging Adobe AIR application for iOS

    Hi All,
    https://bugbase.adobe.com/index.cfm?event=bug&id=3071298
    As per above link this bug resolve(latest build) but i am facing  Java.lang.NullPointerException is thrown when packaging Adobe AIR application for iOS, using the packaging tools.
    (for  inappPurchase Demo app --- i used below link code)
    http://code.google.com/p/in-app-purchase-air-ios/
    Thanks,
    Sunil Rana

    Hi Everyone,
    I'm getting basically the same error. Are there any rules or guidelines that we are suppose follow when writing an app for iOS? Is there a way to know exactly where it is crashing? My apps are not MXML, only actionscript. Also I made sure I have no errors not even warnings in my SWF file, but still no go! 
    Getting the same error.
    Exception in thread "main" java.lang.NullPointerException
            at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6944)
            at adobe.abc.GlobalOptimizer.sccp_analyze(GlobalOptimizer.java:5909)
            at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4628)
            at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3514)
            at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2215)
            at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:526)
            at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:336)
            at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler
    .java:472)
            at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82)
    Compilation failed while executing : ADT
    regards,
    Keith

  • I'm shooting great white screen but when I key out the white background, I have a very thin white outline around my person that I don't know how to soften without loosing some facial opacity. Any suggestions?

    Hi,
    I'm shooting white screen and FINALLY have my lighting, white balance, exposure and focus making a great looking, crispy clip! But when I key out the white background in a short segment, I'm left with a very thin, white outline around my person that I don't know how to soften, without loosing facial opacity. I only tried using the 'Edges' tool. Any suggestions?
    Thanks!

    set the wake-on lan on the main computer
    The laptop's too far away from the router to be connected by ethernet. It's all wifi.
    No separate server app on the laptop, it's all samba
    The files are on a windows laptop and a hard drive hooked up to the windows laptop. The windows share server is pants, so I'd need some sort of third party server running. Maybe you weren't suggesting to use Samba to connect to the windows share though?
    I'm glad that you've all understood my ramblings and taken and interest, thanks The way I see it, I can't be the only netbook user these days looking for this kind of convenience, and I certainly won't be once chrome and moblin hit the market.
    Last edited by saft (2010-03-18 20:38:08)

  • When creating Key figures

    Hi gurus,
    When creating Key Figures in Adminstration workbench
    in the tabs <b>AGGREGATION</b> and <b>ADDITIONAL PROPERTIES</b>
    can somebody kindly explain the below contents and how do they affect and where do they affect, if we select.
    <b>AGGREGATION</b>
    aggregation----> sum, maximum, minmum
    <b>Exception Aggr</b>----> summation
    first value
    last value
    no aggregation (x if more than one record occurs)
    no aggregation (x if more than one value occurs)
    no aggregation (x if more than one value not= 0 occurs)
    standard deviation
    summation
    var
    <b>agg. referen.char</b>
    <b>cummulative/non-cumulative values</b>
    non *** value with ncum value change
    ncum value with in and out flow
    i will be very greatfull if somebody can give me some clear explaination and with some examples
    thanks and regards
    H.B.

    hi Dinesh,
    thanks for the quick response.
    With the info i got ...i am assuming that...
    if we set the settings of aggregation when creating key figures they will be displayed in the query results row.
    but if we want to have this effect in the data targets then we have to do these settings in the update rules
    plz can you tell me where to do these settings and is the affect same as the properties of key figures do in the query results row.
    thanks and regards
    H.B

  • I get this error when downloading key not valid for use in specified state what do i do

    i get this error when downloading key not valid for use in specified state what do i do

    What is your operating system?  What are you trying to download?

  • When I key in control-n, how can I get a new window instead of a new tab?

    I would like to get a new window instead of a new tab when I key control-n or when I click on a link. Can I do this?

    '''Hey mickeyten'''
    1 way to do this is that Goto Options > Tabs > Here Uncheck this Option: '''Open a new window in a new tab instead'''.
    This will open a new window each time time for every New Link or New Tab you open.
    Hope this helps you alot.
    Thanks,
    Shubham Mahajan

  • Exception Thrown When a Scheduled Task Runs for Many Hours

    In the Oracle documentation here (http://download.oracle.com/docs/cd/E10391_01/doc.910/e10367/toc.htm#CACGBDAD) it states that the below exception can get thrown when a scheduled task runs for many hours (on OAS) and can be ignored:
    Primary Server went down going to get a fresh object elsewhere in the cluster.
    com.evermind.server.rmi.RMIConnectionException: LRU connection
    Just want to find out from other users that get this error (If there is any), have you found the scheduled task actually completes, then the error is thrown or what?
    I just don't feel comfortable that one of our tasks is completing properly due to this exception occuring and causing the task to stop midway through processing...

    Hi,
    I've had trouble with scheduling PowerShell scripts in the past as well. You can try running your script in the SYSTEM context by launching a cmd prompt this way, just to verify that the issue isn't related to the account itself:
    http://myitforum.com/cs2/blogs/jmarcum/archive/2010/08/25/150872.aspx
    This method does require PSExec, there's a link to the tool in the post if you don't already have it on hand.
    You can also start PowerShell as SYSTEM and play around if you need to:
    http://blogs.technet.com/b/ben_parker/archive/2010/10/28/how-do-i-run-powershell-exe-command-prompt-as-the-localsystem-account-on-windows-7.aspx?Redirected=true
    Not the best answer, but hopefully it helps shed a little light on the issue.
    Good luck.
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Javax.servlet.jsp.JspException: ObjectPersisterException thrown when loading pipeline

    avax.servlet.jsp.JspException: ObjectPersisterException thrown when loading pipeline due to: An error occurred when attempting to read the object from the database due to: An error occured when attempting to read object from table 'PIPELINE_SESSION' with id 'e7436af5851b0b4b3214b5f26f762a19' due to: com.humana.rightsource.beans.order.StatusIcon
    This happened when trying to load https://www.rightsourcerx.com/. Support at ttps://www.rightsourcerx.com/ informed me that a change had been made to there web site to make access from smart phones easier.

    I can load the page https://www.rightsourcerx.com/
    I am not sure this is a question within the scope of this forum.
    If you have problems with a web page because of the page design or changes to the webpage it is normally up to the website to sort that out.
    You could consider posting on a mozillazine forum to see what they say if you think it is a website problem.
    * http://forums.mozillazine.org/viewforum.php?f=25
    If the problem is with Firefox but not with other browsers see
    * [[Firefox can't load websites but other browsers can]]

  • I have had to reinstall my Adobe creative suite 6 Standard but when I key in the serial number it asked for the serial number of a qualifying product?

    I have had to reinstall my Adobe creative suite 6 Standard but when I key in the serial number it asked for the serial number of a qualifying product?

    It's asking you or prompting you to input the old serial number of the version that you used to upgrade to your new version.

Maybe you are looking for