SSIS Import speadsheet from one folder into SQL Server

Hello Experts Exchange
I have a folder called "Wip Calc Sheet" I want users to save there spreadssheets in this folder and I want to import the data on the worksheet call "Wip Calc Sheet".

How do I configure SSIS to be able to view the folder, pick up any file that is a XLSX file and import the data as long as it has a "Wip Calc Sheet"?


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Couple of thoughts...


Use a ForEach FIle Loop control to iterate through a folder, looking for all .xlsx files, then you can filter what is worked on by a specific name.


If I'm understanding this correctly, users are entering data into an Excel doc, which you would like to build an SSIS package to connect to that data.  So ... YOU ARE PLAYING WITH FIRE.  Excel is a great tool for users to do anything, which means Excel is a terrible tool for use as an SSIS source as users can do anything to cause a mapped data flow to break.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SQLSearcherAuthor Commented:
Hello Jim
I have created a SSIS package with a foreach loop.

I have configured it for a file and called NEW Stock Status.xlsm, but this is not the name of the files that will be saved in the location they will have a date in the name.

When I delete the file from the folder location the SSIS Package does not run and has a error.  I have attached the error message.

How do I configure the package so that it will still work even when the file I have configured it for does not exist?


SQLSearcherAuthor Commented:
I had to set the property DelayValidation to True for the Data Flow Task.


SQLSearcherAuthor Commented:
Thank you for your help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.