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

Error with Derived Column component in SSIS...

$
0
0

Hi everyone,

I created an ssis package and in that package I read a CSV file and transform it in a table.

CSV file includes 4 columns that one of them has value same as 21/01/2013 (name of coulmn is Call_Date)

My table needs varchar(30) with this format 2013-01-21 as value of that column.

for this reason I used a derived column between flat file source and OLE DB destination and I added new column with below specifications:

Derived Column Name : Call_Date  

Derived Column : <add as new column>

Expression:  ((DT_WSTR,4)YEAR(((DT_DATE)Call_Date))) + "-" + RIGHT("0" + ((DT_WSTR,2)MONTH(((DT_DATE)Call_Date))),2) + "-" + RIGHT("0" + ((DT_WSTR,2)DAY(((DT_DATE)Call_Date))),2)

Data type: string [DT_STR] 

lenght: 30   

Code Page:  1252  (ANSI - Latin I)

This package works fine most of times but for some CSV file I get below error in derived column component , and when I create a new CSV file and change format cell to text and copy and past that file datas to new one , it works again.

The error is :

[Derived Column [56446]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "component "Derived Column" (56446)" failed because error code 0xC0049064 occurred, and the error row disposition on "output column "Call_Date" (57282)" 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.

Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Derived Column" (56446) failed with error code 0xC0209029. The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.

Error: SSIS Error Code DTS_E_THREADFAILED.  Thread "WorkThread0" has exited with error code 0xC0209029.  There may be error messages posted before this with more information on why the thread has exited.

I do not understand what is eactly the issue.

I will appreciated for any help.

Cheers,

Emma


Viewing all articles
Browse latest Browse all 24688

Trending Articles