Hi All,
I have a requirement to loop files from a folder and iterate sheets of those files and load data into a sql server table. And I am supposed to load one file at a time and move that file to a diff folder.
1)I have taken a For Loop Container which will execute as many time as the no of files inside the folder.
2)Inside For Loop Container i have taken a script task which'll get me the file name and Sheet name at the run time which i am passing to data flow task.
3)Excel Source i am using connectionstring expression and made delay validation to true & getting the value for sqlcommand from a variable where i am using [select * from sheetname$]
4)For design time prob i am mapping to an existing file and doing the mappings and made the delay validation true of package
5)Then I am moving the file to a different folder using File System Task.
During the whole process SSIS gives me error in Data Flow Task saying VS_NEEDSNEWMETADATA and sometimes says could not find col1 from excel source.
Also the no of columns vary across Sheets.
Please suggest me either a diff way or how to fix this problem
Thanks
↧