SVG Chart Query 'Length'

Hi,
I cause the following error to be raised when trying to save (Apply Changes) the query for an SVG chart:
ORA-20001: set_attribute error: ORA-01461: can bind a LONG value only for insert into a LONG column
The query just got 'longer' which prompts the question:
Is there an upper limit to the length (number of characters) of the query ?
Thanks for all and any help,
sinclair

I cannot answer your direct question, but if your SELECT statement is hard-coded and not generated from PL/SQL, I can offer a possible work around. You could create a database VIEW using your SELECT statement and query the view in your SVG chart.
Mike

Similar Messages

  • Unable to edit wizard created SVG chart query

    Hi,
    I have a problem with an SVG chart that one of the HTML DB wizards created.
    On the generated page the wizard created a selection list item named P30_SHOW.
    This item allows to choose a table column based on which an SVG pie chart is generated.
    The automatically generated chart query is:
    select 'f?p=106:26:&SESSION.:::RP,26:P26_CHART_FILTER,P26_VALUE:'||:P30_SHOW||','||"&P30_SHOW.",
    "&P30_SHOW.", count(*)
    from "TESTTABLE"
    group by 'f?p=106:26:&SESSION.:::RP,26:P26_CHART_FILTER,P26_VALUE:'||:P30_SHOW||','||"&P30_SHOW.",
    "&P30_SHOW."
    The page with selection list and chart worked fine at first.
    But then, when I edited the chart's width on the respective 'SVG Chart Attributes' tab and pressed
    the 'Apply Changes' button I got the following error:
    'Query cannot be parsed, please check the syntax of your query. (ORA-01741: illegal zero-length identifier)'
    I only changed the chart's width, I did not touch the chart's query at all.
    My theory is that HTML DB tries to validate the correctness of the chart's query.
    However, the query references a session variable (P30_SHOW) that is
    not defined in my development session. Consequently, the query is not valid in the
    development context and is refused by HTML DB.
    Now I have two questions:
    1. Is my analysis correct, or are there different reasons for the error I do encounter?
    2. How can I get around the problem? I'd like to use the automatically generated charts,
    but also want to be able to edit them.
    Thanks in advance for helpful comments.
    Regards Holger

    Scott,
    I imported the application using the import/install process. A new application ID was created but was not changed in the chart query. The link was generated by the application wizard. The chart query link is below:
    select 'f?p=103:2:&SESSION.:::RP,2:P2_CHART_FILTER,P2_VALUE:'||:P6_SHOW||','||"&P6_SHOW.", "&P6_SHOW.", count(*)
    from "O_DATA_COLLECTION_POINTS"
    group by 'f?p=103:2:&SESSION.:::RP,2:P2_CHART_FILTER,P2_VALUE:'||:P6_SHOW||','||"&P6_SHOW.", "&P6_SHOW."
    The new application id is 101. It is impossible to modify this query because of message:
    "1 error has occurred
    Query cannot be parsed, please check the syntax of your query. (ORA-01741: illegal zero-length identifier"
    This happens even if nothing is changed in the query but just the apply changes button is pressed.
    I had a similar problem with the breadcrumbs menu. The link was also pointing to the old application id 103 instead of the new application id 101. The way I got round that was to delete the breadcrumb template and create a new one. I then had to go through all the pages that referenced that and reset the breadcrumbs menu template in the region definition.
    Thanks Arjen

  • Dynamic SVG Chart Pie query

    Hi,
    I am trying to build a page that displays an SVG pie chart with the following query:
    SELECT '', "&P4_SHOW.", count(*)
    FROM "MY_TABLE"
    GROUP BY null, "&P4_SHOW."
    ORDER BY "&P4_SHOW."
    where P4_SHOW is a list of columns of the table 'MY_TABLE'.
    However, I get the following error when I try to save the chart definition:
    Query cannot be parsed, please check the syntax of your query. (ORA-01741: illegal zero-length identifier)
    Thanks for your help.

    you're unfortunately not going to be able to build your svg chart off that query in the current build of html db. to explain the issue real quickly, P4_SHOW doesn't have state while you're working in the development environment. because of that, your query's being run as something like...
    SELECT '', "", count(*)
    FROM "MY_TABLE"
    GROUP BY null, ""
    ORDER BY ""
    ...and you'll get that same "illegal zero-length identifier" in sqlplus if you try to run it there. we'll hopefully be able address this issue in a post-production release of the tool, but the best work-around for now would be for you to add multiple svg regions to your page. have one region per column of MY_TABLE and conditionally display the appropriate region based on P4_SHOW.
    hope this helps,
    raj

  • Dynamic Query in SVG Chart

    Hi,
    I have SVG Chart, Chart Type: Cluster Bar, Vertical. I have 4 Chart Series. First:
    SELECT null link, X.MESIC
    FROM [email protected]
    WHERE ..........
    I have given dynamic Chart Series Query:
    'SELECT null link, X.MESIC
    FROM '||adm||'.[email protected]
    WHERE .........."
    but Apex write error:
    1 error has occurred
    Failed to parse SQL query
    Please help as in what am i missing?

    You can either use a SQL query or a function returning SQL query as the source of your chart. Just adding some quotes to a query however doesn't make it dynamic nor a function. Try something like this:
    begin
    return 'select null, ename, sal from emp';
    end;
    Edit your existing chart source, and check "Save query without validation", so that APEX doesn't attempt to parse and validate the query when saving.
    Hope this helps,
    Marc

  • SVG chart: length of axis-labels

    Apparently there is a limitation on the length of x- or y-axis labels for a SVG chart.
    Does anybody know how to display axis labels that are larger than 15 characters? Is there something that you can do with the CSS to increase the limit?

    Hi Jan,
    not sure you are on the same as I was... but found in other thread that on the series page there is maximum rows setting defaulting to 15.
    Hope that helps.
    ta
    alberto

  • Snippet: "query" the chart history length programmatically

    Would have posted to this thread, but was concerned that the misspelled subject might keep it from being found by future searches.
    I have a brute force, inelegant, very mildliy tested workaround for programmatically determining the history length of a waveform chart.  In my app, I have a single chart on my gui that is meant to display history from any one of several duplicate test stations.  To help accomplish this, I wanted each station to have its own lossy queue whose size is equal to the chart history length.  Then, whenever the user chooses to look at a different station's data, I can simply copy the entire contents of the lossy queue over to the chart.  
    Here's how I "query" the chart history length programmatically:
    Note: Some of this feels a little dubious, but it has seemed to give correct results so far.  Specifically, several of the XScale properties seem to refer to the graphical rendering of the scale rather than an index # to the history data.   Can't guarantee this'll work for all combos of other properties -- I tested with a fairly generic, nearly straight from the box waveform chart.
    -Kevin P

    Intaris wrote:
    Hmm, any reason why you can't just do this?
    If you don't modify the Array, it's just copying a pointer, right?  Or does this operation automatically make a copy of the data and induce horrendous performance problems?
    That doesn't actually do what I need.  The "History" data array size works its way up from 0 to History Length as the app runs and data is written.  It *is* bounded, but until I fill the chart all the way up, this method won't reveal what that bound is.  I need to size up those lossy queues at the beginning of the program, before any data has been written to the chart.
    As to the other comments so far:
    - I chose charts over graphs to get some of the built-in features of charts for real time monitoring rather than having to manage them myself.  Things like zooming the X range, horizontal scrolling to show different segments of the history, that kind of thing.
    - just absorbed the followup comment about writing a dummy oversized array to the chart before running the quoted snippet above.  Yeah, that oughta work.  I just don't like the general case of not knowing how big a pre-write I need to do.  I guess it wouldn't be too bad to loop while writing the same big-but-not-crazy-big array until the History size is smaller than the # of samples written.  
      The main hitch I see in that approach is that I'd like this to be  a reusable utility vi, but a subvi that works by filling up the History would need prior knowledge of the chart datatype.  (Just thinking out loud here, overall it does kinda feel cleaner than the stuff I was doing with the scale properties.)
    FWIW, a little more testing led me to modify and simplify my snippet b/c the previous one might leave the X scale looking different on exit than it appeared originally.  Seems like a side effect of the way those properties are kinda more about the display of scale information than about actual index #'s.   Anyhow, here's v2, but hopefully someone else has a better generic v3 they can offer:
    -Kevin P

  • SVG: Chart error: ORA-20001:

    Hi,
    We are using 1.6.1.00.02 . I got a problem with SVG chart. The query returns following error:
    SVG: Chart error: ORA-20001: bar_char_error ORA-20001: get_data_error: ORA-20001 Fetch error: ORA-01782
    The column names are correct. The same query works perfectly in HTMLDB reports.
    Following is the query:
    SELECT
    TRANSACTION_dATE,
    SUM(SALES) SALES,
    SUM(COST_OF_SALE) COST_OF_SALE
    fROM HTML_SALES_REPORT_View
    WHERE transaction_date between
    '01-DEC-2004' and '31-DEC-2004'
    GROUP BY TRANSACTION_DATE
    Help will be appreciated.
    Regards,
    Hamayun

    Hi,
    you have to use the following syntax:
    SELECT link, label, value
    Example
    SELECT
    null link, TRANSACTION_dATE label,
    SUM(SALES) value ,
    fROM HTML_SALES_REPORT_View
    WHERE transaction_date between
    '01-DEC-2004' and '31-DEC-2004'
    GROUP BY TRANSACTION_DATE
    And to display your cost_of_sale data you have to add a second series like this:
    SELECT
    null link, TRANSACTION_dATE label,
    SUM(COST_OF_SALE) value
    fROM HTML_SALES_REPORT_View
    WHERE transaction_date between
    '01-DEC-2004' and '31-DEC-2004'
    GROUP BY TRANSACTION_DATE
    because you can't display two lines with just one query.
    I hope this will help.
    Regards, Jörg

  • SVG CHart error ORA-20001 with Stacked Bar Chart HTML DB 1.6.0.00.87

    Hi,
    during I put a How-To into execution (How To Create a Stacked Bar Chart) I'll get the following error code:
    SVG Chart error:ORA-20001:line_Chart error:ORA-20001:
    get_data error:ORA-20001:Parse error:ORA009
    (see http://www.oracle.com/technology/products/database/htmldb/howtos/index.html)
    This Situation occurs when i add a second series to the
    chart. The first series works fine. I've used the following SQL-Statement:
    select null l, sales_month, revenue from (select to_char(o.order_timestamp,'Mon YYYY') sales_month, sum(oi.quantity * oi.unit_price) revenue, to_date(to_char(o.order_timestamp,'Mon YYYY'),'Mon YYYY') sales_month_order from DEMO_PRODUCT_INFO p, DEMO_ORDER_ITEMS oi, DEMO_ORDERS o where o.order_timestamp <= (trunc(sysdate,'MON')-1)and o.order_timestamp > (trunc(sysdate-365,'MON'))and o.order_id = oi.order_id and oi.product_id = p.product_id and p.category = 'Audio' group by to_char(o.order_timestamp,'Mon YYYY') order by sales_month_order);
    Please help.
    Regards
    Detlev

    Well,
    I've just been struggling for a couple of hours with a cluster bar chart giving the same problem.
    The problem is definitely with "ORDER BY".
    I guess the graphing chart is taking the sql query as a string and then does some other manipulation on it which ends abnormally when you include the order by clause.
    I presume that if you embed the query in a
    SELECT * FROM (<actual query with order by>)
    it might mitigate the problem.
    Bye,
    Flavio

  • SVG Charts - x-axis

    I'm a newbie.
    I've created a 2-series line chart (thanks to someone else's query on this forum, I found out about losing the 'order by' for multiple series!). I only have 2 'X' categories at present ('quarter1' and 'quarter2') but the chart defaults to squeezing them together at the left-hand side, leaving enough room to go up to about quarter 15, but I will only ever want 4.
    Anyone know how the spread the categories across the axis?
    Thanks

    assuming you're talking about the legend when you say, "but the chart defaults to squeezing them together at the left-hand side, leaving enough room to go up to about quarter 15", then know that this is a current limitation. i'll log the enhancement request in a bit (unless we already have that one), but consider unchecking the "Show Legend" box on your SVG Chart Attributes screen and just drawing your own for now. if you were asking about something else, please do feel free to elaborate.
    regards,
    raj

  • SVG Chart Setup

    Hi everybody,
    I have I think a simple question but I don't find the issue.
    I've created a SVG Chart with 3 Series Name Query. I need to see 3 Series based on Month. My month is on 2 digit : 10 for October, 11 for November...Etc...but for this case, on my graph I see 11 before 10 on the Axis area. Could you tell me where can I make an order on my query ? I tried to add order by on my 3 query but It doesn't work and my graph is grey.
    I'm sorry for my english.
    Olivier

    Thank you for your reply, find below my 3 queries
    Series Name Query
    1.
    select null link, d.month, sum(data.nbr) Delivered
    from online_data data, online_date d
    where data.date_events = d.date_events
    and data.kpi_id = 2
    group by d.month
    2.
    select null link, d.month, sum(data.nbr) Opened
    from online_data data, online_date d
    where data.date_events = d.date_events
    and data.kpi_id = 4
    group by d.month
    3.
    select null link, d.month, sum(data.nbr) Submited
    from online_data data, online_date d
    where data.date_events = d.date_events
    and data.kpi_id = 5
    group by d.month
    The field Month is a numeric field : 1 / 2 / 3...until 12 for month
    But my graph is like this
    http://img47.xooimage.com/files/e/7/3/chart-8b04ad.png
    You can see that my graph start with 11 on axis area and finish with 10...il would like to order by ASC
    Edited by: user1642453 on Dec 3, 2008 6:41 AM

  • Chart label length limitation?

    Is there a limitation on the length of x- or y-axis label for a SVG chart? The chart on my page has x-axis
    label truncated to 15 characters long.

    Me too, in my SVG pie chart, the last row legend text was truncated. just like:
    deal size > 70k - 92.5%
    deal size
    I actually expected in the second row, deal size <= 70k ...
    What happened? and how can I control this, moreover the legend was displayed in the left upper of the region and cost a lot width in my screen. Can I change to display the legend in other place, eg. the bottom of the region or the chart?
    Anyone can help us about this?

  • Svg charts - size and default value

    is there any way to make svg chart size smaller? i want to fit 6 graphs onto a page and even with the 350x315 setting, they are still too big
    also, when i have a query like this:
    select null, c.nodes, count (*)
    from customers c, country_region_mapping m
    where system_status='Production'
    and c.country = m.country
    and decode(:P4_REGION, '%', 1, m.region, 1, 0)=1
    and decode(:P4_COUNTRY, '%', 1, m.country, 1, 0) =1
    and decode(:P4_INDUSTRY, '%', 1, c.industry, 1, 0) =1
    group by nodes
    the page initially comes up empty. in other words, the charts have no data.
    is there anyway to default to all

    i'm currently checking on your question about the chart sizes, but the second part of your question sounds easy enough. it looks like your query will return all the rows "from customers c, country_region_mapping m where system_status='Production' and c.country = m.country" when the default values of :P4_REGION, :P4_COUNTRY, and :P4_INDUSTRY are '%'. if that's how you're going about things, you can simply set your defaults for these items to the percent sign in those items' respective definition screens. this way, even before your items get a session state value, they'll be assigned their default "%" values and your query will return rows.
    i'll get back to you soonish re the svg chart sizes,
    raj

  • SVG charts and performance

    Hi everybody!
    I am playing a little bit with charts at the moment.
    Therefore I created a query, which takes app. 2 seconds in the SQL Command Processor.
    Then I created a region with a pie chart (SVG chart).
    When I run the page, it takes several minutes until the chart appears (it is unacceptable).
    1.) Does anybody have an idea, why this takes so long?
    2.) Has anybody a better understanding of the SVG charts? How is the chart created, when the query was run? Is it created within the webserver and just displayed in the browser plugin? Or does the webserver just prepare some data and the chart is created within the browser plugin?
    3.) How can I improve the performance of creating SVG charts?
    4.) Are there other possibilities existing for creating charts?
    Thank you for your help in advance and best regards,
    Christian

    Hi Christian,
    There may be lots of issue about the performance of the SVG chart.As far my knowledge goes you must have install Adobe SVG Viewer to the local machine for the browser to initiate HTMLDB Webserver (which is nothing but PL/SQL embedded gateway accessed through MOD_PL/SQL) with the chart viewer plugins.Now if u have so complex query with huge records ,aggregate function and group by that might be a performance issue in case of SVG.
    May be some guys from HTMLDB Team can direct us......
    Cheers,
    ROSY

  • Plotting multiple series on an SVG Chart

    Hi,
    I am trying to plot multiple series on an SVG Chart. The moment I add a second series, I get the following error:
    "SVG Chart error: ORA-20001: line_chart error: ORA-20001: get_data error: ORA-20001: Parse error: ORA-0093".
    The graph fails to plot multiple series even for the same queries. The query I use is something like the following:
    select null "link", substr(name,7) "Label",value "Value"
    from <table>
    where
    <conditions>
    and name in (<sub-query>)
    order by name desc
    I have previously used an SVG chart to plot multiple series and have never had such problems. Any help would be greatly appreciated.
    I tried deleting and recreating the chart - doesn't help.
    Thanks,
    Aswath

    If you want to order the data do it via an in-line view:
    SELECT *
    FROM (
    select null "link", substr(name,7) "Label",value "Value"
    from <table>
    where
    <conditions>
    and name in (<sub-query>)
    order by name desc
    )

  • SVG chart series error

    Hi!
    I want generate svg chart with 3 series basead in database table DR_HPUX_CPU with 5 columns: id (server id), percent_user, percent_idle, percent_system and info_date.
    What I Want is view information about CPU percent user, system and idle in the same chart. series query (i create 3 only different in PERCENT_XXX):
    SELECT NULL LINK,
    data,
    valor
    FROM
    (SELECT DISTINCT
    TO_CHAR(info_date,'YYYY-MM-DD HH24:MI') as data,PERCENT_XXX as valor
    FROM DR_HPUX_CPU
    WHERE ID=6 ORDER BY data DESC)
    WHERE ROWNUM < 21
    order by data asc
    If I have only one series, chart display very well. when i have 3 series chart return error:
    SVG Chart error: ORA-20001: line_chart error: ORA-20001: get_data error: ORA-20001: Parse error: ORA-00933: SQL command not properly ended
    What's wrong?
    Thanks
    Avc

    "Avc"
    I think we're going to have to see the other 2 queries. What happens when you try all combinations of 2 queries? What I'm asking is: can you narrow the problem down to 1 query?
    Sergio

Maybe you are looking for

  • LSO - Follow-Up Course Participation

    Dear All, When following up a course in SAP LSO, I marked the course participation as 'absent' for ppl who did not turn up for the course. What happens in the system is that a cancellation will be triggered, thus this person will not be reflected in

  • How can I fix my hard drive?

    I have this nag of a PowerBook that I can't seem to fix. Before I send old paint out to the glue factory, I'd like to try to at least try to get some use as a web & email machine for a while. Here's the problems: 1 - CD-DVD drive is shot. Can not ins

  • Get data from Sharepoint site in different farm using webservice, and current site using claims mode authentication.

    Hi ,  I have a site that runs on   Claims Mode (  NTLM) . That site has a web part that needs to show the data from any  sharepoint farm, SharePoitn  2010 , or 2007 or 2003. I am getting 401 unauthorized when I   try to get data from webservice runni

  • Firefox free download will not load on the firefox page

    when I go to firefox page to download firefox the green box is not there and will not load so I am not able to download firefox on my desktop. i have tried everything to have it load. I am trying to get rid of ie!!!

  • Time machine restore to newly setup system

    I have a TM backup I took prior to reinstalling system. I now want to restore my iTunes library from this backup after doing a reinstall of Mac OSX. When I startup TM, I get the option to use other TM backup. I select this and can navigate to my iTun