Issue looping through multiple excel files with different sheet names

  • I have an several similar excel files and all of them have just one sheet/tab under them with month names. Looping through multiple excel files and loading them into tables was working fine earlier using the For Each Loop Container until I started receiving files with different sheet names other than the default "Sheet1".

    Kindly suggest step by step instructions for implementing this. I have tried using the Script task but the package would fail while looping through the files.

    Thanks

  • Have you had any response to your question offline? I am attempting to do the same thing. Thanks!

  • Hi,

    I don't know what error you are getting. I just tried your scenario by putting 2 excel files in the source folder with data in Sheet1 and Sheet2 respectively. It is working perfectly fine for me.

    May be SSIS engine searches for the right sheet to use. I am using SSIS 2008 R2.

    Thanks,

    Swaroop

  • Hi,

    Would you mind sharing your package so that one could have a look who is interested in the above topic?

    __________________________
    Allzu viel ist ungesund...

  • I am not sure how to upload the package and the excel file to this thread. would you mind sharing your email ID!!

  • swaroop.sahoo (10/26/2011)


    I am not sure how to upload the package and the excel file to this thread. would you mind sharing your email ID!!

    You can ZIP your files and attach it to your post. Thanks.

    __________________________
    Allzu viel ist ungesund...

  • Here you go ..

  • swaroop.sahoo (10/26/2011)


    Here you go ..

    Assuming the original poster meant to load the stuff into a SQL server table rather than into another excel file?

    __________________________
    Allzu viel ist ungesund...

  • It is working with DB tables as well.

    Let's wait for the original poster to respond.....

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply