Hi,
I am new to MS SSIS and I'm trying to read some data from a table using an ADO NET Source (from a dwh) and push the data into MYSQL server table using ODBC destination.
I have mapped all the columns from source to target as needed - I have 7 integer fields and 1 date field.
for the date field in the ADO NET source inside the SQL command I am using cast :
"cast(getdate() as date) test_date "
The query runs just fine when I run it outside the SSIS and directly query the database,
while running the package I get the following error messages :
[ADO NET Source [2]] Error: The error "Specified cast is not valid." occurred while processing "ADO NET Source.Outputs[ADO NET Source Output].Columns[test_date]".
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on ADO NET Source returned error code 0xC02090F5. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
thanks in advance for any help on the subject.