All,
I'm developing a SSIS package to check for existence of files inside a bunch of known directory paths.
I have a source table with 3 columns.
Table A
Directory path
File Name
FileNotFoundFlag.
My plan is to achieve this in 2 steps.
1) Since i have the directory path, I would like to pull all the filenames within the directory along with extensions and get an output dataset from for each loop.
2) Then with that output, join with the source to update the FileNotFoundFlag to 'Y'.
I would like to achieve this (preferrably without script task).
Issue Faced: I created execute SQL task which has select distinct directory from table A, -->Assigned to Full resultset with Resultname to 0 and Variablename as "FilePath resultset" (Object). --Successful
I passed on the connection to ForEachLoop File enumator --> expression -->Directory is not accepting the "Filepath result set" variable. Any idea how to pass the directory names and extract all filenames as output?
I'm open for your suggestions if you have a better flow.
Thank you very much.