Select extractValue returns nothing - HELP!

My xml document in my XMLType table looks like this:
<echoems:ECHOMetrics xmlns:echoems="http://(myhost)/(myfilename.xsd)" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://(myhost)/(myfilename.xsd) http://(myhost)/(myfilename.xsd)">
<OrderMetrics>
<OrderItemMetric>
<submissionDateTime>2001-12-31T12:00:00.000000</submissionDateTime>
<requestor>123.456.789.000</requestor>
<product>MYD09Q1</product>
</OrderItemMetric>
</OrderMetrics>
</echoems:ECHOMetrics>
My query is:
select extractValue(object_value, '/ECHOMetrics/OrderMetrics/OrderItemMetric/product') from echoxml;
However, I keep getting an emtpy result. What am I doing wrong?

One other question. I've searched the forum on XMLTable and can't find what I'm looking for. Using my xml file below, how can I use XMLTable to get the data and column names into a relation table or view? I've tried the following but get no rows returned:
SELECT echo2."product"
FROM echoxml,
XMLTABLE('/ECHOMetrics'
PASSING extract(object_value,'echoems:ECHOMetrics/OrderMetrics/OrderItemMetric/*','xmlns:echoems="http://(myhost)/emslogsDEV/error/(myfilename.xsd)')
COLUMNS
"product" varchar2(85) PATH '/ECHOMetrics/OrderMetrics/OrderItemMetric/product')
echo2;
Here's my document:
<echoems:ECHOMetrics xmlns:echoems="http://(myhost)/(myfilename.xsd)" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://(myhost)/(myfilename.xsd) http://(myhost)/(myfilename.xsd)">
<OrderMetrics>
<OrderItemMetric>
<submissionDateTime>2001-12-31T12:00:00.000000</submissionDateTime>
<requestor>123.456.789.000</requestor>
<product>MYD09Q1</product>
</OrderItemMetric>
</OrderMetrics>
</echoems:ECHOMetrics>

Similar Messages

  • Selected value in search help cannot be returned

    Hi experts!
    When I select value in search help, selected value is not returned to the field.
    I did like this.
    1. I enhanced BP using EEW.
    2. I created a new view and display an enhanced field via BSP workbench.
    (an enhanced field is assigned to a check table)
    3. I created GET_V_XX method as follows.
    method GET_V_ZZBUT000000102.
      DATA:
        ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
        lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
        lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
      ls_map-context_attr = 'STRUCT.ZZBUT000000102'.
      ls_map-f4_attr      = 'KEY'.
      APPEND ls_map TO: lt_inmap, lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'CRMST_HEADER_OBJECT_BUIL-ZZBUT000000102'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    endmethod.
    Does anyone know what is wrong?

    Hi Yohei,
    You could resolve your issue by changing the value of the "ls_map-context_attr" to the attribute value seen on the F2 help on WebUI screen.
    If you change the value   ls_map-context_attr  to   'ZZBUT000000102' , then F4 help would work properly.
    Hence the correct code would be:
    method GET_V_ZZBUT000000102.
      DATA:
        ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
        lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
        lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
      ls_map-context_attr = 'ZZBUT000000102'.
      ls_map-f4_attr      = 'KEY'.
      APPEND ls_map TO: lt_inmap, lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'CRMST_HEADER_OBJECT_BUIL-ZZBUT000000102'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    endmethod.
    Regards,
    Pratik Gandhi

  • Hsodbc returns nothing :::Plz Help me :)

    Hi to all,
    I try to connect Oracle DB to Mysql database. I did these steps :
    1- Testing MySQL ODBC Driver using isql => Works fine
    2- Configuring the HSODBC process , my listner.ora file contains these entries :
    # listener.ora Network Configuration File: /u01/app/oracle/oracle/product/10.2.0/devxen03/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/oracle/product/10.2.0/devxen03)
    (PROGRAM = extproc)
    (SID_DESC =
    (PROGRAM = hsodbc)
    (ORACLE_HOME = /u01/app/oracle/oracle/product/10.2.0/devxen03)
    (SID_NAME =my_client)
    (ENVS = "LD_LIBRARY_PATH=/u01/app/oracle/oracle/product/10.2.0/devxen03/lib32:/usr/lib:/u01/app/oracle/oracle/product/10.2.0/devxen03/hs/lib32")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = devxen03.es.el.lan)(PORT = 1521))
    when I tried; hsodbc in command line : nothing comes back from this command
    Any idea please? I(m working on Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 on linux redhat server.
    Thanks a lot,
    Edited by: OracleJavaLinux on Dec 1, 2009 3:20 PM

    Thanks ora-dba;
    it means returns nothing without errors;
    But strange I got erros when I execute the command below, any idea? :
    *[root@devxen03 ~]# strace /u01/app/oracle/oracle/product/10.2.0/devxen03/bin/hsodbc*
    *execve("/u01/app/oracle/oracle/product/10.2.0/devxen03/bin/hsodbc", ["/u01/app/oracle/oracle/product/1"...], [* 26 vars */]) = -1 ENOEXEC (Exec format error)*
    dup(2)                                  = 3
    fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
    *fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0*
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95557000
    lseek(3, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
    write(3, "strace: exec: Exec format error\n", 32strace: exec: Exec format error
    *) = 32*
    close(3)                                = 0
    munmap(0x2a95557000, 4096)              = 0
    exit_group(1)                           = ?
    *[root@devxen03 ~]# echo $?*
    *0*

  • XML - ORA-19025: EXTRACTVALUE returns value of only one node

    Hi,
    I am new to XML DB. Can somebody help me with the below XML
    I use the following XML ... (I have pasted only a part of it coz i require data only till this section )
    XML
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-
    instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body>
    <ns:PicklistWS_GetPicklistValues_Output xmlns:ns="urn:crmondemand/ws/picklist/">
    <ListOfParentPicklistValue xmlns="urn:/crmondemand/xml/picklist">
    <ParentPicklistValue>
    <Language>ENU</Language>
    <ParentFieldName>plProduct_Team</ParentFieldName>
    <ParentDisplayValue>Marketing On Demand</ParentDisplayValue>
    <ParentCode>Marketing On Demand</ParentCode>
    <Disabled>N</Disabled>
    <ListOfPicklistValue>
    <PicklistValue>
    <Code>OCP/SME Escalation</Code>
    <DisplayValue>OCP/SME Escalation</DisplayValue>
    <Disabled>N</Disabled>
    </PicklistValue>
    <PicklistValue>
    <Code>Fusion Request</Code>
    <DisplayValue>Fusion Request</DisplayValue>
    <Disabled>N</Disabled>
    </PicklistValue>
    Code
    SELECT distinct
    EXTRACTVALUE(VALUE(SR), '/ParentPicklistValue/ListOfPicklistValue/PicklistValue/Code','xmlns="urn:/crmondemand/xml/picklist"') AS Display,
    EXTRACTVALUE(VALUE(SR),'/ParentPicklistValue/ListOfPicklistValue/PicklistValue/DisplayValue','xmlns="urn:/crmondemand/xml/picklist"') AS Return,
    EXTRACTVALUE(VALUE(SR),'/ParentPicklistValue/ParentDisplayValue','xmlns="urn:/crmondemand/xml/picklist"') AS parent_display,
    EXTRACTVALUE(VALUE(SR),'/ParentPicklistValue/ParentCode','xmlns="urn:/crmondemand/xml/picklist"') AS parent_return
    FROM TABLE(XMLSEQUENCE(EXTRACT(
    WEB_SERVICE('<?xml version="1.0" encoding="UTF-8" standalone="no"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <PicklistWS_GetPicklistValues_Input xmlns="urn:crmondemand/ws/picklist/">
    <FieldName>Type</FieldName>
    <RecordType>Service Request</RecordType>
    </PicklistWS_GetPicklistValues_Input>
    </soap:Body>
    </soap:Envelope>'
    ,'document/urn:crmondemand/ws/picklist/:GetPicklistValues', Sessionid),
    '/soap:Envelope/soap:Body/*/*/*','xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/'))) SR
    ERROR
    ORA-19025: EXTRACTVALUE returns value of only one node
    UNDERSTANDING
    As my Xpath points only until the node - ParentPicklistValue and not the child nodes under it. Hence when i try to query the child nodes - /ParentPicklistValue/ListOfPicklistValue/PicklistValue/Code, I recieve the above mentioned error.
    REQUIREMENT
    Can somebody help me to recieve the Parent values and also its child values based on the above query and xml.

    Hi,
    That's a classic ;)
    You need a second XMLSequence that will shred the collection of PicklistValue into relational rows :
    select extractvalue(value(sr2), '/PicklistValue/Code', 'xmlns="urn:/crmondemand/xml/picklist"') AS Display
         , extractvalue(value(sr2), '/PicklistValue/DisplayValue', 'xmlns="urn:/crmondemand/xml/picklist"') AS Return
         , extractvalue(value(sr1), '/ParentPicklistValue/ParentDisplayValue', 'xmlns="urn:/crmondemand/xml/picklist"') AS parent_display
         , extractvalue(value(sr1), '/ParentPicklistValue/ParentCode', 'xmlns="urn:/crmondemand/xml/picklist"') AS parent_return
    from table(
           xmlsequence(
             extract( WEB_SERVICE( ... )
                    , '/soap:Envelope/soap:Body/ns:PicklistWS_GetPicklistValues_Output/ListOfParentPicklistValue/ParentPicklistValue'
                    , 'xmlns="urn:/crmondemand/xml/picklist"
                       xmlns:ns="urn:crmondemand/ws/picklist/"
                       xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"' )
         ) sr1
       , table(
           xmlsequence(
             extract( value(sr1)
                    , '/ParentPicklistValue/ListOfPicklistValue/PicklistValue'
                    , 'xmlns="urn:/crmondemand/xml/picklist"' )
         ) sr2
    ;What's your database version BTW?
    On 10.2 and up, you may use XMLTable instead.

  • User Profile -Purchasing -returns nothing

    I created a User Profile in Oracle Applications under -Application Developer
    Application :Purchasing
    User Profile Name: PO: SBM CHANGE
    Hierarchy type: Security
    SQL validation:
    SQL="select decode(meaning,
                   'Yes','Full',
                   'No','None') \"Access Level\",
              lookup_code
         into :visible_option_value, :profile_option_value
         from fnd_lookups
         where lookup_type = 'YES_NO'
    Now I am trying to run this query which returns Nothing. Is that because i have application level *Purchasing*
    {code}
    select apps.fnd_profile.value('PO: SBM CHANGE') from dual;
    {code}
    Thanks

    Hi,
    First you need to give values for that profile option (resp. System Administrator > Profile > System).
    Also, when using fnd_profile.value, you need to specify the internal profile option name, and not the user profile option name (maybe they are identical in your case?).
    And also, typically you need to specify your context before calling fnd_profile. You can use fnd_global.apps_initialize for that.
    Hope it helps.

  • Java.nio select() method return 0 in my client application

    Hello,
    I'm developing a simple chat application who echo messages
    But my client application loop because the select() method return 0
    This is my code
    // SERVER
    package test;
    import java.io.IOException;
    import java.net.InetSocketAddress;
    import java.nio.channels.SelectionKey;
    import java.nio.channels.Selector;
    import java.nio.channels.ServerSocketChannel;
    import java.nio.channels.SocketChannel;
    import java.util.Iterator;
    import java.util.Set;
    public class Server {
         private int port = 5001;
         public void work() {               
              try {
                   ServerSocketChannel serverSocketChannel = ServerSocketChannel.open();
                   serverSocketChannel.configureBlocking(false);
                   InetSocketAddress isa = new InetSocketAddress(port);               
                   serverSocketChannel.socket().bind(isa);
                   Selector selector = Selector.open();
                   serverSocketChannel.register(selector, SelectionKey.OP_ACCEPT);
                   System.out.println("Listing on "+port);
                   while(selector.select()>0) {
                        Set keys = selector.selectedKeys();
                        for(Iterator i = keys.iterator(); i.hasNext();) {
                             SelectionKey key = (SelectionKey) i.next();
                             i.remove();
                             if (key.isAcceptable()) {
                                  ServerSocketChannel keyChannel = (ServerSocketChannel)key.channel();                              
                                  SocketChannel channel = keyChannel.accept();
                                  channel.configureBlocking(false);                              
                                  channel.register(selector, SelectionKey.OP_READ );
                             } else if (key.isReadable()) {
                                  SocketChannel keyChannel = (SocketChannel) key.channel();
                                  String m = Help.read(keyChannel );
                                  Help.write(m.toUpperCase(), keyChannel );
              } catch (IOException e) {                                             
                   e.printStackTrace();                         
         public static void main(String[] args) {
              Server s = new Server();
              s.work();
    // CLIENT
    package test;
    import java.awt.event.KeyAdapter;
    import java.awt.event.KeyEvent;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.io.IOException;
    import java.net.InetSocketAddress;
    import java.nio.channels.SelectionKey;
    import java.nio.channels.Selector;
    import java.nio.channels.SocketChannel;
    import java.util.Iterator;
    import java.util.Set;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    public class Client extends JFrame  {
         private String host = "localhost";
         private int port = 5001;
         private SocketChannel socketChannel;
         private Selector selector;
         public void work() {               
              try {
                   socketChannel = SocketChannel.open();
                   socketChannel.configureBlocking(false);
                   InetSocketAddress isa = new InetSocketAddress(host, port);               
                   socketChannel.connect(isa);
                   selector = Selector.open();
                   socketChannel.register(selector, SelectionKey.OP_CONNECT | SelectionKey.OP_READ );
                   while(true) {
                        selector.select();
                        Set keys = selector.selectedKeys();
                        for(Iterator i = keys.iterator(); i.hasNext();) {
                             SelectionKey key = (SelectionKey) i.next();
                             i.remove();
                             if (key.isConnectable()) {
                                  SocketChannel keyChannel = (SocketChannel) key.channel();
                                  if (keyChannel.isConnectionPending()) {
                                       System.out.println("Connected "+keyChannel.finishConnect());                                                                           
                             } else if (key.isReadable()) {                                                                                                                                                           
                                  SocketChannel keyChannel = (SocketChannel) key.channel();                                             
                                  String m = Help.read(keyChannel);
                                  display(m);                                                                                                                                                                                                                   
              } catch (IOException e) {                                             
                   e.printStackTrace();                         
         private void display(final String m) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        area.append(m+"\n");
                        textFieed.setText("");
         private void sendMessage(final String m) {
              Thread t = new Thread(new Runnable() {               
                   public void run() {                                                                                
                        try {                         
                             Help.write(m, socketChannel);
                        } catch (IOException e) {               
                             e.printStackTrace();
              t.start();                    
         public Client() {
              addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(1);
              textFieed.addKeyListener(new KeyAdapter() {
                   public void keyPressed(KeyEvent e) {
                        if (e.getKeyCode()== KeyEvent.VK_ENTER) {
                             String m = textFieed.getText();
                             sendMessage(m);     
              area.setEditable(false);
              getContentPane().add(textFieed, "North");
              getContentPane().add(new JScrollPane(area));
              setBounds(200, 200, 400, 300);
              show();
         private String messageToSend;
         private JTextArea area = new JTextArea();
         JTextField textFieed = new JTextField();
         public static void main(String[] args) {
              Client s = new Client();
              s.work();
    // HELPER CLASS
    package test;
    import java.io.IOException;
    import java.nio.ByteBuffer;
    import java.nio.CharBuffer;
    import java.nio.channels.SocketChannel;
    import java.nio.charset.Charset;
    import java.nio.charset.CharsetDecoder;
    import java.nio.charset.CharsetEncoder;
    public class Help {
         private static Charset charset = Charset.forName("us-ascii");
         private static CharsetEncoder enc = charset.newEncoder();
         private static CharsetDecoder dec = charset.newDecoder();
         private static void log(String m) {
              System.out.println(m);
         public static String read(SocketChannel channel) throws IOException {
              log("*** start READ");                              
              int n;
              ByteBuffer buffer = ByteBuffer.allocate(1024);
              while((n = channel.read(buffer)) > 0) {
                   System.out.println("     adding "+n+" bytes");
              log("  BUFFER REMPLI : "+buffer);
              buffer.flip();               
              CharBuffer cb = dec.decode(buffer);          
              log("  CHARBUFFER : "+cb);
              String m = cb.toString();
              log("  MESSAGE : "+m);          
              log("*** end READ");
              //buffer.clear();
              return m;                    
         public static void write(String m, SocketChannel channel) throws IOException {          
              log("xxx start WRITE");          
              CharBuffer cb = CharBuffer.wrap(m);
              log("  CHARBUFFER : "+cb);          
              ByteBuffer  buffer = enc.encode(cb);
              log("  BUFFER ALLOUE REMPLI : "+buffer);
              int n;
              while(buffer.hasRemaining()) {
                   n = channel.write(buffer);                         
              System.out.println("  REMAINING : "+buffer.hasRemaining());
              log("xxx end WRITE");

    Here's the fix for that old problem. Change the work method to do the following
    - don't register interest in things that can't happen
    - when you connect register based on whether the connection is complete or pending.
    - add the OP_READ interest once the connection is complete.
    This doesn't fix all the other problems this code will have,
    eg.
    - what happens if a write is incomplete?
    - why does my code loop if I add OP_WRITE interest?
    - why does my interestOps or register method block?
    For code that answers all those questions see my obese post Taming the NIO Circus
    Here's the fixed up Client code
    // CLIENT
    package test
    import java.awt.event.KeyAdapter;
    import java.awt.event.KeyEvent;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.io.IOException;
    import java.net.InetSocketAddress;
    import java.nio.channels.SelectionKey;
    import java.nio.channels.Selector;
    import java.nio.channels.SocketChannel;
    import java.util.Iterator;
    import java.util.Set;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    public class Client extends JFrame  {
         private String host = "localhost";
         private int port = 5001;
         private SocketChannel socketChannel;
         private Selector selector;
         public void work() {
              try {
                   socketChannel = SocketChannel.open();
                   socketChannel.configureBlocking(false);
                   InetSocketAddress isa = new InetSocketAddress(host, port);
                   socketChannel.connect(isa);
                   selector = Selector.open();
                   int interest = 0;
                   if(socketChannel.isConnected())interest = SelectionKey.OP_READ;
                   else if(socketChannel.isConnectionPending())interest = SelectionKey.OP_CONNECT;
                   socketChannel.register(selector, interest);
                   while(true)
                        int nn = selector.select();
                        System.out.println("nn="+nn);
                        Set keys = selector.selectedKeys();
                        for(Iterator i = keys.iterator(); i.hasNext();)
                             SelectionKey key = (SelectionKey) i.next();
                             i.remove();
                             if (key.isConnectable())
                                  SocketChannel keyChannel = (SocketChannel) key.channel();
                                  System.out.println("Connected "+keyChannel.finishConnect());
                                  key.interestOps(SelectionKey.OP_READ);
                             if (key.isReadable())
                                  SocketChannel keyChannel = (SocketChannel) key.channel();
                                  String m = Help.read(keyChannel);
                                  display(m);
              } catch (IOException e) {
                   e.printStackTrace();
         private void display(final String m) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        area.append(m+"\n");
                        textFieed.setText("");
         private void sendMessage(final String m) {
              Thread t = new Thread(new Runnable() {
                   public void run() {
                        try {
                             Help.write(m, socketChannel);
                        } catch (IOException e) {
                             e.printStackTrace();
              t.start();
         public Client() {
              addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(1);
              textFieed.addKeyListener(new KeyAdapter() {
                   public void keyPressed(KeyEvent e) {
                        if (e.getKeyCode()== KeyEvent.VK_ENTER) {
                             String m = textFieed.getText();
                             sendMessage(m);
              area.setEditable(false);
              getContentPane().add(textFieed, "North");
              getContentPane().add(new JScrollPane(area));
              setBounds(200, 200, 400, 300);
              show();
         private String messageToSend;
         private JTextArea area = new JTextArea();
         JTextField textFieed = new JTextField();
         public static void main(String[] args) {
              Client s = new Client();
              s.work();

  • When I try to install Itunes, I get this error: (translated from Norwegian) There was a network error while trying to read from the file: C: \ windows \ installer \ iTunes.msi I have tried many times to reinstall, but nothing helps, please help me.

    When I try to install Itunes, I get this error: (translated from Norwegian) There was a network error while trying to read from the file: C: \ windows \ installer \ iTunes.msi I have tried many times to reinstall, but nothing helps, please help me.

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Select / extractValue and Datatype

    Database: Oracle 9.2.0.1.0
    I am selecting from "XML Schema Validating" data stored in column of XMLTYPE datatype.
    SELECT
    extractvalue(value(t), '/path1/element1') DateVal1,
    extractvalue(value(t), '/path1/element2/@attribute') Date2
    FROM XML_TABLE A,
    TABLE (
    xmlsequence (extract(A.XML_COLUMN,'path0/path1'))) t;
    Returned values DateVal1, Date2 are strings and not of date datatype. Registered schema for the above element and attribute is of date datatype. How can I retain datatype in my select statement?
    Any additional input will be appreciated.

    Please see thread at
    any relationship between extractvalue's return type and sqltype?

  • Tabs are no longer loading, I have disabled addon's, killed the plugin-container, nothing helps

    Worked fine earlier this week. Now, the saved tabs (from session manager) just do not load. A few do but only 2-3 out of 16. I've disabled most addon's, stopped the plugin container, performed all MS updates for XP, downloaded 3.6.10 of Firefox, nothing helps. I give up.

    I solved the code problem myself after a careful run through of the code, the "else" in my subclass made it so that every button other than the Add button deleted a selected entry, i quickly fixed it and made it an if statement.
    Thank you for the link cotton.m
    My question bout optimizing still remains though:In the beginning of my code i have it loading the entire library with the *, and i noticed after turning it into a .jar that it loads slower than i expected... would a way to speed it up be to specify exactly what i need loaded after the program is finished or would it make no diffrence?

  • ERROR: ORA-19025: EXTRACTVALUE returns... after a deleteXML command.

    Hi
    My Oracle details are:
    Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for Solaris: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    I'm getting the following error:
    ERROR:
    ORA-19025: EXTRACTVALUE returns value of only one node
    when I try and select the content of a row after I have performed an deleteXML command on a node from with in the xml content.
    This process can reproduced the error.
    CREATE TABLE test OF XMLType xmltype STORE as BINARY XML;
    INSERT INTO test VALUES (XmlType('<product_details id="1"><product id="21"><name>test1</name><code>123</code></product><product id="20"><name>test2</name><code>456</code></product></product_details>'));Select the xml content...
    SELECT extract(OBJECT_VALUE, '/product_details[@id=1]') "Xml" FROM test WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    <product_details id="1">
      <product id="21">
        <name>test1</name>
        <code>123</code>
      </product>
      <product id="20">
        <name>test2</name>
        <code>456</code>
      </product>
    </product_details>then delete the product node with id = 21 from the xml content...
    UPDATE test SET OBJECT_VALUE = deleteXML(OBJECT_VALUE, '/product_details[@id=1]/product[@id=21]')  WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    1 row updated.The same select now produces the following error:
    SELECT extract(OBJECT_VALUE, '/product_details[@id=1]') "Xml" FROM test WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    ERROR:
    ORA-19025: EXTRACTVALUE returns value of only one node
    no rows selectedThe current content of the test table is:
    SELECT * FROM test;
    <product_details id="1">
      <product id="20">
        <name>test2</name>
        <code>456</code>
      </product>
    </product_details>I would now expect the select statement:
    SELECT extract(OBJECT_VALUE, '/product_details[@id=1]') "Xml" FROM test WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    to return:
    <product_details id="1">
      <product id="20">
        <name>test2</name>
        <code>456</code>
      </product>
    </product_details>Can anyone tell me why this select is not returning any rows and an error message?
    Having done some more research around this problem, it would seem that deleting the last node first ie the node with the product id of 20 does not cause the error!
    eg running the following deleteXML works as I would expect:
    UPDATE test SET OBJECT_VALUE = deleteXML(OBJECT_VALUE, '/product_details[@id=1]/product[@id=20]')  WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    1 row updated.then running...
    SELECT extract(OBJECT_VALUE, '/product_details[@id=1]') "Xml" FROM test WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    <product_details id="1">
      <product id="21">
        <name>test1</name>
        <code>123</code>
      </product>
    </product_details>returns what I would expect.
    Many thanks
    Edited by: Baseman on 20-Apr-2011 16:55
    Edited by: Baseman on 20-Apr-2011 17:00

    I tried it myself and found something very strange. It seems when using xmltype with binary storage, that oracle isnt able to read xmldata, the same way that it reads using clob storage.
    Here is what I get if I use clob storage:
    CREATE TABLE test_clob OF XMLType xmltype STORE as CLOB;
    INSERT INTO test_clob VALUES (XmlType('<product_details id="1"><product id="21"><name>test1</name><code>123</code></product><product id="20"><name>test2</name><code>456</code></product></product_details>'));
    UPDATE test_clob SET OBJECT_VALUE = deleteXML(OBJECT_VALUE, '/product_details[@id=1]/product[@id=21]') 
    WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    SELECT extract(OBJECT_VALUE, '/product_details[@id=1]') "Xml"
    FROM test_clob WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    -- works fine and prints out:
    <product_details id="1"><product id="20"><name>test2</name><code>456</code></product></product_details>
    SELECT t.*, x.*
    ,extract(value(x), '/product_details/@id') id
    FROM test_clob t, table (xmlsequence(extract(t.object_value,'/product_details'))) xThe last select statement prints out the "id" as "1" which we expected.
    But if I use the same select statement in your example on a table test like this:
    SELECT t.*, x.column_value
    ,extract(value(x), '/product_details/@id') id
    FROM test t, table (xmlsequence(extract(t.object_value,'/product_details'))) xit prints out:
    120
    <name>test2</name>
    <code>456</code>It seem it printed out the "id" from product_details, plus "id" from "product" plus all the data of the element product.
    Edited by: Romci on 3.5.2011 13:16

  • Select wich returns the shortest time

    Hi,
    I don't know how to do a select. I'm goig to explain what I want to get to see wheter somebody can help.
    I've a select that returns the following columns (table t):
    handle_id, logon_id, object_name
    I've another table with the following columns (table t0):
    time0, handle_id, logon_id, object_name, source, eventid
    If I do this select:
    select t0.time0, t0.source, t0.eventid
    from t, t0
    where t.handle_id = t0.handle_id and t.logon_id = t0.logon_id and t.object_name = t0.object_name
    It returns me several records with the same condition (handle_id, logon_id, object_name) because, obviously, I've repeated recors with the same conditions but with diferent time0.
    I would like to get only one record for each condtion with the shortest time0.
    How can I do it?
    I've tried with distinct but it isn't what I want.
    Thanks in advance.
    Regards.

    select  *
      from  (
             select  t0.time0, t0.source, t0.eventid........ , t0.accesses,
                     row_number() over(partition by t0.handle_id,t0.logon_id,t0.object_name order by t0.time0) rn
               from  t,
                     t0
               where t.handle_id = t0.handle_id
                 and t.logon_id = t0.logon_id
                 and t.object_name = t0.object_name
      where rn = 1
    /If there can be more than one row with "shortest time0" for same handle, logon_id, object_name the above query will return olny one of such rows. If you want to get all such rows use:
    select  *
      from  (
             select  t0.time0, t0.source, t0.eventid........ , t0.accesses,
                     dense_rank() over(partition by t0.handle_id,t0.logon_id,t0.object_name order by t0.time0) rn
               from  t,
                     t0
               where t.handle_id = t0.handle_id
                 and t.logon_id = t0.logon_id
                 and t.object_name = t0.object_name
      where rn = 1
    /SY.

  • Putting variable in regexp_substr pattern returns nothing

    I'm trying to create a function to simply extract positioned text from a string, ie I want the text in position two from string X with a pattern of ' - '. I want to create a function so it is simpler for the developers but regexp_substr doesn't seem to like it.
    So I want a function like below to be executed, select text_extractor('ABC - DEF - HIJ',' - ',2) from dual; which would return DEF;
    But regexp_substr doesn't like matching on ' - '. If I tell it to give me position 2, I get '-', and if I tell it position 3, I get DEF. It seems to work fine if the '-' is substritued with a ':'
    ie
    select regexp_substr('ABC - DEF - HIJ','[^ - ]+',1,2) from dual;
    results
    select regexp_substr('ABC - DEF - HIJ','[^ - ]+',1,3) from dual;
    results
    DEF
    select regexp_substr('ABC : DEF : HIJ','[^ : ]+',1,2) from dual;
    results
    DEF
    I would further like to make a function to wrap it in but it didn't work at all.
    The following examples return nothing.
    create or replace function text_extractor (p_text varchar2, p_delimiter varchar2, p_position number)
    return varchar2
    is
    begin
    return (regexp_substr(p_text,'^p_delimiter]+', 1,p_position));
    end;
    I've also tried
    create or replace function text_extractor (p_text varchar2, p_delimiter varchar2, p_position number)
    return varchar2
    is
    v_search_expression varchar2(2000);
    begin
    v_search_expression := '''[^'||p_delimiter||']+''';
    return (regexp_substr(p_text,v_search_expression),1,p_position);
    end;
    But I get nothing. Any ideas?

    When you do this:
    select regexp_substr('ABC - DEF - HIJ','[^ - ]+',1,2) from dual;
    results
    -Your search string is a set of characters, so you are saying anything that is NOT a space or dash (or space again, but that's redundant). So the first match is ABC, the second match is "-" as that's the second non-space match, so that's why you get that. Probably what you want is to ignore the spaces and use the "-" as your delimiter, then just trim the spaces off after...
    SQL> ed
    Wrote file afiedt.buf
      1* select trim(regexp_substr('ABC - DEF - HIJ','[^-]+',1,2)) from dual
    SQL> /
    TRI
    DEF
    SQL>

  • SQL LIKE Operator return nothing

    I am working on an intranet application and use Access as the
    database.
    There is a query that I have
    <CFQUERY DATASOURCE="#DSN#" NAME="GET_SEARCH_RESULT">
    SELECT * FROM WL_TREES
    WHERE TREENAME LIKE '3*'
    </CFQUERY>
    It returns nothing in ColdFusion, if I copy just the SQL and
    run it in Access, it returns with the expected result.
    Any idea why ColdFusion query didn't work?
    Thanks,
    tofuTnT

    replace the * with a % and you should be good to go.
    HTH
    Tim Carley
    www.recfusion.com
    [email protected]

  • CRM search, request return nothing

    Hi,
    When I try to make research in our b2b applications (CRM 5, TREX 7 update26) if I use the character "*" it return all items, but any other character, (join, union) returns nothing for any requests.
    I have the following error : "An exception has occurred: Invalid attribute "TEXT_0001" in the filter printout  Invalid attribute "TEXT_0001" in the filter printout.
    com.sap.isa.catalog.impl.CatalogBuildFailedException: Invalid"
    (SRM0, RFC connections works fine, catalog is well replicated)
    The Quick Search Attributes from the WEB-INF/cfg/catalog-site-config.xml was not be modified.
    Any Help will be reward.
    Regards,
    Thomas

    This reply is way too late, but might help someone.
    There are two options in your case:
    1. Attribute "TEXT_0001" is not replicated in TREX catalog
    2. "TEXT_0001" is in P-Index, and you are doing search over the S-index (or vice-verse).
    There are 2 types of Queries in ISA.
    Catalog search which is done over the P-indexes (when you create your Quesry throug the ICatalog object).
    Category specific search which is done over the S-indexes (when you get your Query from a ICategory).
    Best regards,
    Marian

  • Can select statement return 'No Record found' for each of invalid inputs.

    Let say when you select a invalid booking number, oracle will
    return nothing, but do u know how to make oracle return a record
    saying it's invalid?
    Example, the following sql normally return 3 records cause
    only 3 numbers are valid, is there anyway to make it return
    4 records and indicate those invalid ones are invalid somehow.
    select booking_service, BOOKING_NO from tb_booking where booking_no in ('valid1','INVALID', 'valid2', 'valid3')

    Along the same lines you could use object types to achieve the same result. This would remove the need for a temporary table, and also allow you to create the list of ids to check with PL/SQL without i/o. As an example
    CREATE TYPE booking_id_typ IS OBJECT (id NUMBER);
    CREATE TYPE booking_id_list_typ IS TABLE OF booking_id_typ;
    CREATE TABLE bookings (booking_id booking_id_typ);
    (you could have booking_id as type NUMBER, but for consistency with subsequent SQL I've used booking_id_typ)
    INSERT INTO bookings VALUES (booking_id_typ(10));
    INSERT INTO bookings VALUES (booking_id_typ(20));
    INSERT INTO bookings VALUES (booking_id_typ(40));
    INSERT INTO bookings VALUES (booking_id_typ(50));
    The following SQL statement creates a collection on the fly, rather than using an IN clause.
    SELECT i.id booking_id, DECODE(b.booking_id.id, NULL, 'Invalid', 'Ok') status
    FROM bookings b,
    SELECT id
    FROM TABLE(booking_id_list_typ(booking_id_typ(10), booking_id_typ(20), booking_id_typ(30), booking_id_typ(40)))
    ) i
    WHERE i.id = b.booking_id.id (+)
    BOOKING_ID STATUS
    10 Ok
    20 Ok
    30 Invalid
    40 Ok
    This SQL statement works in 9i. I get the following error in 8i, but you might be able to CAST the TABLE to booking_id_list_typ, or depending on your application, create a PL/SQL variable of type booking_id_list_typ and CAST that instead.
    ERROR at line 5:
    ORA-22905: cannot access rows from a non-nested table item

Maybe you are looking for

  • HT1937 Testing of LTE network with USIM, but not able to scan LTE network in manual selection?

    Recently i am testing LTE network and intially though of having problems with USIM card. But it turns out that the phone is the problem. I am testing with 4 type of handsets, I-phone5, Galaxy S4, Blackberry Z10 and Huawei 4G modem. All of them suppor

  • Authorization check in BW

    Hi,   I need to run authorization check  for another user in BW ..How can i do it   if i run SU53 it is doing the authorization check for my account Thanks

  • No email for sender when forwarding

    ExternalUser sends an email to ExchUser1. ExchUser1 forwards this email to ExchUser2. When the forward takes place, the email address of ExternalUser is removed, and only the name of the user is displayed in the inline header. The ExternalUser is not

  • 3D Autocad drawing not visible in Acrobat 3D

    I have a 3D Autocad .dwg file which had been converting to Acrobat 3D, but  now that I've added some items on the drawing, it appears blank in Acrobat. Smaller 3D files works OK. Is this a known issue with Acrobat 3D?

  • Copying standard program

    Hi Gurus, Am trying to copy the standard program PPPIH000 to make some changes . The problem am facing is it has 3 screens 800, 1000, 1200 The sub screen 800 is getting copied but the other screens are not getting copied... because of this the proces