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

Can not convert DT_WSTR to DT_DATE

$
0
0

Hello,

I am receiving following error while executing For Each loop container task.

Error occurred attempting to convert from data type DT_WSTR to data type DT_DATE.

@[User::ProcessThisFile] =((DT_DATE) left(Reverse(Left(REVERSE( @[User::ECGVolumeFilePath] ),FINDSTRING( REVERSE( "\\" + @[User::ECGVolumeFilePath] ),"\\",1)-1)),10) >= @[User::from_date] ) && ( (DT_DATE) left(Reverse(Left(REVERSE( @[User::ECGVolumeFilePath] ),FINDSTRING( REVERSE("\\" + @[User::ECGVolumeFilePath] ),"\\",1)-1)),10) <= @[User::to_date] )

From_date: (@[$Package::StartDate] < (DT_DATE) "1900-01-01")? (DT_DATE)(DT_DBDATE)dateadd("dd", 0, dateadd("dd", (datepart("dw", getdate()) * -1) + 2, getdate()),) : @[$Package::StartDate]

to_date: ( @[$Package::EndDate] < (DT_DATE) "1900-01-01")? (DT_DATE)(DT_DBDATE)dateadd("dd", -1, dateadd("dd", (datepart("dw", getdate()) * -1) + 2, getdate()),) : @[$Package::EndDate]

Can anyone please help?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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