For each loop in case of more file with the same name

Hi, guys how works ForEachLoop in case of double file? Let's say that we got five excel file. A.xls, B.xls, C.xls, D.xls, A.xls. We got two file with A.xls. I'm going to assume that both file will be loaded. It's correct? 
I'm asking this because I need to check if I got two file with the same name ( I got hundreds of file to load). And in the same time I need to avoid to load two file with the same title ( cause I could double the data)

If there are duplicate file names in subfolders then you should fill the variable with the complete path. See C in this images:
Please mark the post as answered if it answers your question | My SSIS Blog:
http://microsoft-ssis.blogspot.com |
Twitter

Similar Messages

  • After installing latest update Realplayer recording no longer works, I think Mozila is using a library file with the same name

    After installing the latest update to Firefox onto Vista operating system the record part of real player no longer works, I think Mozila and Real are using a library file with the same name and the Mozila update is overwriting a Realplayer library file.

    I was giong to say, "Help me, Adobe Joe Kenobi", but it looks like you're growing a beard waiting for an answer, too.
    The same thing happened to me today. I trusted the "update" message since it was from Adobe, and apprently did so at my own peril. Now I get the "failed to load Core dll" message with a secondary reference to a memory address.
    Just an observation, but what good are these forums when there are no answers? I see this problem as "Caused by Adobe Update", and would expect them to troublshoot and offer up a remedy. Since you've been waiting over two months with no response, I suppose it's time to trek off wasting more of my precious time to fix their problem. If I find the solution, I'll post it back to you.
    May the Force be with you.
    Mark

  • Cloning OS2 HDD to USB stick hangs at a file with the same name ???

    Hi,
    I'm dragging my MacIntosh HD icon to a large USB stick in order to clone it because I'm going to install OS X Tiger onty my iMac G3/400 DV SE. The copying initiates, it starts, and after a few hundreds of MB's a small window pops up with this remark (translated from Dutch) :
    " The file XXXXX cannot be copied because another file with the same name exists already." The window has two buttons : STOP and Continue. No matter which button I click, the process stops and I'm left with a few hundred MB on my USB stick. Deleting the "double" file doesn't help because a few minutes later another one pops up.
    How is this possible? The USB stick is completely empty! Can anybody tell me what's going on and how to stop this, otherwise I'll never be able to clone the HDD.
    Thanks for your kind information,
    Paul

    It was a bug in Classic OS, which was manifest in certain circumstances. My workaround was, at that time, to isolate the rascal (was possible, like in your case), eliminate it, then add it later.
    Such events may occurs with Mac OS X files too, I cannot figure out why. One or two apps in my software archive usually do that.
    another workaround it to archive it (.zip now, .sit in classic Mac OS), check whether applicable.

  • The same file with the same name need to call two RFC's with the sequence

    i have to pick up the same file with the same name  and call the two RFC in sequence
    scenario.i have xxx.txt file.file should be proces first calling the first rfc .
    I created two different communication channels
    for the first sender file communication channel i should not use processing mode archive,delete,Test
    and only option is set read only.
    if i set the read only the file ..then i can not use the same file again to call second RFC.
    how we can acheive the above scenario?
    Regards,
    Hyma

    If you want to file need to be picked up twice in same folder, it seems it is hard for PI adapter to achieve it, you should look for API's that control adapters availibility.
    But if you have different folder, then it make your scenario simpler since you can process first time, then output to another folder, configure another adapter to pick up from different folder.
    Regards
    Liang

  • How do I make Applescript to compress 2 filez with the same name?

    Hello guys and thank you for reading this!
    I don't know a lot about programming, but i believe applescript can save my life. What I need is.
    Detecting 2 files with the same name, but differnt extension. (song 1.jpg, song 1.mp3)
    Compressing those 2 files into a single .zip (In the end I would have song 1.jpg, song 1.mp3 and song 1.zip
    And that's it! I know its pretty simple, and I've seen the "Create Archive" in automator, but I don't really know how to tell him which files to Compress.
    Thanks again!

    Hi,
    Try this script :
    set sourceFolder to choose folder
    tell application "System Events"
          {name, name extension} of (files of sourceFolder whose name extension is not "zip")
          my compress2FilesSameName(the result, sourceFolder as string)
          repeat with i in (get folders of sourceFolder) --check in subfolders
                {name, name extension} of (files of i whose name extension is not "zip")
                my compress2FilesSameName(the result, path of i)
          end repeat
    end tell
    on compress2FilesSameName(tList, tFolder)
          set tnames to item 1 of tList
          set tExtensions to item 2 of tList
          set tc to count tnames
          set j to 1
          repeat while j < tc
                tell (item j of tExtensions) to if it is not missing value or it is not "" then
                      set n1 to (count) + 2
                else
                      set n1 to 1
                end if
                tell (item (j + 1) of tExtensions) to if it is not missing value or it is not "" then
                      set n2 to (count) + 2
                else
                      set n2 to 1
                end if
                set name1 to item j of tnames
                set name2 to item (j + 1) of tnames
                if (text 1 thru -n1 of name1) = (text 1 thru -n2 of name2) then -- same name
                      set tFile1 to quoted form of POSIX path of (tFolder & name1)
                      set tFile2 to quoted form of POSIX path of (tFolder & name2)
                      set zipFile to quoted form of POSIX path of (tFolder & (text 1 thru -n1 of name1) & ".zip")
                      do shell script "/usr/bin/zip -j  " & zipFile & " " & tFile1 & " " & tFile2
                      set j to j + 2
                else
                      set j to j + 1
                end if
          end repeat
    end compress2FilesSameName
    if an archive already exists with the same name (in the parent folder of the files to compress) , the ZIP command overwrite this ".zip" file.
    Example  with "song 1.jpg", "song 1.mp3" and "song 1.zip" :
    If "song 1.zip" doesn't exist, the ZIP command create the "song 1.zip" file.
    If "song 1.zip" exist, the ZIP command overwrite the "song 1.zip" file (it will not create a new archive).

  • Create a dir if there exists a file with the same name

    Hi..
    I want to create a directory with file.mkdir(). But I recognize a problem when there is allready a File with the same name.
    Is there any solution to handle a dir and a file with the same name?
    eg: Dir "C:\Windows" and File "C:\Windows"
    wami

    This explains it... use "java Test2 asdsfd" for example. While this example doesn't show it,
    if you try to create a dir with another slash on it c:\blah\ , it still can't be done.
    import java.io.*;
    public class Test2
    public static void main (String args[]) throws Exception
         if (args.length < 1){
         System.out.println("Test2 [name]");
         System.out.println("creating bogus file " +args[0]);
         FileOutputStream fo = new FileOutputStream(args[0]);
         fo.write(55);
         fo.write(55);
         fo.write(55);
         fo.close();
         File x = new File(args[0]);
         if (x.mkdir()) System.out.println("made dir " + args[0]);
         else System.out.println("failed to make dir " + args[0]);
         System.out.println("deleting file " + args[0]);
         x.delete();
         if (x.mkdir()) System.out.println("made dir " + args[0]);
         else System.out.println("failed to make dir " + args[0] + " again !");
    }

  • How to open a file with the same name?

    Hi, now I practicing making web pages where I put sample codes in one directory and I copy them to edit.
    The probrem is, I couldn't open one file while I'm opening another file with the same name.
    Is it possible to open  a file with the same name in Dreamweaver?

    That could be a very error prone practice.
    May I suggest you take advantage of DW "Snippets" feature instead.
    Simply save any blocks of code you will reuse regularly as snippets,
    and give each one a descriptive name you like.
    Then you can simply place your cursor in code view where you wish the code,
    and click insert on the selected item from the snippet panel.

  • How to put two files with the same name into the same folder?

    How can I put two files with the same name and the same extention into the same directory?
    Is this even possible?
    Thanks in advance. 

    Are you sure? I would be very surprised if that was the case.
    How does the computer/filing system differentiate the files, if not by their names?
    How do you tell the computer which one you want? (On the command line.)

  • Dng and tif file with the same name, in the same Lightroom folder

    If I have both a dng and tif file with the same name, in the same Lightroom folder, I can only see and access one of them. Is there a setting I can change in order to see both of them?

    If you can only see one of them, which one can you see?
    Was the DNG and the TIF imported at the same time?
    How are you trying to "access" the files?
    The more details you can provide, the more likely it is that someone will be able to help you.

  • How can I overwrite a file with the same name in Content DB?

    Hi All,
    In Content DB if I upload a file with the same name as a previous one, the application shows the warning message:
    " ...You cannot upload "XXXXXX.doc" to "Test 1" because an item with the same name already exists ..."
    And the alternatives are "Create Version" or "Cancel" the operation. Is there any way to overwrite a previous file as we can do it in Oracle Files ?
    Regards
    Harvey

    Hi All,
    Can anybody from the Content DB product development answer this question?
    Regards
    Harvey

  • Is it possible to have two files with the same name on my Zen To

    Hia,
    Is it possible to have two mp3 files with the same name?; I.e if I'm ripping a Bach CD, there are several tracks that have the name preludium, and I hate to do the rename.
    Also, will I be able to sync my Zen so that It will only recieve new files that have been added since I last connected my Zen to my computer?
    regards,
    Fredrik

    I believe same filename is OK because the Zen Player does not really care about filename. As far as I know, the Zen database of the tracks in the player is based on the track information such as Title, Artist, Album and Genre. This means you cannot have two tracks of the same Title, Artist, Album and Genre in the Zen Player.

  • I'm trying to put movies onto my hard  drive but i can't put the files with the same name onto the hard drive , finder won't let me change the name

    I'm trying to put movies onto my hard  drive but i can't put the files with the same name onto the hard drive , finder won't let me change the name. What am i doing wrong?

    Make a new folder and put them in that different folder. Then the names can be the same as others already on your drive.

  • Updating vs. Deleting Folder files with the same name

    Hello all,
    Bear with me as I try to explain this.
    First off, I'm a long time Windows user who just happily converted to Mac. I'm loving my mac so far, but I've run into a snag that I hope to get clarification on.
    Let me set up a scenario on how this works with Windows.
    Let's say I have two folders/root directories labeled as today's date "20100729" with image files in them. Each folder has different picture file names. In other words, the files in each of folders are different. The only thing that is the same is the Folder/Directory name, which in this case is "20100729".
    So, in a windows environment let's say that each of these folders (with the same name) are located on 2 hard drives (A & B). If I take the folder from drive "A" and drop it in drive "B", windows seamlessly combines the files from both folders into one.
    On the flip side, when doing the same thing on my Mac, the entire folder contents from drive B gets replaced from drive A, even though the file names are all different. Which is very annoying.
    If you understand what I'm saying and know of a way for this to work the "Windows" way please let me know.
    Thanks in advance for your help. Let me know if you need further clarification.
    Cheers,
    - Jeff

    Use the ditto command in the Terminal, which is in the /Applications/Utilities/ folder; for instructions on its use, enter 'man ditto' without the quote marks into the Terminal prompt.
    (53065)

  • Unable create a target file with the same name

    Hi,
    I have to pick an attachment from a web service and place the attachment in
    a folder, with the same name (Attached File Name). I tried this using SOAP to file
    scenario. Using SOAP, I'm able to get the attachment inside PI with the same
    name, but not able to generate the file in the receiver end.
    Please let me know if this is possible or else is there any other way to do
    it.
    Regards,
    Deepak Ravi

    Check also:
    Combining three different aspects of PI (ASMA, AF Module and variable substitution) in one shot
    Dynamic Configuration vs Variable Substitution - The Ultimate Battle for the File Name
    Regards

  • Multiple image files with the same name

    I have about 150 images that have been imported into a single lightroom folder that have the same name. These images are from a single event, so Id like to keep them together. The source files are in two different folders on my drive, but they all exist in one folder on lightroom. (for instance, I have two different images, both named CR-0917, both with different retouching). Initially, Lightroom allowed me to do all of my editing on all of the files in one place, even though the names were the same. I have since moved the source folders and files to a different location on my hard drive, but I can't update the files within the folder in lightroom, because lightroom chooses one source, so it gets about half the images right, and half wrong. I spent a ton of time retouching these images and I dont want to have to go back and redo it.
    Is there a way to manually update the source information for each image, without Lightroom automatically using all of the images from a single folder? Or does anyone have any other ideas of what I can do? Please help...

    I am puzzled about how this problem initially arised, too.
    For the issue with several cameras I recommend the following:
    1. If the camera lets you, specify a unique prefix so that each photo will have a unique name directly from camera.
    E.g. Nikon lets you change their default prefix "DSC" to something else. As I even do not want to have recurring filenames after 10'000 shots I choose "yFL" as prefix, where y=number from 0..9, F=starting letter of ther first name of the camera owner, L=last name. Or other 2 digits that point to the camera model.
    For current decade it is even nice to take y=1 for 2011 and so on. As I do roughly 10'000 shutters per year that fits about nicely. [Ok, as of 2020 I will use letters, too. 2046 I have to devise something else hoping that I will still be shooting photos with my same husband.]
    2. If the camera does not facilitate such, as Canon: rename upon LR-import by putting a short prefix in front of the originial filename, e.g. yS90_, yG12_
    I only want from a filename that it be unique in my household and that I have a rough idea where in sequence of time it may belong.
    So if I get pictures from friends I put a prefix for them, too, while importing. Leaving the rest of their original filename is good for further communication about the pic.
    I think usually LR takes more properties into account than just filename when deciding about duplicate, such as camera serial no., capture time etc.
    Anybody who knows for sure?

Maybe you are looking for

  • I remove lyrics from iTunes, but they still show up in my iPhone :(

    So I download a song and it came with some unwanted text. I clicked on the song, went to file>get info, clicked on the lyrics tab, and removed the text. Then I synced my iPhone. However, the unwanted text still show up in my iPhone. What can I do to

  • Tips for users of ThinkPad x41

    I had some problems after formatting the hard drive of the ThinkPad X41. Here is my experience how to solve these problems.  Maybe it will be useful to somebody. 1. If you have to re-install your Windows connect the CD (DVD) USB drive  to your comput

  • After Downloading itunes 8.2.1, iPod Touch won't sync

    I have repeatedly (6+ times) have tried to sync my iPod Touch with the recently updated iTunes 8.2.1 and every time it hangs in sync and gives me the error message: applemobiledevicehelper quit unexpectedly Then after doing force quit, the sync icon

  • Problems with MobileMe contacts sincyng

    I'm a MobileMe, Mac and iPhone user and I usually sync all my data with no problem However for some reason I cant sync my contacts in my Mac with with my contacts in MobileMe. Also I find some of my contacts names overwritten with other names in Mobi

  • Cracked glass

    cracked glass should be under warranty? accidentally dropped the iPod touch not even 3 feet and the glass cracked. that is a very "POOR GLASS"considering you pay a huge amount and apple will not cover it under their warranty?