Search code examples
sql-servercsvdatetimessisssis-2008

SSIS writing Datetime to CSV fails


I am attempting to write a Sql Server DateTime field to a CSV in SSIS and it keeps failing with: "[Flat File Destination [742]] Error: Cannot copy or convert flat file data for column "Quotation_Date__c".

I checked the SQL using to pull the data from SQL server and it pulls the data with no errors. Column "Quotation_Date__c" pulls data with no errors. It's just when it attempts to write the DateTime column to the CSV is where the problem happens. Any ideas?


Solution

  • Check the flat file connection manager, target column data type should make sense.

    enter image description here