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 - to read a NULL values in excel source Expand / Collapse
Author
Message
Posted Friday, January 11, 2013 11:16 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, March 21, 2014 1:23 AM
Points: 4, Visits: 54
Hi,

How to read the null values from excel source while doing in the transformation or to stop the package when the particular column has null values.
Post #1406310
Posted Monday, January 14, 2013 10:16 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Monday, September 1, 2014 1:40 PM
Points: 1,045, Visits: 2,724
There are a couple of different ways you can do this. Most likely the easiest way is to send the incoming data to a Conditional Split transformation, and use that conditional split to check whether the critical fields contain a non-empty string, sending any rows with blanks to a named output. Use a Row Count transformation to capture the rows sent to that output, and use a script task to check that row count value and fail the package if it is greater than zero.

If you want to fail the package immediately if a blank value is found in the data, you'll probably have to use a script component, either as a source or transformation.

hth,
Tim




Tim Mitchell, SQL Server MVP
Independent Business Intelligence Consultant
www.TimMitchell.net
@Tim_Mitchell

Post #1406834
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse