Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SSIS - Error Output - Redirect Row Expand / Collapse
Author
Message
Posted Thursday, February 19, 2009 9:44 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, February 20, 2009 9:41 PM
Points: 12, Visits: 16
Hi-

I have the following steps in a data flow.

1. Flat file source - The output of this task is sent to Data Conversion transform. and the error out is sent to a Flat file destination.
2. Data Coversion Trans. converts text to integer and text to datetime
3. output is written to a OLEDB destination

Requirement/Expectation:

I had a bad date value (12/26/200) in one of the records in flat file and was expecting the package to execute without any error and redirect the row with bad date to the flat file destination. I want the rows except for row with bad date to be loaded into SQL table.

Result/Observation:
1. Package failed
2. Flat file source, Flat file destination and Data Conversion steps were green.
3. OLEDB Destinationn was red
4. All the rows in flat file were directed to data conversion step. It should have skipped the row with bad data and redirected this row to the flat file destination.
5. Package should not have failed

Can someone help me fix this?
Post #660536
Posted Thursday, February 19, 2009 9:47 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Friday, May 30, 2014 6:27 PM
Points: 2,808, Visits: 7,175
Is your error redirect on the data conversion task?
Post #660538
Posted Thursday, February 19, 2009 6:47 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, February 20, 2009 9:41 PM
Points: 12, Visits: 16
error redirect is on the flat file source task
Post #661018
Posted Friday, February 20, 2009 2:04 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Friday, May 30, 2014 6:27 PM
Points: 2,808, Visits: 7,175
Put the error on the data conversion task, as this will be where the data type error will be raised
Post #661116
Posted Friday, February 20, 2009 8:56 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, February 20, 2009 9:41 PM
Points: 12, Visits: 16
I will give it a try. what if I did not have the data conversion task but wanted to redirect the error rows from extract to flat file destination?
Post #661949
Posted Friday, February 20, 2009 9:43 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, February 20, 2009 9:41 PM
Points: 12, Visits: 16
Hi Steve-

I configured the error redirect step in data conversion task instead of flat file source. No luck.

thanks!
Post #661958
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse