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

SQL Job Failed on data type not match

$
0
0

I've a simple data flow task which pulls data from mysql to sql db.  Use DataReader Source, .Net Providers\Odbc Data Provider.  The task runs fine on my machine but it fails when I put in sql job.  Below is error:

Source: import temp_tbl DataReader Source [1]     Description: The data type of "output column "project" (25)" does not match the data type "System.String" of the source column "project". 

The source data type is varchar(max).  In Advanced Editor for DataReader Source, the external column data type is DT_WSTR so I change it to DT_STR but the job still fails.  To further troubleshoot the issue, I only pull the data that is Integer data type and the jobs run fine.  I even use Data Conversion but it still fails.

Really appreciate any inputs.  Thanks in advance.


Ash_


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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