Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SQL server 2014 and VS 2013 - Date Column Error and Error handling for Derived column

$
0
0

Hello Everyone,

At present, I'm facing two problems in current SSIS package.

1. Date Column Error.

I'm using Data Flow Task to migrate data from CSV files to SQL tables, one by one using For each loop container for multiple CSV files.

This package is throwing following error when data in date column is null.

[OLE DB Destination [793]] Error: There was an error with OLE DB Destination.Inputs[OLE DB Destination Input].Columns[Created Date] on OLE DB Destination.Inputs[OLE DB Destination Input]. The column status returned was: "Conversion failed because the data value overflowed the specified type."

On the other hand, the same is working well with DateTime type.

Also, it is working fine with Date Type when I process a file separately in a different package.

This is really weird and I am unable to understand this.

Can anybody please shed some light on this problem?

2. Error handling/Log for Derived column

I'm using Data Flow Task to migrate data from CSV files to SQL tables, one by one using For each loop container for multiple CSV files.

I would like to log the erroneous records in a separate file at data flow task.

Say for instance, for numeric (10,2) column, if data in CSV file has value beyond this range, like 98.95784736264, then this particular record needs to be logged in a separate file and the package should process the next record.

I’ve tried to implement it over Derived Column component, but I’m facing the following error while doing so.

[Flat File Source [1]] Error: Data conversion failed. The data conversion for column "Column_Name" returned status value 2 and status text "The value could not be converted because of a potential loss of data.".

Please advise how to get rid of this problem.

Any help would be much appreciated.


Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.com


Viewing all articles
Browse latest Browse all 24688


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>