Help - SVG Line Chart - ORA-20001 line_chart error Parse error ORA-00911

Gurus,
Need help.
I am trying to plat multiple series in a SVG line chart but am repeatedly getting line_chart error eventhough SQL queries work perfectly in sql workshop/sqlplus etc. How do I get past this error.
Sample queries I am using to plot line chart are
select link, col1, value from (select null link, col1, col2 value from xy);
select link, col1, value from (select null link, col1, col3 value from xy);
xy is a table with three number columns col1, col2 & col3.
Thanks in advance

Try taking the semicolon ";" off the end of the SELECT statements.
Mike

Similar Messages

  • SVG line chart raises ORA-20001 witha valid SQL query

    Hi,
    I am on version 1.6 & 10g database. I developed an SVG line chart which was working fine, but I wanted to fill in some sparse data by using data densification. So I enhanced my query with a partitioned outer join as follows:
    select null l, month_start, issue_count
    from
    (with dates as
    (select add_months
    ( to_date( '01-jul-2004' ),
    column_value-1) dt
    from table( vtable(12) )),
    iss as
    (select trunc(start_date, 'MON') mon , count(*) cnt
    from issues
    group by trunc(start_date, 'MON'))
    select dates.dt month_start, NVL(iss.cnt, 0) issue_count
    from dates left outer join iss on (dt=mon)
    Now the chart throws an ORA-20001 get_data error. The query is valid as it runs in SQL*plus no problems. What is it choking on?
    Thanks,
    Steve

    Steve,
    I didn't mean for you to put in on the Studio, just install the app in your workspace on htmldb.oracle.com, use SQL Workshop there to compile your procedures, tell us the app ID, and that's it.
    The error message presentation needs some improvement, give us time. We're spending most of our energy on improving the capability of the product.
    Scott

  • "no data found" in SVG Line Chart

    Hello,
    I have a problem with a SVG Line Chart!
    I have multiple series in the Line Chart, which data is based on multiple select lists.
    When I leave one select list blank, so that one line has no data, the "no data found" statement appears in the Chart.
    But when I delete the "no data found" statement in the Series Attributes it would not be deleted. Nevertheless when I open the Series Attributes again the message is still there....
    Does anybody have an idea how I van delete the "No Data found Message"???
    Thanks,
    Tim

    Chris and Cristoph -
    I have found that many times errors like this are caused by SQL statements that don't really address the business need or the requirements for the chart. Let me use a simple example:
    SELECT d.dept_name  dept_name,
           sum(s.sales_total)  sales_total
    FROM orders o, depts d
    WHERE o.dept_id = d.dept_id
      AND o.time_frame = 'Q1'
    GROUP BY dept_nameSeems simple enough. But what if this statement is run early during the Q1 timeframe and one dept hasn't made any sales yet? Well, they won't show up in the output of this statement. From a business perspective, you will want that dept to show on the report with a zero total sales. You don't want them excluded from the report. So how do we fix this?
    There are several options.
    One dirty way of solving this is putting in a dummy record for each dept into the orders table with a 0 sales_total value for each time unit. YUK! That has wrong written all over it!
    We could use a different type of join. And then use NVL or a Case or IF statement to turn Null Values into 0.
    SELECT d.dept_name dept_name,
           sum(nvl(s.sales_total,0))  sales_total
    FROM  orders o RIGHT JOIN dept d ON d.dept_id = o.dept_id
    WHERE o.time_frame = 'Q1'
    GROUP BY dept_nameWe could also square our data sets and summarize with an inner select
    SELECT dept_name dept_name,
           sum(sales_total) sales_total
    FROM (
      SELECT d.dept_name ,
             sum(s.sales_total)  sales_total
      FROM orders o, dept d
      WHERE o.dept_id = d.dept_id
        AND o.time_frame = 'Q1'
      GROUP BY dept_name
      UNION ALL
      SELECT DISTINCT dept_name ,
             0 sales_total
      FROM dept
    GROUP BY dept_nameThe final result is that every dept has a value. That is the key. This is how the chart expects the data and this is probably how your business expects the data.
    Austin

  • Transforming XML data into SVG line charts using XSLT

    Hi
    I am trying to transform revenue data from an XML file into an SVG line chart. The problem is that I am quite new to XPath and XSLT and whereas I can draw the grid for my chart I struggle drawing the lines using the data from the XML doc.
    The XML look something like the one below, and I would like to have one chart for each product and in each chart having the time on the x-axis and chart the revenue by regions.
    Any help on this is much appreciated.
    Thanks
    Peter
    <?xml version="1.0"?>
    <revenue>
    <caption>
    <heading>My title</heading>
    </caption>
    <date name="01/01/2003">
    <region name="Asia">
    <product_a>30</product_a>
    <product_b>12</product_b>
    <product_c>301</product_c>
    </region>
    </date>
    <date name="02/01/2003">
    <region name="Asia">
    <product_a>32</product_a>
    <product_b>12</product_b>
    <product_c>301</product_c>
    </region>
    <region name="America">
    <product_a>57</product_a>
    <product_b>31</product_b>
    <product_c>457</product_c>
    </region>
    </date>
    <date name="03/01/2003">
    <region name="Asia">
    <product_a>38</product_a>
    <product_b>12</product_b>
    <product_c>301</product_c>
    </region>
    <region name="America">
    <product_a>31</product_a>
    <product_b>9</product_b>
    <product_c>357</product_c>
    </region>
    </date>
    <date name="04/01/2003">
    <region name="Asia">
    <product_a>33</product_a>
    <product_b>12</product_b>
    <product_c>301</product_c>
    </region>
    <region name="America">
    <product_a>43</product_a>
    <product_b>16</product_b>
    <product_c>430</product_c>
    </region>
    </date>
    <date name="05/01/2003">
    <region name="Asia">
    <product_a>36</product_a>
    <product_b>12</product_b>
    <product_c>301</product_c>
    </region>
    <region name="America">
    <product_a>54</product_a>
    <product_b>1</product_b>
    <product_c>561</product_c>
    </region>
    </date>
    </revenue>

    You could try Jeni's XSLT utilities for SVG :
    http://www.jenitennison.com/xslt/utilities/svg-utils.html
    Specifically, the sample code provided, when a couple of SVG charts are being generated from XML data :
    http://www.jenitennison.com/xslt/utilities/svg-example.html
    Hope that helps.

  • Transforming XML data into SVG line charts

    Hi
    I am trying to transform revenue data from an XML file into an SVG line chart. The problem is that I am quite new to XPath and XSLT and whereas I can draw the grid for my chart I struggle drawing the lines using the data from the XML doc.
    The XML look something like the one below, and I would like to have one chart for each product and in each chart having the time on the x-axis and chart the revenue by regions.
    Any help on this is much appreciated.
    Thanks
    Peter
    <?xml version="1.0"?>
    <revenue>
    <caption>
    <heading>My title</heading>
    </caption>
    <date name="01/01/2003">
    <region name="Asia">
    <product_a>30</product_a>
    <product_b>12</product_b>
    <product_c>301</product_c>
    </region>
    </date>
    <date name="02/01/2003">
    <region name="Asia">
    <product_a>32</product_a>
    <product_b>12</product_b>
    <product_c>301</product_c>
    </region>
    <region name="America">
    <product_a>57</product_a>
    <product_b>31</product_b>
    <product_c>457</product_c>
    </region>
    </date>
    <date name="03/01/2003">
    <region name="Asia">
    <product_a>38</product_a>
    <product_b>12</product_b>Long postings are being truncated to ~1 kB at this time.

    Instead of using SVG charting can I suggest that you look into digital charts. This service creates charts on the fly and is very easy to integrate with web applications.
    Christopher
    www.billboard.net

  • Problems with SVG line charts based on PL/SQL returning SQL

    Dear all - I wonder if anyone can tell me whether this problem is likely to be fixed at some point?
    It relates to the fact that you can't get more than one series on a chart where the SQL is returned from PL/SQL.
    It is a huge issue for us when trying to create complex, dynamic charts, which are simple enough in PL/SQL, but end up quite nightmarish in pure SQL.
    Although we have implemented Maani SWF (Flash) charts as a workaround, users don't like them as there's no 'save as...' or copy+paste and they seem to print very badly indeed.
    Here's part of a post from last May with more detail:
    "If I take a really simple table like this:
    CREATE TABLE "CHART_TEST"
    ( "X" DATE NOT NULL ENABLE,
    "Y" NUMBER(5,0) NOT NULL ENABLE,
    CONSTRAINT "CHART_TEST_PK" PRIMARY KEY ("X") ENABLE
    and populate it with:
    X Y
    2006-01-01T00:00:00 1
    2006-02-01T00:00:00 2
    2006-03-01T00:00:00 3
    2006-04-01T00:00:00 4
    2006-05-01T00:00:00 5
    2006-06-01T00:00:00 6
    2006-07-01T00:00:00 7
    2006-08-01T00:00:00 8
    2006-09-01T00:00:00 9
    2006-10-01T00:00:00 10
    I can create a chart with a single series using syntax something like:
    begin
    return 'select null link, x label, y value
    from chart_test';
    end;
    and this works fine. However, if I add a second series:
    begin
    return 'select null link, x label, (y + 1) value
    from chart_test';
    end;
    then the whole of the chart region blanks out.
    There's an example at:
    http://htmldb.oracle.com/pls/otn/f?p=15491:1"
    Many thanks,
    John.

    On some, but not all SVG line charts, I had trouble when some values are ZERO.
    Putting a CASE WHEN var = 0 then 0.05 ELSE var END in the select statement
    fixed those situations.
    I had missing lines when the number of data points in a series exceeded the default number of 15, and I did not set in the series configuration to a number equal to or higher that the number of data points in that series.
    And I had one instance, where a couple missing lines reappeared when I exited
    the browser and app completely and restarted the app.
    All these comments apply to ver 1.6x and 2.0x

  • Svg line chart  problem with latest patch?

    Hi team,
    I was checking out one page containing an SVG chart that I didn't modify in 2 weeks, according to the application builder, but it seems to hang after displaying the first line series of 4 total.
    It was working before the last patch was installed.
    It's page 65 of application 21670 in the online environment.
    Choose "automobile" from the first drop down list and click on the button, the chart appears but then it seems to be waiting for something to download.
    If you move the mouse over any textual part, you can see in the status line the following message:
    "xml processing instuction not at start of external entity: line 172, column 0".
    If you open up the SVG source by right clicking on the chart, you will see at the end of the file an error text message returned by oracle (ORA-06502), but what is particularly strange is the presence of an <?xml> processing instruction just in the middle of the source code listing.
    It looks like it is trying to append the second chart series by appending another svg source file.
    Could you check if I did anything wrong or if it is a problem of the patch?
    I have got other chart type running without problems.
    Thanks!
    Bye,
    Flavio

    Things are getting complicated.
    I found some cases where the chart is displayed correctly, which made me think of some unexpected values returned by the underlying queries.
    Since my chart is made up of 4 different series returning 12 points each, I assembled the queries with UNION ALL and checked out what was returned both in a failing case and a successful one but I can't figure out a valid explanation, the only thing I notice is that in the failing case there are some values higher than average, say 10 times bigger than the average value and for some reason the chart stops drawing points exactly after the peak value (1155.62, see below).
    Each series returns exactly 12 points, some nulls, but that's doesn't seem to be the problem.
    I wonder if the problem is with the "autoscale" algorithm, but I am lost at the moment...
    Here is a successful data sample:
    - APRIL -
    - APRIL 119.57125
    - APRIL -
    - APRIL -
    - AUGUST 160.5
    - AUGUST 157.53
    - AUGUST 157.53
    - AUGUST 119.57125
    - DECEMBER -
    - DECEMBER 119.57125
    - DECEMBER 113.67
    - DECEMBER 131.214
    - FEBRUARY 104
    - FEBRUARY 119.57125
    - FEBRUARY 126.418333333333333333333333333333333333
    - FEBRUARY 125
    - JANUARY 153
    - JANUARY 119.57125
    - JANUARY 134.845
    - JANUARY 145
    - JULY 154.56
    - JULY 119.57125
    - JULY 154.56
    - JULY 154.56
    - JUNE -
    - JUNE -
    - JUNE -
    - JUNE 119.57125
    - MARCH 43.5
    - MARCH 119.57125
    - MARCH 106.918333333333333333333333333333333333
    - MARCH 100.166666666666666666666666666666666667
    - MAY -
    - MAY 119.57125
    - MAY -
    - MAY -
    - NOVEMBER 118
    - NOVEMBER 131.214
    - NOVEMBER 125.3775
    - NOVEMBER 119.57125
    - OCTOBER 164
    - OCTOBER 119.57125
    - OCTOBER 134.5175
    - OCTOBER 134.5175
    - SEPTEMBER 59.01
    - SEPTEMBER 119.57125
    - SEPTEMBER 124.69
    - SEPTEMBER 124.69
    and now an offending one:
    - APRIL -
    - APRIL 287.743333333333333333333333333333333333
    - APRIL -
    - APRIL -
    - AUGUST 1155.62
    - AUGUST 655.09
    - AUGUST 655.09
    - AUGUST 287.743333333333333333333333333333333333
    - DECEMBER 135
    - DECEMBER 287.743333333333333333333333333333333333
    - DECEMBER 197.2525
    - DECEMBER 349.865
    - FEBRUARY 114
    - FEBRUARY 287.743333333333333333333333333333333333
    - FEBRUARY 315.947142857142857142857142857142857143
    - FEBRUARY 130
    - JANUARY 153
    - JANUARY 287.743333333333333333333333333333333333
    - JANUARY 321.741428571428571428571428571428571429
    - JANUARY 190
    - JULY 154.56
    - JULY 287.743333333333333333333333333333333333
    - JULY 154.56
    - JULY 154.56
    - JUNE -
    - JUNE -
    - JUNE -
    - JUNE 287.743333333333333333333333333333333333
    - MARCH 223.5
    - MARCH 287.743333333333333333333333333333333333
    - MARCH 182.787142857142857142857142857142857143
    - MARCH 156.375
    - MAY -
    - MAY 287.743333333333333333333333333333333333
    - MAY -
    - MAY -
    - NOVEMBER 118
    - NOVEMBER 392.838
    - NOVEMBER 452.4075
    - NOVEMBER 287.743333333333333333333333333333333333
    - OCTOBER 354
    - OCTOBER 287.743333333333333333333333333333333333
    - OCTOBER 461.5475
    - OCTOBER 461.5475
    - SEPTEMBER 182.01
    - SEPTEMBER 287.743333333333333333333333333333333333
    - SEPTEMBER 497.396666666666666666666666666666666667
    - SEPTEMBER 497.396666666666666666666666666666666667
    Weird, isn'it?
    Bye,
    Flavio

  • Line chart error

    Created a line chart with two series as follows:
    Query for series 1
    select null, period_no, valuex
    (select null, period_no, avg(actual) valuex
    from kpi_performance
    group by period_by
    order by period_by)
    Query for series 2
    select null, period_no, valuex
    (select null, period_no, avg(forecast) valuex
    from kpi_performance
    group by period_by
    order by period_by)
    When the page is executed the following error is displayed:
    "SVG chart error: ORA-20001: line_chart error: ORA-20001: get_data error:ORA-20001: Parse error: ORA-00936: missing expression"
    I think this is related to the use of "group by" and "order by" in the queries but cannot find a workaround.
    Any ideas ?
    Thanks
    Vincent

    I believe that the problem may be the ORDER BY. I believe that you cannot have an ORDER BY clause in a series.

  • Grid lines on line chart

    Hi,
    I have got a SVG line chart. Even though I disable the grid lines in the SVG chart attributes, the grid lines still show up.
    The values I am getting in the line chart varies from 0.01 to 2.00.
    Can anobody help me to make the grid lines go away??
    Thanks,
    Swaroop

    Hi,
    Has anybody else got the same problem? Do you know a work around??
    Please help!!!!
    -Swaroop

  • How to convert from line chart data to CSV format

    Hi ,
    I am using Flex 3 and AS.
    I am getting data from MS SQL and display the data as line
    chart this is ok.
    But i want to convert this line chart data to CSV or .xsl
    format.I find one example in fourms the from data grid to CSV
    For this URL is
    http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/datagriddataexporter.php
    But i want Line chart to CSV.Please help me.

    Line chart is a just a visual representation of some data
    that's sitting in your database. Isn't it? You load this in Flex,
    probably using HTTPService class, and pass it to some chart object.
    Now when use says that she needs it in CSV format, you're
    gonna have to send another request to the server to produce the
    same data, convert into CSV or XLS format and let user download it.
    Of course, if use doesn't want to download, you don't have to
    go to the server, at least for CSV format. You can convert the same
    data that used plot the chart to convert to CSV.
    Am I missing something here?
    ATTA

  • Line Chart with more than 15 datapoints

    I'm using Apex 3.1.
    I am trying to create a line chart with more than 15 data points. Apparently 15 is the default. Question is, How do I change the default?
    The Wiki has advice for changing the "Maximum Rows" parameter, but "Maximum Rows" is not to be found, either in the chart attributes or series attributes.
    http://wiki.shellprompt.net/bin/view/Apex/ChartIssues
    I have encountered this limitation with SVG line charts and Flash line and scatter charts. Seems like it must be an easy thing to figure out; I feel embarassed asking such a question. But I've been through all the application property pages, much of the documentation, and several tutorials... Where can I change this? It's driving me nuts!
    Thanks
    Fred

    Hello,
    Which version of APEX are you using?
    Go to your Flash Chart attributes - get into your series (click the icon) in the section of Series Query you'll find the maximum rows.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://apex-evangelists.com/
    -- http://apexblogs.info/

  • Data Disappears from Line Chart in Preview Mode

    Help! Line chart data present in design mode, but disappears when in preview mode.  I have a dashboard that I update monthly.  Simple line charts.  Now, the line chart data is visible while in the design view, but does not show up when in the preview view or even when converting it to a PDF or Powerpoint.  SWF issue?  Inputs are needed!
    Thanks,
    Stan

    Hi Stan,
    The answer to, why the data disappears in runtime mode, depends on how you retrieve the data in your dashboard.
    It seems that you have some sample static data in your spreadsheet that shown in design mode. But chances are that this data is set to be overwritten in runtime mode, if you import your data using QAAWS, Live Office or similar.
    I would suggest you to add a "spreadsheet table" component (found in the bottom of the Selectors category in the components browser) to your dashboard. Set the spreadsheet table to display some of the cells in the spreadsheet that you expect to get populated during runtime.
    In this way you can verify if data is actually present in the relevant cells during runtime.
    By the way - this is also a best practice method to test data-retrieval in Xcelsius.
    I hope this helps.
    Kind Regards,
    Simon

  • SVG multiline chart based on PL/SQL function

    Dear all -
    Having trawled this forum and with a fair bit of experimentation I've concluded that:
    1. Generating an SVG line series using a PL/SQL function returning a SQL statement is perfectly possible;
    BUT
    2. It only works for a single series. Adding further series blanks out the SVG chart area and nothing at all is displayed.
    Can anyone tell me if this is right or am I missing a trick? The usual problems such as ordering, nulls etc. don't apply in this case.
    Thanks for your time.
    John.

    On some, but not all SVG line charts, I had trouble when some values are ZERO.
    Putting a CASE WHEN var = 0 then 0.05 ELSE var END in the select statement
    fixed those situations.
    I had missing lines when the number of data points in a series exceeded the default number of 15, and I did not set in the series configuration to a number equal to or higher that the number of data points in that series.
    And I had one instance, where a couple missing lines reappeared when I exited
    the browser and app completely and restarted the app.
    All these comments apply to ver 1.6x and 2.0x

  • ORA-00911: invalid character using multiple select statements

    I am getting an ORA-00911: invalid character error when trying to execute 2 select statements using ODP.NET.
    cmd.CommandText = "select sysdate from dual;select sysdate from dual;";
    cmd.Connection = conn;
    cmd.CommandType = System.Data.CommandType.Text;
    conn.Open();
    OracleDataReader dr = cmd.ExecuteReader();
    This works in SQL server but for some reason it appears this does not work in Oracle?
    If this is the case what is a vaiable workaround? Wrapping the 2 statements in a transaction?
    Seems strange that you can't return multiple result sets using in-line sql statements.

    Oracle doesn't support passing multiple statements like that, and this is unrelated to ODP.NET.
    SQL> select * from emp;select * from dept;
    select * from emp;select * from dept
    ERROR at line 1:
    ORA-00911: invalid character
    You could do it via an anonymous block and ref cursors though if you dont want to do it via a stored procedure..
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    public class test
    public static void Main()
        using (OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger;"))
            con.Open();
            string strSql = "begin open :refcur1 for select * from emp;" +
                "open :refcur2 for select * from dept;" +
                "open :refcur3 for select * from salgrade;end;";
            using (OracleCommand cmd = new OracleCommand(strSql, con))
                cmd.Parameters.Add("refcur1", OracleDbType.RefCursor, ParameterDirection.Output);
                cmd.Parameters.Add("refcur2", OracleDbType.RefCursor, ParameterDirection.Output);
                cmd.Parameters.Add("refcur3", OracleDbType.RefCursor, ParameterDirection.Output);
                OracleDataAdapter da = new OracleDataAdapter(cmd);
                DataSet ds = new DataSet();
                da.Fill(ds);
                cmd.Parameters["refcur1"].Dispose();
                cmd.Parameters["refcur2"].Dispose();
                cmd.Parameters["refcur3"].Dispose();
                foreach (DataTable dt in ds.Tables)
                    Console.WriteLine("\nProcessing {0} resultset...", dt.ToString());
                    foreach (DataRow row in dt.Rows)
                        Console.WriteLine("column 1: {0}", row[0]);
    }Hope it helps,
    Greg

  • ORA-00911 w/create table

    I'm trying to execute an SQL file with the following code:
    create table "t_ap_xml"
    "XML_ID" NUMBER,
    "XML_NAME" VARCHAR2(128),
    "XML_TYPE" VARCHAR(32),
    "XML_CONTENT" "SYS"."XML_TYPE",
    "XML_DESCRIPTION" VARCHAR2(4000)
    ..And i'm receiving the following error:
    ERROR at line 8:
    ORA-00911: invalid character
    It is pointing to the semicolon as the problem. If i remove the semicolon, it seems to work. But if I place that code in a DDL with other create table commands, it gives me a ORA-00922 error at the line with the next create statement. Any ideas? Thanks.

    I guess I should have been a bit more clear..
    I am using SQL*Plus, and GET-ing a text .sql file made in a text editor.
    It seems to work without the semicolon and only creating that single table. However, a problem occurs when trying to use multiple CREATE TABLE statements in the same sql file.
    So for example.. here is an excerpt:
    create table t_ap_xml
    create table another_table
    Generates the following error:
    ORA-00922: missing or invalid option
    ..That error occurs on the line in which the second CREATE TABLE statement was issued.
    Thanks for any help!

Maybe you are looking for