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

Unable to rename file for archive files using filesystemtask

$
0
0

Hi,

I have to move and rename files using file system task. I can move files but unable to rename it with timestamp.

My variables are:  

user::filepath   ----> its having total file path of the .csv file

user::movefiles  ----> d:\dir\dir1\archive\data\

for this path files are moving.

for adding time stamp : user::movefiles---->properties--->eveluate exp:true

EXp : @[User::FileName] +"_" +(DT_WSTR,4)YEAR(GETDATE())+(DT_WSTR,2)MONTH(GETDATE())+(DT_WSTR,2)DAY(GETDATE()) + "_" + REPLACE(SUBSTRING((DT_WSTR,30)GETDATE(),11,9),":","") + ".csv"

I am getting error as could not find the part of the path.

please help on it...

Thanks

AVS


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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