For each loop container not working as expected (only reads the first file)

  • Matt

    I tried changing the Scope of the User::Filename variable to For Each loop container but then when executing the package it sends an error telling that The Variable cannot be found.

  • When you change the variable you need to rebind it every where it's been used.

    Actually cleaner is to create another variable in the correct scope and go around and associate it to the item in the loop.

    ----------------------------------------------------------------------------------
    Your lack of planning does not constitute an emergency on my part...unless you're my manager...or a director and above...or a really loud-spoken end-user..All right - what was my emergency again?

  • Matt Miller (#4) (8/26/2010)


    When you change the variable you need to rebind it every where it's been used.

    Actually cleaner is to create another variable in the correct scope and go around and associate it to the item in the loop.

    Would people please STOP giving answers that have NOTHING to do with the issue!!!



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • Alvin Ramard (8/26/2010)


    Matt Miller (#4) (8/26/2010)


    When you change the variable you need to rebind it every where it's been used.

    Actually cleaner is to create another variable in the correct scope and go around and associate it to the item in the loop.

    Would people please STOP giving answers that have NOTHING to do with the issue!!!

    Thanks for the answer. just giving my opservations (i.e. setting package level variables each time inside of a for each loop tend to be really buggy). But still I do appreciate the tone. If you feel I'm wrong I'm ok with that, but in my observation, it's anything but irrelevant.

    Now moving on.

    Sigh...

    ----------------------------------------------------------------------------------
    Your lack of planning does not constitute an emergency on my part...unless you're my manager...or a director and above...or a really loud-spoken end-user..All right - what was my emergency again?

Viewing 4 posts - 31 through 33 (of 33 total)

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