boywithk9

Intermittent "error In Loading Data" Message

Recommended Posts

Since upgrading to 3.2, I get intermittent "error in loading data" messages for some charts. Since the problem only happens sometimes (about 50% of the time), it's not a question of the URL for the xml file being incorrect. The only unusual thing about my setup is that the xml files live on a different server from the php file. I'm using a relayer that you provided to accomplish that. (I don't have ftp rights on the main server, which is why I need to keep the xml files elsewhere.)

 

The second graph on the following page is most prone to this problem:

 

http://cjdeheer.com/santa-cruz-market-statistics-sfh-coastal.php

 

Any suggestions?

Edited by boywithk9

Share this post


Link to post
Share on other sites

I enabled debugging mode and it returned the following (note that the chart DID display correctly while this debug information was provided):

 

 

Info: Chart loaded and initialized.

Initial Width: 755

Initial Height: 375

Scale Mode: noScale

Debug Mode: Yes

Application Message Language: EN

Version: 3.1.1

Chart Type: Single Series 2D Column Chart

Chart Objects:

BACKGROUND

CANVAS

CAPTION

SUBCAPTION

YAXISNAME

XAXISNAME

DIVLINES

YAXISVALUES

HGRID

DATALABELS

DATAVALUES

TRENDLINES

TRENDVALUES

DATAPLOT

TOOLTIP

VLINES

VLINELABELS

 

INFO: Chart registered with external script. DOM Id of chart is chartobject-1

WARNING: Could not find dataXML or dataURL parameter. Setting dataURL to default data file Data.xml.

dataURL provided: Data.xml

dataURL invoked: Data.xml?FCTime=324

INFO: setDataXML method invoked from external script.

INFO: XML Data provided using dataXML method.

XML Data: <?xml version="1.0" encoding="UTF-8"?>

<chart adjustDiv="0" baseFont="Verdana" baseFontColor="333" baseFontSize="11px" bgColor="FFFFFF" canvasBorderColor="FFFFFF" caption="COASTAL SINGLE-FAMILY HOMES IN SANTA CRUZ COUNTY" chartLeftMargin="48" chartRightMargin="0" exportAtClient="1" exportEnabled="1" exportFileName="coastal_sfh_units" exportHandler="fcExporter1" exportShowMenuItem="1" exportType="PDF=Export as PDF File" labelDisplay="ROTATE" labelStep="1" numDivLines="10" plotFillRatio="100,0" plotGradientColor="" plotSpacePercent="70" setAdaptiveYMin="0" showAlternateHGridColor="0" showBorder="0" showPlotBorder="0" showvalues="1 " subCaption="Number of Sales">

<set color="32759d" label="2000-Q1" value="90" />

<set color="32759d" label="2000-Q2" value="101" />

<set color="32759d" label="2000-Q3" value="80" />

<set color="32759d" label="2000-Q4" value="70" />

<set color="32759d" label="2001-Q1" value="50" />

<set color="32759d" label="2001-Q2" value="65" />

<set color="32759d" label="2001-Q3" value="58" />

<set color="32759d" label="2001-Q4" value="51" />

<set color="32759d" label="2002-Q1" value="53" />

<set color="32759d" label="2002-Q2" value="79" />

<set color="32759d" label="2002-Q3" value="67" />

<set color="32759d" label="2002-Q4" value="66" />

<set color="32759d" label="2003-Q1" value="63" />

<set color="32759d" label="2003-Q2" value="70" />

<set color="32759d" label="2003-Q3" value="99" />

<set color="32759d" label="2003-Q4" value="80" />

<set color="32759d" label="2004-Q1" value="71" />

<set color="32759d" label="2004-Q2" value="89" />

<set color="32759d" label="2004-Q3" value="92" />

<set color="32759d" label="2004-Q4" value="61" />

<set color="32759d" label="2005-Q1" value="64" />

<set color="32759d" label="2005-Q2" value="76" />

<set color="32759d" label="2005-Q3" value="87" />

<set color="32759d" label="2005-Q4" value="52" />

<set color="32759d" label="2006-Q1" value="55" />

<set color="32759d" label="2006-Q2" value="63" />

<set color="32759d" label="2006-Q3" value="64" />

<set color="32759d" label="2006-Q4" value="55" />

<set color="32759d" label="2007-Q1" value="46" />

<set color="32759d" label="2007-Q2" value="64" />

<set color="32759d" label="2007-Q3" value="69" />

<set color="32759d" label="2007-Q4" value="49" />

<set color="32759d" label="2008-Q1" value="30" />

<set color="32759d" label="2008-Q2" value="49" />

<set color="32759d" label="2008-Q3" value="55" />

<set color="32759d" label="2008-Q4" value="30" />

<set color="32759d" label="2009-Q1" value="18" />

<set color="32759d" label="2009-Q2" value="41" />

<set color="32759d" label="2009-Q3" value="52" />

<set color="32759d" label="2009-Q4" value="57" />

<set color="32759d" label="2010-Q1" value="38" />

<set color="32759d" label="2010-Q2" value="52" />

<set color="32759d" label="2010-Q3" value="53" />

<styles>

<definition>

<style bold="0" color="333" font="Verdana" letterspace="1" name="CaptionStyle" size="10" type="font" />

</definition>

<application>

<apply styles="CaptionStyle" toObject="Caption" />

</application>

<definition>

<style bold="0" color="333333" font="Georgia" name="SubCaptionStyle" size="22" type="font" />

</definition>

<application>

<apply styles="SubCaptionStyle" toObject="subCaption" />

</application>

</styles>

</chart>

Share this post


Link to post
Share on other sites

I was able to get the problem to occur while debugging mode was on, and I got the following error:

 

ERROR: An error occurred while loading data. Please check your dataURL, by clicking on the "dataURL invoked" link above, to see if it's returing valid XML data. Common causes for error are:

No URL Encoding provided for querystrings in dataURL. If your dataURL contains querystrings as parameters, you'll need to URL Encode the same. e.g., Data.asp?id=101&subId=242 should be Data%2Easp%3Fid%3D101%26subId%3D242

Different sub-domain of chart .swf and dataURL. Both need to be same owing to sandbox security.

Network error

 

It looks like something changed in 3.2 that is causing the use of the relayer to fail intermittently.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

As you have already stated, you need not require to specify the same explicitly from v3.2 onwards.

 

I hope this helps. :(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now