Hi,
I have a situation where I have a DFT with :
- Ole db source from a variable contains MDX query
- Derived column
- Excel Destination Plus (cozyroc)
The query runs for each iteration of employee and dumps all rows in to excel file with their names.I am stuck at a place where ,for an employee,there are numerous rows outputted from the query >1,048,576 .It exceeds the number of rows permitted by Excel 2010 version.I want to check if the rows exceeds 50% of this number or greater than a specific number of rows,the flow shouldnt proceed downstream to derived column and cozyroc component
(OR)
Somehow the DFT should fail upon on error of the ole db query so i can handle this with on task failed handler and proceed with next iteration
I tried the below but it doesnt work as expected :
- ole db->rowcount->conditonal split->excel destination : Rowcount calculates the rows as they pass through and allow the rows downstream to conditional split ,here the condition that rowcount>100000(for testing)doesnt seem to have any effect.Irrespective of conditions applied here ,the rows flow downstream into the Excel.
- I have applied a on error event handler to try and see if the error fails the DFT,but unfortunately,the on error handler does write the message that the rows exceed but it doesnt fail the DFT and DFT keeps running indefinitely without stopping whole day.