Query parsing error for Chart.

Hi,
I am trying to understand the query structure for drawing charts . I am not sure why this query doesn't work. Any help will be appreciated.
select null link,
category label,
count (decode(p.category,'Accessories'))
"Accessories",
count (decode(p.category,'Mens')) "Mens",
count (decode(p.category,'Womens')) "Womens"
from demo_product_info p
I get the following error .
•Failed to parse SQL query!
Thanks

Jeff,
Yes . I am using the same query for creating all the four series. I tried creating the same chart by giving more options, now I get three values ( out of 7) . I am not sure why .
See the query :
CREATE OR REPLACE FUNCTION funcy
RETURN VARCHAR2 IS
l_qry VARCHAR2(32767);
BEGIN
l_qry := 'select null link, LOAD_DATE label,';
FOR r1 IN (SELECT DISTINCT "MOUNT_POINT" FROM "SERVER_DISK_SPACE_UTILIZATION")
LOOP
l_qry := l_qry || '(decode(MOUNT_POINT,''' || r1.MOUNT_POINT||
''',PERCENTAGE_USED*100,0)) "' || substr(r1.MOUNT_POINT,-8)|| '",';
END LOOP;
--Trim off trailing comma
l_qry := rtrim(l_qry, ',');
--Append the rest of the query
l_qry := l_qry ||' FROM "SERVER_DISK_SPACE_UTILIZATION"';
RETURN l_qry;
END;
I called it in the chart like this :
BEGIN
RETURN funcy;
END;
xml:
- <data>
- <series name="oger/etl" type="Bar" color="0x1D8BD1">
<point name="09-SEP-2011" y="0" />
<point name="09-SEP-2011" y="0" />
<point name="09-SEP-2011" y="0" />
<point name="08-SEP-2011" y="79" />
<point name="08-SEP-2011" y="0" />
<point name="07-SEP-2011" y="0" />
<point name="07-SEP-2011" y="0" />
</series>
- <series name="re/prep2" type="Bar" color="0xF1683C">
<point name="09-SEP-2011" y="0" />
<point name="09-SEP-2011" y="86" />
<point name="09-SEP-2011" y="0" />
<point name="08-SEP-2011" y="0" />
<point name="08-SEP-2011" y="0" />
<point name="07-SEP-2011" y="0" />
<point name="07-SEP-2011" y="0" />
</series>
- <series name="ore/prep" type="Bar" color="0x2AD62A">
<point name="09-SEP-2011" y="0" />
<point name="09-SEP-2011" y="0" />
<point name="09-SEP-2011" y="0" />
<point name="08-SEP-2011" y="0" />
<point name="08-SEP-2011" y="0" />
<point name="07-SEP-2011" y="82" />
<point name="07-SEP-2011" y="0" />
</series>
- <series name="/mount36" type="Bar" color="0xDBDC25">
<point name="09-SEP-2011" y="0" />
<point name="09-SEP-2011" y="0" />
<point name="09-SEP-2011" y="95" />
<point name="08-SEP-2011" y="0" />
<point name="08-SEP-2011" y="0" />
<point name="07-SEP-2011" y="0" />
<point name="07-SEP-2011" y="0" />
</series>
- <series name="outbound" type="Bar" color="0x8FBC8B">
<point name="09-SEP-2011" y="0" />
<point name="09-SEP-2011" y="0" />
<point name="09-SEP-2011" y="0" />
<point name="08-SEP-2011" y="0" />
<point name="08-SEP-2011" y="68" />
<point name="07-SEP-2011" y="0" />
<point name="07-SEP-2011" y="0" />
</series>
- <series name="etl/data" type="Bar" color="0xD2B48C">
<point name="09-SEP-2011" y="0" />
<point name="09-SEP-2011" y="0" />
<point name="09-SEP-2011" y="0" />
<point name="08-SEP-2011" y="0" />
<point name="08-SEP-2011" y="0" />
<point name="07-SEP-2011" y="0" />
<point name="07-SEP-2011" y="84" />
</series>
- <series name="/sandbox" type="Bar" color="0xFAF0E6">
<point name="09-SEP-2011" y="56" />
<point name="09-SEP-2011" y="0" />
<point name="09-SEP-2011" y="0" />
<point name="08-SEP-2011" y="0" />
<point name="08-SEP-2011" y="0" />
<point name="07-SEP-2011" y="0" />
<point name="07-SEP-2011" y="0" />
</series>
</data>

Similar Messages

  • Install error for Chart Server for Siebel 8.1.1.1

    Hello all,
    I have Siebel 8.1.1.0 installed, and the 8.1.1.1 patch applied. It's been stable for a while now, but I've decided to get the charts functionality working, and am having trouble with the installer.
    Basically, I get library errors, and the installer won't start. I've tried playing around with LD_LIBRARY_PATH (which helped in the Siebel install), but still nothing. I've tried running it through putty and VNC Viewer, with no luck.
    I suspect that I'm missing something in my Linux 5.1 environment, which is a virtual machine using Amazon Web Services. Unfortunately I'm not much of a Linux guy, and don't want to start playing around unless I have an idea what needs to be done. It's a bit frustrating since the other Siebel install programs run ok.
    Any thoughts/suggestions would be very much appreciated..
    Thanks,
    Jon
    PS - Here are the process/errors I am getting:
    Login as Oracle user and navigate to:
         /u05/Siebel_Install/Siebel_Install_Image_81/8.1.1.0/Linux/Server_Ancillary/Visual_Mining_Netcharts_Server/enu/unix
    Execute:
    ./NetChartsServer4.6SiebelEdition.linux.bin
    Preparing to install...
    Extracting the JRE from the installer archive...
    Unpacking the JRE...
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...
    awk: error while loading shared libraries: libdl.so.2: cannot open shared object
    file: No such file or directory
    dirname: error while loading shared libraries: libc.so.6: cannot open shared obj
    ect file: No such file or directory
    /bin/ls: error while loading shared libraries: librt.so.1: cannot open shared ob
    ject file: No such file or directory
    basename: error while loading shared libraries: libc.so.6: cannot open shared ob
    ject file: No such file or directory
    dirname: error while loading shared libraries: libc.so.6: cannot open shared obj
    ect file: No such file or directory
    basename: error while loading shared libraries: libc.so.6: cannot open shared ob
    ject file: No such file or directory
    hostname: error while loading shared libraries: libc.so.6: cannot open shared ob
    ject file: No such file or directory
    Launching installer...
    grep: error while loading shared libraries: libc.so.6: cannot open shared object
    file: No such file or directory
    /tmp/install.dir.25010/Linux/resource/jre/bin/java: error while loading shared l
    ibraries: libpthread.so.0: cannot open shared object file: No such file or direc
    tory
    bash-3.1$
    bash-3.1$ ./NetChartsServer4.6SiebelEdition.linux.bin
    Preparing to install...
    Extracting the JRE from the installer archive...
    Unpacking the JRE...
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...
    awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
    dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
    basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    Launching installer...
    grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /tmp/install.dir.25136/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    PPS - I also did a find / -name 'libc.so.6' and got the following:
    /lib/i686/nosegneg/libc.so.6
    /lib/libc.so.6
    /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6
    /u02/Apache/lib/stubs/libc.so.6
    When I try putting the /u01/app/.. path into my LD_LIBRARY_PATH, I get similar errors to below, it tells me:
    hostname: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libsepol.so.1)
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...
    awk: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by awk)
    dirname: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by dirname)
    /bin/ls: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by /bin/ls)
    /bin/ls: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libacl.so.1)
    /bin/ls: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libselinux.so.1)
    /bin/ls: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libattr.so.1)
    /bin/ls: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libsepol.so.1)
    basename: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by basename)
    dirname: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by dirname)
    basename: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by basename)
    hostname: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by hostname)
    hostname: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libselinux.so.1)
    hostname: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libsepol.so.1)
    Launching installer...
    grep: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by grep)
    grep: /u01/app/oracle/product/11.1.0/db_1/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libpcre.so.0)
    Segmentation fault

    We experienced similar issue on our installation. Worked with Oracle support, and seems like you need to change the environment variable settings on the linux and .bin file. Here is what we have changed and we were able to install charts in 8.1.1.1 Linux environment.
    With Oracle expert help, we figured out that the .bin file needed to be changed. we did the following on our second QA server to run the installer without setting any other environment variables:
    a. identified the above files by using find / -name <filename> to find the location.
    b. checked whether it is their in the env varialbles.
    c. more than one location was found . some of them were like /usr/lib and /lib etc. even there was a file by the name in siebsrvr/lib and gtwysrvr/lib etc
    d. when we add this in the LD_LIBRARY_PATH and PATH, then the error was different than what we saw first time.
    e. this clearly shows that there is something wrong with the environment variables.
    h. as per this, he has to comment out two places of LD_LIBRARY_PATH. he did this. saved the *.bin file to a new bin file
    i. uncomment LD_ASSUME_KERNEL variable.
    J.then set DISPLAY. The installer worked fine.
    k.. the issue was with the bin file provided and the solution is mentioned in the above linke.
    1. cd ${install_image}/8.1.1.1/Linux/Server_Ancillary/Visual_Mining_Netcharts_Server/enu/unix
    2. export DISPLAY=${my_ip}:0.0
    3. sh NetChartsServer4.6SiebelEdition.linux.bin
    Hope this helps.
    Edited by: user10243604 on Jul 23, 2010 10:18 AM

  • SQL*Loader problem - not efficient, parsing error for big xml files

    Hi Experts,
    First of all, I would like to store xml files in object relation way. Therefore I created a schema and a table for it (see above).
    I wants to propagate it (by using generated xml files), hence I created a control file for sql loader (see above).
    I have two problems for it.
    1, It takes a lot of time. It means I can upload a ~80MB file in 2 hours and a half.
    2, At bigger files, I got the following error messages (OCI-31011: XML parsing failed OCI-19202: Error occurred in XML processing LPX-00243: element attribute value must be enclosed in quotes). It is quite interesting because my xml file is generated and I could generated and uploaded the first and second half of the file.
    Can you help me to solve these problems?
    Thanks,
    Adam
    Control file
    UNRECOVERABLE
    LOAD DATA
    CHARACTERSET UTF8
    INFILE *
    APPEND
    INTO TABLE coll_xml_objrel
    XMLTYPE(xml)
    FIELDS
    ident constant 2
    ,file_name filler char(100)
    ,xml LOBFILE (file_name) TERMINATED BY EOF
    BEGINDATA
    generated1000x10000.xml
    Sql Loader command
    sqlldr.exe username/password@//localhost:1521/SID control='loader.ctl' log='loadr.log' direct=true
    Schema
    <?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://www.something.com/shema/simple_searches" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.something.com/shema/simple_searches">
        <element name="searches" type="tns:searches_type"></element>
        <element name="search" type="tns:search_type"></element>
        <element name="results" type="tns:results_type"></element>
        <element name="result" type="tns:result_type"></element>
        <complexType name="searches_type">
            <sequence>
                <element ref="tns:search" maxOccurs="unbounded"></element>
            </sequence>
        </complexType>
        <complexType name="search_type">
            <sequence>
                <element ref="tns:results"></element>
            </sequence>
            <attribute ref="tns:id" use="required"></attribute>
            <attribute ref="tns:type" use="required"></attribute>
        </complexType>
        <complexType name="results_type">
            <sequence maxOccurs="unbounded">
                <element ref="tns:result"></element>
            </sequence>
        </complexType>
        <complexType name="result_type">
            <attribute ref="tns:id" use="required"></attribute>
        </complexType>
        <simpleType name="type_type">
            <restriction base="string">
                <enumeration value="value1"></enumeration>
                <enumeration value="value2"></enumeration>
            </restriction>
        </simpleType>
        <attribute name="type" type="tns:type_type"></attribute>
        <attribute name="id" type="string"></attribute>
    </schema>
    Create table
    create table coll_xml_objrel
    ident Number(20) primary key,
    xml xmltype)
    Xmltype column xml
    store as object relational
    xmlschema "http://www.something.com/schema/simple_searches.xsd"
    Element "searches";

    Hi Odie_63,
    Thanks for your answer.
    I will post this question in the XML DB forum too (edit: I realized that you have done it. Thanks for it).
    1, Version: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    2, see above
    3, I have registered my schema with using dbms_xmlschema.registerSchema function.
    Cheers,
    Adam
    XML generator:
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import javax.xml.stream.XMLOutputFactory;
    import javax.xml.stream.XMLStreamException;
    import javax.xml.stream.XMLStreamWriter;
    public class mainGenerator {
        public static void main(String[] args) throws FileNotFoundException, XMLStreamException {
            // TODO Auto-generated method stub
            final long numberOfSearches = 500;
            final long numberOfResults = 10000;
            XMLOutputFactory xof = XMLOutputFactory.newFactory();
            XMLStreamWriter writer = xof.createXMLStreamWriter(new FileOutputStream("C:\\Working\\generated500x10000.xml"));
            writer.writeStartDocument();
            writer.writeStartElement("tns","searches", "http://www.something.com/schema/simple_searches");
            writer.writeNamespace("tns", "http://www.something.com/schema/simple_searches");
            for (long i = 0; i < numberOfSearches; i++){
                Long help = new Long(i);
                writer.writeStartElement("tns","search", "http://www.something.com/schema/simple_searches);
                writer.writeAttribute("tns", "http://www.something.com/schema/simple_searches", "type", "value1");
                writer.writeAttribute("tns", "http://www.something.com/schema/simple_searches", "id", help.toString());
                writer.writeStartElement("tns","results", "http://www.something.com/schema/simple_searches");
                for (long j = 0; j < numberOfResults; j++){
                    writer.writeStartElement("tns","result", "http://www.something.com/schema/simple_searches");
                    Long helper = new Long(i*numberOfResults+j);
                    writer.writeAttribute("tns", "http://www.something.com/schema/simple_searches", "id", helper.toString());
                    writer.writeEndElement();
                writer.writeEndElement();
                writer.writeEndElement();
            writer.writeEndElement();
            writer.writeEndDocument();
            writer.close();
    registerSchema:
    begin
    dbms_xmlschema.registerSchema(
    'http://www.something.com/schema/simple_searches',
    '<?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://www.something.com/schema/simple_searches" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.something.com/schema/simple_searches">
        <element name="searches" type="tns:searches_type"></element>
        <element name="search" type="tns:search_type"></element>
        <element name="results" type="tns:results_type"></element>
        <element name="result" type="tns:result_type"></element>
        <complexType name="searches_type">
            <sequence>
                <element ref="tns:search" maxOccurs="unbounded"></element>
            </sequence>
        </complexType>
        <complexType name="search_type">
            <sequence>
                <element ref="tns:results"></element>
            </sequence>
            <attribute ref="tns:id" use="required"></attribute>
            <attribute ref="tns:type" use="required"></attribute>
        </complexType>
        <complexType name="results_type">
            <sequence maxOccurs="unbounded">
                <element ref="tns:result"></element>
            </sequence>
        </complexType>
        <complexType name="result_type">
            <attribute ref="tns:id" use="required"></attribute>
        </complexType>
        <simpleType name="type_type">
            <restriction base="string">
                <enumeration value="value1"></enumeration>
                <enumeration value="value2"></enumeration>
            </restriction>
        </simpleType>
        <attribute name="type" type="tns:type_type"></attribute>
        <attribute name="id" type="string"></attribute>
    </schema>',
    TRUE, TRUE, FALSE, FALSE);
    end

  • Query browser error for a Bex query

    Hello,
    I am using Query browser in Dashboards 4.0 to retrieve the data from Bex query. When I select a few dimension measures out of the structure with certain key figures and clicking the preview of the results, I am getting the error message as "Request Processing failed(XLS 000009)[] Error DBMAN(257):SQL Error:58115
    Error RS Exception:Arithmetic overflow error converting" kind of error message.
    When I remove some dimension members which were selected, I am able to see the preview of the data. What could be the probable reason for the above kinda error?
    Thank you.

    These are generic error, please go through the below link and let us know whether its helpful or not.
    Microsoft ODBC data manager not found
    Error during "Add Query" in Dashboard 4.0
    Happy to help you!
    -SumanT

  • DB Link between 8i and 10g : INSERT query parse once for every execution ?

    Hi, All
    Wonder if there is anyone out there who has processes that work among 8i x 10g databases through DB Link, and could enlight this.
    I have the following INSERT statement :
    INSERT INTO SAFX01
    (COD_EMPRESA,
    COD_ESTAB,
    DATA_OPERACAO,
    CONTA_DEB_CRED,
    IND_DEB_CRE,
    ARQUIVAMENTO,
    VLR_LANCTO,
    CONTRA_PART,
    CENTRO_CUSTO,
    CENTRO_DESPESA,
    HISTPADRAO,
    COD_OPERACAO,
    HISTCOMPL,
    COD_INDICE_CONV,
    VLR_OPER_IND,
    NUM_LANCAMENTO
    VALUES
    :BIND001,
    :BIND002,
    :BIND003,
    :BIND004,
    :BIND005,
    :BIND006,
    :BIND007,
    :BIND008,
    :BIND009,
    :BIND010,
    :BIND011,
    :BIND012,
    :BIND013,
    :BIND014,
    :BIND015,
    :BIND016 )
    This piece of the process starts at the 8i side.
    The SAFX01 is a table on the 10g side.
    They connect through a db link.
    The trace shows the following situation :
    call count cpu elapsed disk query current rows
    Parse 227521 696.91 1258.88 1 0 910 0
    Execute 227521 381.97 1136.74 0 0 0 227521
    Fetch 0 0.00 0.00 0 0 0 0
    total 455042 1078.88 2395.62 1 0 910 227521
    As can be seen, for every executation, the statement is parsed.
    Is this a expected behaviour, in general ?
    or ...
    Is it happening because it is a 8i vs 10g interface ?
    Am I missing some DB parameter, that could avoid this ?
    Thx,

    This your application is submitting the statement over and over and over again.
    However, it is probably a soft parse.
    You could make it a still softer parse if you set session_cache_cursors to something sensible (100 or so)
    Other than that, only INSERT etc statements in pl/sql procedures are parsed only once, reason why Oracle often uses packages to do DML in their own applications.
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • Top N query giving error for oracle 8.0.6

    Dear All,
    We are executing this query SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM (SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM PMBPITS.PITS_UNITY WHERE STATUS = '01' ORDER BY PMTIMESTAMP) WHERE ROWNUM < 20
    on oracle 8.0.6 but this is giving the following error
    ora - 00907 missing right parenthesis error
    1. Is it that in the inner select we cannot use order by and where clause together.
    2. We also found that if we remove order by from inner select then the query is not giving error
    pls help . points will be awarded

    Hi,
    what ever the Aman said is correct. You check this is supported in 8.1.5, SQL allows you to embed the ORDER BY clause in a subquery and place the ROWNUM condition in the top-level query;
    'Top-N query' is a ORACLE 8i feature which is supported in SQL. However,
    Bug:855720 states the following:
    "PL/SQL does not support top-N queries (ORDER BY in SUBSELECT/SUBQUERY
    or VIEW. Since this feature is available in SQL, but not in PL/SQL,
    it has been logged as a Bug that will be fixed in 8.1.6."
    - Pavan Kumar N

  • WebI Report using BW Query (Getting Error for User Response Function)

    Hello Experts,
    I have created WebI Report on top of BW query. All the prompts are coming from BW query. I was trying to create user response function but it's not working. Do I need to use special function or I can't use.
    Any help would be highly appreciated.
    Thanks
    Nisniki

    hi Nisniki,
    take a look here:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0a45246-ce76-2b10-e688-f5c8206203eb
    Ingo

  • End of file / parsing error for EDI document

    I have an issue where a Trading partner is sending extra non readable characters after the last segment terminator in a X12 EDI document. I know there is a property to strip the CR/LF characters and that does not help me.
    Do I have any other options for preprocessing in B2B ?

    Hi,
    Try using the property oracle.tip.adapter.b2b.edi.enablePreprocess=true in the tip.properties file.
    ALso could you please let me know the property which removes CRF/LF characters from the input file to B2B.
    Thanks for your help.
    Regards,
    Dibya

  • Seeing parse errors increment with KAL-AP

    Client I am doing work for as two pair of ACE 4710 appliances.  On the pair I am trying to put into production, I am seeing a large number of parse errors for the kal-ap stats.  I am not sure what these mean.  When the ACE is put into production, their main website starts having issues.
    Ideas would be appreciated.
    TIA.
    Dan

    Dan-
    Can you share all the technical details?  If its a shared kal-ap keepalive, be sure to use hash on the GSS, and also point the communication to the ACE vlan ip, not the vip or alias.
    Chris

  • Xml parsing error while selecting whole result set for sql query

    Hi All,
    I am having xml parsing error while selecting whole query result set. The data is coming fine for default result set of 50 rows.
    My exception is below.
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00234: namespace prefix "xsi" is not declared
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    *31011. 00000 - "XML parsing failed"*
    **Cause: XML parser returned an error while trying to parse the document.*
    **Action: Check if the document to be parsed is valid.*
    My sql query is below that is giving results for default result set of 50 rows.
    select extract(xmlType(clob_xml_colm_name), '//v2:node1//childnode/text()','xmlns:v2="namespace_url"').getStringVal()  from table_name
    My sql developer version is below.
    Java(TM) Platform     1.7.0_04
    Oracle IDE     3.1.07.42
    Versioning Support     3.1.07.42
    My database version is below.
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit
    Please could any one help me urgently as the sql query is supposed to be correct as it is returning query results, but the problem happening when i try to select whole result set.
    Thanks and regards,

    What does the XML look like? It appears that some of the supposed XML stored as a CLOB is not really valid XML. Find the row in the table that is causing your issue and review the "XML" in it.

  • Creating chart leads in XML Parsing Error: mismatched tag. Expected: /svg

    Hello ALL,
    I searched this forum but unfortunately I find not a solution for the following use case:
    described in steps
    1.) create a region with chart (typ = line) -> o.k.
    2.) create a sql statement to have data in the chart -> o.k.
    3.) running report with this created region and chart -> vizualisation o.k.
    3.) create a data picker item ":P21_END_DATE"
    4.) replaced the where clause "WHERE a_timestamp >= To_date ('01.02.2007', 'dd/mm/yyyy HH24:MI') -1/24" with WHERE a_timestamp >= To_date (:P21_END_DATE, 'dd/mm/yyyy HH24:MI') -1/24
    5.) running report with this created region and chart and data picker item -> vizualisation not o.k. I get the attached error message.
    I read already in the forum and knows that the end tag of the svg section is lost put I only changed in my query the described value. Does any body can help me please ??
    king regards
    XML Parsing Error: mismatched tag. Expected: </svg>.
    Location: http://localhost:7777/pls/htmldb/f?p=103:9:8795066316806762442:FLOW_SVG_CHART_R2476324075306576_de
    Line Number 22, Column 1455:</style><script xlink:href="/i/javascript/svg_js_includes/svg_common/oracle.svgInit.js"/><script xlink:href="/i/javascript/svg_js_includes/svg_common/oracle.svgNodes.js"/><script type="text/ecmascript"><![CDATA[function svgSync(){window.reload();}function htmldb_Load(){try{oracleSvgInit(evt);throw "old version" }catch(er){}}]]></script><rect id="background" x="1" y="1" width="1022" height="398"/><text x="20" y="20" class="title">Chart 1</text><text id="XAxisTitle" x="50%" y="390">Minute</text><text id="YAxisTitle" x="15" style="writing-mode:lr;" y="200" transform="rotate(-90,15,200)" text-anchor="middle">Messages</text><g id="legend" transform="translate(0,25)"><rect class="legend" x="1" y="0" width="1022" height="60"/><g class="legenditem" transform="translate(20,18)"><line x1="0" y1="-5" x2="-15" y2="-5" class="data1"/><text class="legend" y="0" x="2">ALL</text></g><g class="legenditem" transform="translate(20,36)"><line x1="0" y1="-5" x2="-15" y2="-5" class="data2"/><text class="legend" y="0" x="2">SMS</text></g><g class="legenditem" transform="translate(20,54)"><line x1="0" y1="-5" x2="-15" y2="-5" class="data3"/><text class="legend" y="0" x="2">LL</text></g></g><svg width="1024" height="400" viewBox="-5 -5 1024 400" preserveAspectRatio="none"> <text class="nodatafound" x="40" y="20">No data found.</text><text class="nodatafound" x="40" y="20">no data found</text><text class="nodatafound" x="40" y="20">no data found</text></g></svg><g id="infobubble" transform="translate(0,0)" style="visibility:hidden"><rect id="infobackground" rx="2" ry="2" x="0" y="0" width="100" height="20" fill-opacity=".9" fill="#FFFFFF" stroke="#000000" stroke-width="1"/><text id="infotext" x="5" y="12">-</text></g><!-- USER FOOTER--></svg>
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^

    I found the solution:
    No data resulting to the query !!

  • Parsing Error when using query builder

    I have a query with a subquery in the WHERE statement witn multiple fields listed in the select statement.
    For example, the subquery starts with "AND (center, jobid) IN SELECT center, jobid FROM ........
    The query runs fine and gives me the correct data
    However when I click on the Query builder option, I receive the following error
    "Text is not a valid, single SELECT statement.
    Parsing error:
    Failed to parse SQL query.
    Invalid Select Statement.
    Unexpected token "from" at line13, pos 1.
    Query Builder Disabled
    I believe this to be a problem with the query builder, Am I correct?

    Query Builder is a visual environment targeted at novice/intermediate users. Some advanced and/or hard to visualize language features are not supported. The improved error messaging coming in 3.1 would indicate this is 'unsupported' rather than 'not a valid, single SELECT statement.' For example, (using scott/tiger):
    Text contains unsupported syntax.
    Parsing error:
    Failed to parse SQL query.
    Invalid SELECT statement.
    Unexpected token "," at line 4, pos 16.
    Query Builder disabled.
    select distinct d.dname
    from dept d, emp e
    where d.deptno = e.deptno
      and (e.deptno, e.job) in
    (select x.deptno, x.job
    from emp x
    where x.deptno > 10
       and x.job NOT IN ('MANAGER', 'PRESIDENT')
    I don't know what your real query is, but refactoring to use join on derived table or table expression (or, as Gary said, separate IN clauses) rather than '(a, b) IN' will allow Query Builder to display it.
    derived table: select distinct d.dname
    from dept d, emp e,
    (select x.deptno, x.job
    from emp x
    where x.deptno > 10
       and x.job NOT IN ('MANAGER', 'PRESIDENT')
    ) filter
    where d.deptno = e.deptno
      and e.deptno = filter.deptno
      and e.job = filter.job
    table expression: with filter as (select x.deptno, x.job
    from emp x
    where x.deptno > 10
       and x.job NOT IN ('MANAGER', 'PRESIDENT')
    select distinct d.dname
    from dept d, emp e, filter
    where d.deptno = e.deptno
      and e.deptno = filter.deptno
      and e.job = filter.jobBrian Jeffries
    SQL Developer Team

  • Bug report for Query Parser in VIEW Creator

    Hi,
    when you try to create a view with KEEP(DENSE_RANK... like in this example:
    SELECT   MIN(chr) KEEP(DENSE_RANK LAST
    ORDER BY lvl) AS min_chr
         FROM
        ( SELECT TRUNC((level + 1) / 2) AS lvl, chr(level + 64) AS chr FROM dual CONNECT BY level <= 26
        ) xthe parser shows a parsing error ("Failed to parse SQL query. Invalid SELECT Statement. Unexpected token "(" at line 1, pos 24").
    I'm on 3.1.4.710 under Win7 and latest Java6.
    Best regards,
    Blama

    Hello,
    I can confirm that my query (1st post in this thread) is working under DM 3.3.0.747.
    I can confirm that this query is working as well in Query Builder->Paste SELECT->Update diagram:
    WITH x AS
      (SELECT TRUNC((Level + 1) / 2) AS lvl,
        CHR(Level          + 64)     AS lvl_char
      FROM DUAL
        CONNECT BY Level <= 26
    SELECT RANK() OVER (PARTITION BY x.lvl ORDER BY x.lvl_char DESC) dr FROM x;
    But this one is not working for me:
    WITH x
         AS (    SELECT TRUNC ( (LEVEL + 1) / 2) AS lvl, CHR (LEVEL + 64) AS lvl_char
                   FROM DUAL
             CONNECT BY LEVEL <= 26)
    SELECT DENSE_RANK () OVER (PARTITION BY lvl ORDER BY lvl_char DESC) dr
      FROM x;
    Interestingly "DENSERANK()" without the underscore (or any other gibberish) is working as well (but leading to an syntax error when executing the DDL).
    Best regards,
    Blama

  • DRG-50901: text query parser syntax error

    The query
    SELECT * FROM ij
    where
    CONTAINS (ij.summary, 'ATTENZIONE!') > 0 returns an error:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-50901: text query parser syntax error on line 1, column 13
    Why?
    There is a TEXT index on the summary column:
    CREATE INDEX IJL_SUMMARY_IX ON IJ
    (SUMMARY)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('
        lexer           MITO_LEXER
        wordlist        DEFAULT_WORDLIST
        stoplist        IJL_STOPLIST
        storage         IJL_TEXT_STORAGE
        SYNC (EVERY "SYSDATE + 10/1440")')
    PARALLEL ( DEGREE 4 INSTANCES 1 );where the MITO_LEXER is
    BEGIN
    CTX_DDL.create_preference ('mito_lexer', 'BASIC_LEXER');
    CTX_DDL.set_attribute ('mito_lexer', 'INDEX_STEMS', 'ITALIAN');
    -- MITO-318: search on Text Index for Asterisks
    CTX_DDL.set_attribute ('mito_lexer', 'printjoins', '*');
    END;
    /

    Because the exclamation mark ("!") is a reserved operator, meaning soundex, and must appear before the word it applies to.

  • SSRS Error : Query execution failed for dataset 'dataSet'. (rsErrorExecutingCommand) Semantic query execution failed. Invalid object name 'RPT.*********'. (rsSemanticQueryEngineError)

    I am new to SSRS and I am trying to migrate reports from 2008 to 2012. As I have so many reports to migrate, I simply got the back up of ReportServer,
    ReportServerTempDB, and Encryption Key and restored them to test environment. I made necessary configuration from RS configuration tool. I am able to see the reports now when I browse //hostname/reports. But when I open any particular report I am getting some
    error.
    · An error has occurred during report processing.
    (rsProcessingAborted)
    Query execution       failed for dataset 'dataSet'.
          (rsErrorExecutingCommand
    Semantic query        execution failed. Invalid object name
           'RPT. ******'. (rsSemanticQueryEngineError)
    ****** - I am assuming this is a custom data class.
    Does anyone have insight on this? or any better way that I can migrate the reports to new server with less efforts.
    I don’t have the reports solution file to deploy the reports, so I have followed backup and restore process.

    Hi Kishore237,
    According to your description, you migrated some reports from Reporting Services (SSRS) 2008 to 2012. Now you get error when accessing the reports on SSRS 2012. Right?
    In this scenario, did you modify the report data source in database after migration? You can try to open the report in Report Builder or Report designer and check the report dataset. If you can preview the report in Report builder or Report designer,
    please try to redeploy the report to Report Server. If it is still not working, please try to restore the database from backup. And for migrating reports, please follow the "Content-Only Migration" in the link below:
    http://msdn.microsoft.com/en-us/library/ms143724(v=sql.110).aspx
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

Maybe you are looking for

  • Testing HTTP Receiver adapter.

    Hi Everyone, Would anyone Please provide the sample details required for testing the HTTP Receiver adapter to check its fuctionality and the required output. Any Help would be appreciated. Regards, Varun

  • Which is the best Oracle certification for a programmer

    Hi, I have been doing web development in java for about 2 years now. I already have a Bachelors of Science in Computer Science but I want to stay competitive and am considering an Oracle Certification. The problem is that I am having trouble deciding

  • Two diffetent chart types in one chart

    Hi Can anyone tell me how i put a line and bars in one single chart? Regards. Oliver

  • Updating from OS X 10.2.8 - System won't recognize password

    I recently updated to OS X 10.5.6 directly from 10.2.8. The clerk at the Apple store didn't think that there would be a problem make this large of a leap, but after installing and rebooting, my system would not recognize my existing password. I was a

  • Error in parsing text and splitting it

    Hi all Recently, i recieved some help with regards to splitting up a string into sentences. The following code returns the error message: "LJava.lang.String;@18fe73". Can any one tell me why and how i can resolve this? Many many thanks in advance. i