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

[ADO NET Source [2]] Error: The error "Specified cast is not valid." occurred while processing "ADO NET Source.

$
0
0

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]".

[ADO NET Source [2]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "ADO NET Source" failed because error code 0x80004002 occurred, and the error row disposition on "ADO NET Source.Outputs[ADO NET Source Output].Columns[test_date]" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.

[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.




Viewing all articles
Browse latest Browse all 24688

Trending Articles



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