[Solved] Foreach loop that loops over all files in a folder does not consider first file found

Hello,
I have a foreach loop in SSIS (as part of Visual Studio 10 and with SQL Server 2012).
It loops over all files in a folder (ForEach File Enumerator).
I set the folder: OK
Traverse Sub folders: OK
I have set up a Variable in Variable Mappings called FileName so it shows User::FileName: OK
Index of variable is 0: OK
It almost works ok. Except that the first file it finds is never considered.
I set a breakpoint then and the first file it finds, is shown in black in the watch variable window. All subsequent files found are shown in red font. When I change the names of the files so another file is the first file found then it skips the other one
which now is the first file.
What is going on here? Why does SSIS skip the first file it finds in a foreach file loop?
Any suggestions highly appreciated.
Thank you
Andi
Andreas

"red font - interesting, any example to show us (image)
It would be interesting to share with us whether you use any file masks or expressions.
Arthur
MyBlog
Twitter
It appears a variable value turns red when it changes between breakpoints. It started black for the first value (the first file, obtained BEFORE the execution reached the breakpoint), and then turned red. I was able to reproduce this behavior on a test environment.
However, it did not skip any files.
OP, please set up the test shown in the image below. Create a breakpoint in the sequence container for the "OnPreExecute" event.

Similar Messages

  • Hp C310 e all in one. Print that is stuck in the print queue, cancel does not remove

    hp C310 e all in one. I have a print that is stuck in the print queue, cancel does not remove says deleting. I have tried shutting down printer, closing word doc, multiple canel all prints. Any Ideas

    Hello mackice,
    Try these steps below to clear the print queue. The steps are listed for Vista and Windows 7 and would be slightly different for XP. If you are using a Mac then the steps below would not work. Please advise what OS you are using.
    Option 1)
    1. Click on start orb
    2. Type in search window: "services.msc" (without the quotes)
    3. click ok
    4. Scroll down to Printer spooler service and click on it in the right side window.
    5. On the left side click stop the service and wait forthe process to stop
    (Do not close the window yet. You will have to restart it here later.)
    6. next delete the print job in the printer queue
    7. then restart the spooler service
    8. Resubmit your new print job.
    Option 2)
    If that doesn't clear it, the next step would be to stop the spooler
    service as stated above
    Go into windows explorer
    (Print job data is collected and stored in a spool file in the spooler
    folder.)
    It is located in:
    C:\WINDOWS\system32\spool\PRINTERS
    Your print job will show 2 files there Example below:
    00002.SHD
    00002.SPL
    Delete the files located in there. There may be several of them
    depending apon how many print jobs you submitted. You will have to
    resubmit your print jobs all over again.
    Next go back to services window and restart the spooler service
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • Get an Error window, The source folder does not contain any supported camera raw files

    I am using CS2 and it would not open up my latest RAW files, I was getting a warning Could not complete your request because it is not the right kinds of document. So, I checked the Camera Raw Plug-in and it says Version 3.7. I see that my camera an Olympus E-20 is supported. But it is not opening the Raw files, the day before I took jpeg and they have opened. I will not trash my Adobe Photoshop CS2 because it was a royal pain to install and I don't know where the CD is.
    I installed the latest DNG Converter and when I try to open up the folder which has all the RAW images that didn't open in Adobe, I still get an Error window that says, "The source folder does not contain any supported camera raw files." Why? It says it supports my Olympus E-20. I actually have the E-20n, I don't think that is the problem. My RAW icons usually show up as small image thumbnails and this time they are gray icons only with the incorrect date under the icon. Is there another product I can use without spending money? These images I took in RAW were special and I don't want to lose them. Please help!
    Esther

    Hello, I was using only CS2 with my Olympus E-20n for 5 years, no problem. It just started acting up in RAW this year. I downloaded Picasa that same day and now it seems to be opening up all of my RAW files that didn't open the other day. So, I think Picasa installed a new plug-in adaption to CS2 because now all my RAW icons have a new logo on them, the same one that's in Picasa. Strange, but it works now and I am not complaining anymore. I love CS2 and the many ways I can adjust RAW files, so I am using it, Picasa is a sideline now that I can take a look at many thumbnails and it organized all my photo files by the year and folders. Amazing free software. I have probably 60,000 images in my computer and an external hard drive and Picasa picked them all up and made a library, cool.

  • Every time I open Safari, I get a message (and a pop-up) that says the Safari browser I'm using does not support Community Toolbar. How can I get rid of the Community Toolbar or at least turn it off?

    Every time I open Safari, I get a message (and a pop-up) that says the Safari browser I'm using does not support Community Toolbar. How can I get rid of the Community Toolbar or at least turn it off?

    That toolbar/ct plugin seems to cause problems for all who install it!
    Close Safari, then locate and delete the following files and it should be gone:
    /Library/Application Support/Conduit
    /Library/InputManagers/CTLoader
    /Library/Receipts/ctloader.pkg
    /Library/Receipts/<Toolbar name>.pkg
    /Library/Application Support/SIMBL/Plugins/CT2285220.bundle
    /Users/<User name>/Library/Application Support/Conduit
    where / is the root library on your Hard Disk.
    If you are running Snow Leopard you should also look here:
    Library/launchAgents/com.conduit.loader.agent.plist
    Library/Application support/conduit plugins
    Note: Safari does not support any third-party toolbars except those supplied as an extension to Safari via the Extension Gallery.

  • I bought and legally own PS CS3. Installed on a desktop and the machine died completely. Downloaded a trial of CS3 from Adobe site. Went to activate and said too many activations. Activate over the phone. EXCEPT Adobe does not handle activation issues ove

    I bought and legally own PS CS3. Installed on a desktop and the machine died completely. Downloaded a trial of CS3 from Adobe site. Went to activate and said too many activations. Activate over the phone. EXCEPT Adobe does not handle activation issues over the phone. Adobe doesn't care about their older products - they don't care that I spent hundreds of dollars for CS3. This is truly disgusting corporate behavior. Is there anything I can do? We aren't all rich photographers. I paid a great deal of money for this product. Is it now useless?Thank you,
    James Scott

    HI James please contact the Adobe Chat Team for activation issue
    kindly do the mentioned steps as follow in order to get hold of chat rep of adobe
    Go to www.adobe.com/getsupport
    select the product as adobe creative suite - then select the issue as adobe id and sign in - and then click on still need help contact us then you will be able to find chat option and they will help you with the chat issue

  • File or Folder does not exist

    I'm having a wierd problem with a png image which generates an error in my script.
    I'm building a UI using the group constructor, here is the line code I'm using to load the image:
    myImg:Image{text:'',image:'(image_folder)/image.png', alignment:['left','top']}
    The script runs with one image but not another one which is also a png of the same dimensions, bit depth etc. For some reason I get the 'file or folder does not exist' error message. If I replace the image with a known good one the script works.
    I've re-generated the image a dozen times. Still no joy.
    I'm not a total noob, though I infrequently write scripts and am completely prepared to learn I've made totally maverick error.
    Any thoughts?

    myImg:Image{text:'',image:'(image_folder)/image.png', alignment:['left','top']}
    I'm assuming that "(image_folder)" is a placeholder or variable and you are concatinating for the file path to the image? When checking file paths for images or what not, I usually try...
    alert(File.decode(File.openDialog()));
    ...to verify that my path is correct. Sometimes there's a extra slash or something I am missing.

  • When I try to sync my music on my iPhone 4 I have a tab at the top that says 'on this iPhone' The music in that tab is always on my phone but does not show in my itunes library.  How can I get it into my library?

    When I try to sync my music on my iPhone 4 I have a tab at the top that says 'on this iPhone'.  This is at the end of all the other tabs like info, ringtones, music etc. The music in that tab is always on my phone but does not show in my itunes library.  How can I get it into my library?  It doesn't sync either.

    The new iTunes has a somewhat different look from the previous version.  You can get the old look back if you prefer it by doing View > Show Sidebar in iTunes.  Or you can adapt to the new look.

  • When the apple review team review our app,they point out that our  app uses a background mode but does not include functionality that requires that mode to run persistently.but in fact,when the app in background ,the app need data update to make the

    when the apple review team review our app,they point out that our  app uses a background mode but does not include functionality that requires that mode to run persistently。but in fact,when the app in background ,the app need data update to make the function of  trajectory replay come ture。in fact, we have added function when the app  is in background mode。we have point out the point to them by email。but they still have question on the background mode,we are confused,does anyone can help me,i still don't know why do review team can't find the data update when  the app is in background and how do i modify the app,or what is the really problem they refered,do i misunderstand them?
    the blow is the content of the review team email:
    We found that your app uses a background mode but does not include functionality that requires that mode to run persistently. This behavior is not in compliance with the App Store Review Guidelines.
    We noticed your app declares support for location in the UIBackgroundModes key in your Info.plist but does not include features that require persistent location.
    It would be appropriate to add features that require persistent use of real-time location updates while the app is in the background or remove the "location" setting from the UIBackgroundModes key. If your application does not require persistent, real-time location updates, we recommend using the significant-change location service or the region monitoring location service.
    For more information on these options, please see the "Starting the Significant-Change Location Service" and "Monitoring Shape-Based Regions" sections in the Location Awareness Programming Guide.
    If you choose to add features that use the Location Background Mode, please include the following battery use disclaimer in your Application Description:
    "Continued use of GPS running in the background can dramatically decrease battery life."
    Additionally, at your earliest opportunity, please review the following question/s and provide as detailed information as you can in response. The more information you can provide upfront, the sooner we can complete your review.
    We are unable to access the app in use in "http://www.wayding.com/waydingweb/article/12/139". Please provide us a valid demo video to show your app in use.
    For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. When the DTS engineer follows up with you, please be ready to provide:
    - complete details of your rejection issue(s)
    - screenshots
    - steps to reproduce the issue(s)
    - symbolicated crash logs - if your issue results in a crash log
    If you have difficulty reproducing a reported issue, please try testing the workflow as described in <https://developer.apple.com/library/ios/qa/qa1764/>Technical Q&A QA1764: How to reproduce a crash or bug that only App Review or users are seeing.

    Unfortunately, these forums here are all user to user; you might try the developer forums or get in touch with the team that you are working with.

  • I need to make space on my Mac. If I copy a folder from iPhoto on to a hard drive, then delete it from iphoto then import it again, does it retain all my editing? It does not seem to retain Faces info and I have spent hours and days naming people :(

    I need to make space on my Mac. If I copy a folder from iPhoto on to a hard drive, then delete it from iphoto then import it again, does it retain all my editing? It does not seem to retain Faces info and I have spent hours and days naming people

    There is no way to export Faces information.
    I'm not sure why you would do this:
    If I copy a folder from iPhoto on to a hard drive, then delete it from iphoto then import it again,
    If space is an issue then move the whole Library to an external drive:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • I had to replace my iPhone today.  I have alot of music that still resides on my iPad.  It does not appear in iTunes.  How to I get this music to my iPhone?

    I had to replace my iPhone today.  I have alot of music that still resides on my iPad.  It does not appear in iTunes.  How to I get this music to my iPhone?

    From the iPad to itunes...
    Transfer Purchases
    File > Devices > Transfer Purchases
    More Info Here  >  http://support.apple.com/kb/HT1848
    From iTunes to iPhone...
    SYNCING with iTunes
    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/

  • New nano - music is loaded, nano is charged, volume settings are all on but the music does not play thru the earphones?

    New nano (7th generation) - music is loaded, nano is charged, volume setting are all on but the music does not play thru the earbuds,  Checked with a different pair with same results...I'm sure I must have something not turned on that should be but not sure - help!

    Hi deb253,
    If you are having sound issues with your new iPod Nano, you may find the following article helpful (it is aimed at the 6th Gen, but the steps should be similar for the 7th):
    iPod nano (6th generation): Hardware troubleshooting
    http://support.apple.com/kb/ts3474
    Regards,
    - Brenden

  • Can't Open Final Cut - "Waveform Cache Files Folder does not have read/....

    I am new to Final Cut and macs, so please bear with me.
    I have created an animation in Final Cut pro (5) using stills. The project takes up a lot of space, which is why I have moved the 'Final Cut Documents' file onto my external hard drive. However, I relocated/reconnected the project files when I next opened the project and all was peachy.
    Last night when I had the project open I got errors about not being able to save the project. This was my first problem, but is now insignificant compared to this new problem this morning:
    I cannot open Final Cut. I have an error saying 'The Waveform Cache Files Folder does not have read/write access. Please select a new folder in the System Settings Dialog or correct the problem on disk'. Final Cut then proceeds to shut down, so I cannot change any user settings within the program.
    I have made all Final Cut folders read/write as well as my external hard drive and anything else with Final Cut on it. It still presents this warning.
    A final confession: last night in (I think?) User Preferences I changed some of the settings to my external hard drive (I'm not even sure what settings...I just checked boxes next to the Hard Drive and unchecked a box next to the laptop drive), hoping it would just save the project to it, rather than on my laptop. This may have contributed to this new problem...maybe not.
    PLEASE HELP...this animation is due Monday.

    Thanks for your reply - it sounds like it will work, but I can't delete one of (yes, I made multiple copies, but have been able to delete the others) the Waveform Cache Folders as it comes up with the error "The operation cannot be completed because one or more required items cannot be found. (Error code -43)." Is this the cause of my problems? How do I fix it?

  • I did not use my computer yesterday, and now all of a sudden, Firework does not open at all after clicking on its icon or starting as a program. I did not download any upgrades or anything else, and I have Norton 360 v.3. What could be the problem, how ca

    I did not use my computer yesterday, and now all of a sudden, Firework does not open at all after clicking on its icon or starting as a program. I did not download any upgrades or anything else, and I have Norton 360 version 3. I can open Internet Explorer, but that's not my default browser, so I have no problem with the Internet connection.
    What could be the problem, how can I restore my browser without losing my bookmarks, settings, etc?
    == Operating system ==
    windows XP

    If you close Firefox, then start Firefox in Safe Mode, does the problem still occur? For instructions on starting in Safe Mode, see [[Safe Mode]]. Extensions can sometimes be the cause of problems. If the problem does not occur in Safe Mode, then you can disable your extensions one-by-one until you find out which one is causing the problem. See [[Troubleshooting extensions and themes]] Update Firefox, see [[Updating Firefox]]

  • Warning that the GPU accelerated ray-traced 3D renderer does not have enough free memory to operate

    [UPDATE: Memory handling for the ray-traced 3D renderer is greatly improved by installing the After Effects CC (12.2) or After Effects CS6 (11.0.4) update.]
    You may see a warning message when using After Effects CC (12.1) that the GPU accelerated ray-traced 3D renderer does not have enough free memory to operate.
    When the GPU acceleration of the ray-traced 3D renderer is disabled, the CPU version of the ray-traced 3D renderer will operate.
    The message about the GPU-accelerated ray-traced 3D renderer not having enough free memory to operate is because of a change in After Effects CC (12.1) to actually warn you when your computer was in a dangerously low VRAM state. In After Effects CC (12.0) and After Effects CS6 (11.0), a computer with very little VRAM could still try to use the GPU accelerated ray-traced 3D renderer, but it would very, very, very often crash. So, now, After Effects CC (12.1) is just detecting the condition that would lead to a crash, telling you about it, and disabling the GPU acceleration until you have dealt with the problem.
    So, how do you deal with this low-memory condition? You free up VRAM. This means closing all applicaitons that use GPU memory, which includes web browsers (yes, web browsers these days use the GPU). It also means disconnecting additional monitors, each of which uses a lot of VRAM. In some cases, restarting the computer is necessary.
    This is primarily a problem on Mac OS with cards with 1GB of VRAM, such as the GT 650M in the MacBook Pro. These cards on this OS have just barely enough GPU memory (VRAM) to make use of the GPU-accelerated ray-traced 3D renderer under even the best of circumstances. If you want to use the GPU-accelerated ray-traced 3D renderer, you should really be using a more powerful GPU, one with more VRAM.
    Note that this has nothing to do with the OpenGL GPU features in After Effects. Details of the GPU features are here: http://blogs.adobe.com/aftereffects/2012/05/gpu-cuda-opengl-features-in-after-effects-cs6. html

    hey Todd
    i have the exact same problem but with my new macpro with renderay no matter what i do even a simple 3d extraction the renderay crashes! My cuda is full up to date and everything not sure why! if you have any way to resolve this issue would be awesome and help us out since i am on a deadline! at the moment!
    I have attached a few screen shots and my computer specs! as you can see the GPU Should not be running low on memory xD since its pretty much nearly full speced!
    The error!
    This is what was there! and all i added was a extractor after this and the error above appears!
    and this is my computer specs as you can see there is no lack of Power, Ram or VRAM here! so not sure why this error is occurring even after updating CUDA
    if you have anything else i could try please let me know! Thanks!

  • How can I install a program that comes in a CD when the iMac does not come with a CD entrance?

    How can I install a program that comes in a CD when the iMac does not come with a CD entrance?

    Another option if you have access to a second Mac with a drive is to connect the two together with the iMac in Target Disk Mode,  Transferring files between two computers using FireWire, and installing from the Mac with the optical drive.
    OT

Maybe you are looking for