Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 SSIS 2005 blank values problem

Author  Topic 

rockstar283
Yak Posting Veteran

96 Posts

Posted - 2013-07-19 : 12:52:55
I am using a package to load data from a tab delimited flat file into SQL server table.

For this purpose, I am using SSIS 2005 and SQL server 2005.

In the connections manager for flat file source, I have a column AcqDate which I have declared as a Date. When I run the package, the package fails after processing 5800 rows as 5801 row's AcqDate is blank. The package fails in the flat file source adapter when it tries to pull data from the flat file.

If I run the same package in 2008, it runs successfully.

Is there any way to solve this problem?

Thanks in advance!!

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-07-20 : 08:42:27
you need to add a derived column transform and add an expression inside it to convert blanks to default date value. Use conditional operator for creating the expression

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -