Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Foreach file enumeator not grabbing the other files

Foreach file enumeator not grabbing the other files

Foreach file enumeator not grabbing the other files

I am have about 53 csv files. My task is to import all the data from these files into one sql destination table. I am using a forech file container where the file is set to grab all files with the csv extension. The foreach container executes 53 times. But every time it is on the same file. It might look that it processed all files. But it is actually going the first file 53 times. Please suggest what I need to do. I have tried doing it the script task but no luck. Not sure where I am going wrong. I tried doing an array to add all the files. It works but not when it is placed in a container. Please help.


RE: Foreach file enumeator not grabbing the other files

Hi AzuMithu

I think the issue is how you configured you Flat File connection

Change it to expression in the properties, then it will be able to change the source to each file it is pointing to


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close