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

SSIS error importing date column from flat file

$
0
0

Hi,

I have a tab delimited flat file as below (only extracted the header and first row):

BusinessEntityID PersonType Title FirstName MiddleName LastName Suffix TerritoryName CountryRegionCode TerritoryGroup EnglishEducation EnglishOccupation BirthDate Gender MaritalStatus EmailAddress FullName ValidFrom
1 EM  Ken J Sánchez  Northwest US North America N/A N/A  N/A N/A  Ken Sánchez 22/06/2013

The flat file connects to a OLE DB Destination. When I executed the package, I got errors below:

When executed the package, I import the file into the database,

[OLE DB Destination [92]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Invalid date format".

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

I have tried several scenarios to identify the root cause:

1. when the Birthdate contains a date value, the package executed successfully

2. When there is no value for Birthdate, the package fail with the above errors.

I have tried using Derived Column to get around the error, but in in vain.

Did anyone had similar experience importing Flat file with Date columns to database table?

Cheers,

PeiWai


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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