Hello,Is anyone else encountering this problem? My SimpleRings task does not return a report when I run it against the new census2010 dataset but it does return a report when I run it against the original USA dataset.Any ideas or assistance is greatly appreciated!Thanks!AmyVerisons:ArcGIS Flex API - 2.4BA Online Flex API - 2.1More Details:I have two radio buttons where the user selects whether they want to see the list of available reports available from Census 2000 (activeDatasetID set to USA) or from Census 2010 (activeDatasetID set to USACensus2010)The only difference in the code is the value stored in my _activeDataSet variable. When I use the USA dataset, the returned array has a report in it. When I use the USACensus2010 dataset, the returned array is null. The code calling the report is below:
//_baClient contains my BAO login information
var simpleRingsTask : SimpleRingsTask = new SimpleRingsTask(_baClient);
simpleRingsTask.execute(params, new mx.rpc.Responder(resultHandlerRings, faultHandler));
//
private function resultHandlerRings(event:BATaskCompletedEvent):void
{
var taskResultOutput : TaskResultOutput = event.result as TaskResultOutput;
//draw the features on the map
var fs : FeatureSet = taskResultOutput.recordSet;
if(fs)
{
// add the resulting features to map
for (var i:Number = 0; i < fs.features.length; i++)
{
var g : Graphic = fs.features;
// set tooltip from attributes
g.toolTip = fs.features.attributes["AREA_DESC2"];
g.autoMoveToTop = false;
_graphicsLayerRings.add(g);
}
zoomToExtent();
}
//get the report
// taskResultOutput is empty when 2010 dataset used and the following error is thrown -
// it all works great with the USA dataset
// TypeError: Error #1009: Cannot access a property or method of a null object reference.
var reportInfo : ReportInfo = taskResultOutput.reports[0];
_reportUrl = reportInfo.url;
lblGuide.text = "Task complete. " +
"The summary report has been generated and is ready for download."
cursorManager.removeBusyCursor();
navigateToURL(new URLRequest(_reportUrl), "_blank");
}