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?