Bug 123576 Data can't be retrieved when exporting data
Description: Data can't be retrieved when exporting data Steps to reproduce: 1.Preview the attached file in Web Viewer 2.Exported the data in table Expected result: The data is exported as a CSV file Actual result: No data is retrieved
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/DataExtractionTask.java
ReportItemDesign rptItem = (ReportItemDesign) report
				.getReportItemByID( instanceId.getComponentID( ) );
		assert rptItem != null;
		
		validateSelectedColumns( rptItem.getQuery( ) );
		
		
		DataID dataId = instanceId.getDataID();
		InstanceID instId = instanceId;
		while( instId != null && dataId == null ){
			instId = instId.getParentID( );
			if( instId != null )
			{
				dataId = instId.getDataID();
			}
		}
		
		if(dataId == null)
			return null;
		
		DataSetID dataSetId = dataId.getDataSetID( );
		assert dataSetId != null;
		
		String queryResultName = dataSetId.getDataSetName( );
		
		if( resultMetaList == null )
		{
			resultMetaList = new ArrayList( );
		}
		else