Link to home
Start Free TrialLog in
Avatar of Samoin
Samoin

asked on

Receive Files with particular name from FTP server using SSIS

I'm trying to setup a FTP task with SSIS that will download the file with a specific name. The issue is that the filename is dynamic, for example today the file name would be

sample_20170419.txt and tomorrow that will change to sample_20170420.txt.

how do we achieve this using SSIS? Any help will be appreciated.
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

>Any help will be appreciated.
Well in that case, off the top of my head.
  • ForEach File Loop, loop through a folder.
  • Add logic somewhere that matches each file in the loop to your custom logic, setting the result to a variable defined as bit/boolean.  Off the top of my head you may even be able to add this logic in the Loop in a textbox along the lines of 'Files to Compare'.  If that is correct the disregard the green arrow thingie below.
  • Precedence constraint (aka green arrow) from above line, when bit/boolean variable is True, to your FTP task when uses that file variable.
ASKER CERTIFIED SOLUTION
Avatar of Samoin
Samoin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, use an expression. That's what they are there for.
Avatar of Samoin
Samoin

ASKER

The solution provided by expert did not worked.