Loading text files, but the file name is variable

I'm working on a project that will be converting loaded files to some format using an oracle table (external table or otherwise) the problem is that i need to trick the loader so that i dont specify the original file name. the already processed files shall be deleted basically. but how to tell the loader to grap the first file from directory (say using FIFO)wait until the load is done, spool the new format into another dir then load the second file. i was thinking of UTL_FILE in 9iR2 can RENAME a file. So, the external table could be based on
"current_file_to_process.dat" and you would frename a file to be "current".

Hi Paras,
Based on your description, it is not the VS IDE issue, if it is related to the SSIS, I suggest you post the issue in this forum here:http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlintegrationservices
, and there you would get better response.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • I need the detail about how to read the data from spreadsheet file. but the file should not created by labview.

    i face some difficulties here. the datas are encrypted...... how to get correct data ..........

    Excel files are in a propriertary microsoft format. A LabVIEW "spreadsheet" file is a file containing an ASCII table with tabs separating columns and linefeeds separating rows. They are not ther same!
    If you use "write to spreadsheet file" and name the file *.xls, this does NOT make it an excel file, it just tells the operating system to open it with excel if you double-click it. Excel is smart enough to notice that it is not really an excel file and does its best to convert it transparently. The same does not work in reverse.
    You have several options:
    You can use excel to export your data to something LabVIEW can read. Try e.g. tab delimited text.
    You can use e.g. activeX to read an excel file, see: http://zone.ni.com/devzone/cda/epd/p/id/3409
    Search for excel in your example finder for more possibilites.
    LabVIEW Champion . Do more with less code and in less time .

  • Ive deleted alot of movies off my mac but the file name of every movie still remains in all files? how do i get rid of the name? it wont let me delete :(

    i deleted alot of movies off of my mac they are gone and cannot be opened but the movie names still remain in all files in finder? it will not let me delete the names saying alias cannot be found and when i click delete alais the message only comes back up?? help please!!

    Select  ▹ System Preferences ▹ Spotlight ▹ Privacy. The list of items excluded from Spotlight indexing is shown (it may be empty.) Click the plus (“+”) icon to add an item to the list. Select your boot volume (under DEVICES) and add it to the list. Then remove it from the list by selecting it and clicking the minus (“-“) icon.
    Spotlight will rebuild the index. If you try to do a Spotlight search now from the magnifying-glass icon in the top right corner of the display, a pulsing dot will appear in the icon. When the dot disappears, the indexing is complete.

  • 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.

  • 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

  • I have a folder and 3 files stuck on my desktop.  When I drag them to the trash I am asked to enter my administrator's password.  I do this but the files and folder will not delete.  I have checked 'Get Info' on each of them and they are not locked?

    I have an empty folder and 3 .jpg files stuck on my desktop.  When I drag them to the trash I am asked to enter my administrator's password.  I do this but the files and folder will not delete.  I have checked 'Get Info' on each of them and they are not locked and I have full read & write access.  Grateful for any assistance in solving this problem.

    Back up all data.
    Triple-click anywhere in the line below to select it:
    ls -@Oaen De* | open -f -a TextEdit
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    A TextEdit window will open with the output of the command. Post the contents of that window, if any — the text, please, not a screenshot. The title of the window doesn't matter, and you don't need to post that.
    If any personal information appears in the output, anonymize before posting, but don’t remove the context.

  • PP CC 2014 plays video fine from .mts files, but the audio is glitchy and jumpy.

    Premiere Pro CC 2014
    OSX 10.9.5
    I have imported .MTS files from one Canon C100 into PP through the Media Browser. I kept the file structure intact from the camera when copying. When I play a file in the source or program monitor the video plays back perfectly; however, the audio is glitchy and jumpy. It will skip time, jumping forward and backward seemingly randomly. If I open the same clip in Quicktime 10, it plays back 100% normal. I have restarted, reimported, and even transcoded the files to Pro Res 422 using Media Encoder CC 14. Nothing fixed it. The audio glitches the same way in the transcoded Pro Res Files.
    This is only the first of three cards of media. In total I have 120 .mts files in three separate AVCHD folders from a three camera C100 shoot. This leads to another issue I know I will run into. There will be three .mts files named "001," three named "002," etc. I have solved this issue in the past simply by transcoding, but that again failed to work for me thus far. So if I must stick with the .mts files, does anyone know a workflow for using multiple .mts files with the same name in one project/timeline?
    Thanks

    I find it hard to believe that this fixes the root of the problem as the same files playback fine in CS6. CS6 and CC 2014 should be referencing the same codec library on my system, right? If this is the case, then there is something wrong with how CC14 is decompressing the footage with the codecs that are working fine in CS6.
    To further this point. I imported the same files into CS6. CS6 played them back fine, so I saved the session and opened it up in CC14. CC14 converted the project file and all media loaded and plays back normal now.
    So if this is a codec issue, it would not have been solved by opening the files first in CS6. It also would not be solved as so many others report by moving the files and relinking to the new folder. It seems to me to be an import issue that is solely in CC14, not CC or CS6.

  • 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).

  • I have a few hundred duplicates in my iPhoto library, but the file sizes are different.  So one is 1.3mb and one is 567kb.  I want to delete the smaller ones, but short of comparing each duplicate, is there a way to do this?

    I have a few hundred duplicates in my iPhoto library, but the file sizes are different.  So one is 1.3mb and one is 567kb.  I want to delete the smaller ones, but short of comparing each duplicate, is there a way to do this?  I've been looking at Duplicate Annhilator but I don't think it can do it.
    Thanks!

    I just ran a test with iPhoto Library Manager, Duplicate Annihilator, iPhoto Duplicate Cleaner, Duplifinder and Photodedupo.  I imported a folder of 5 photos into a test library 3 times, allowing iPhoto to import duplicates.  I then ran the 5 photos thru resizer to reduce their jpeg compression but all other aspects of the file the same.
    None of the duplicate removal apps found set that was reduced in the file resizer. That's probably due to the fact that the file creation date was being used as a criteria and the resized photo would have a different file creation date even though the Image Capture date was the same.
    They all found the 3 regular duplicates and some of them would mark two and leave the 3rd unmarked.  iPhoto Duplicate Cleaner can sort the found duplicates by file size but if the file was edited to get the reduced file size it might not be found as it would have a different file creation/modification date. 
    iPhoto Library Manage was able to find all duplicates and mark them as such if the file names were the same the the filename option was selected.  Otherwise it also missed the modified, resized version.  It allowed one to select the one photo to save before going to work on the library.
    So if a photo has been reduced in image quality or pixel size it will not be considered a duplicate.
    OT

  • Issue in Download file - If the file name is same

    Hi Experts,
    I have a requirement to download the company code hierarchy data into a file. On selection screen I am giving the file path along with the file name If I run the report it is downloading the data into the particular file in the file path this is expected result but if i am running the report with same filename which is already exists in the same path then instead of replacing the file with new data it is appending the data to that file.
    But my expected result is: If the file name is same, file should be replaced with the Current Data instead of Appending the file.
    And this issue is happening for the file formats TXT and CSV and also this issue is happening only when i am saving to the local drive.
    I executed  the report by giving the file name Eg: " XXXX.xls" extension even in this case the records getting replaced with the new data, problem is when the file extension is with TXT and CSV formats.
    FYI... to download the data i am using the below funtion module and i am passing the below parameters: Please correct me if i am wrong.
       CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
           FILENAME                        = G_LFILE
           FILETYPE                        = G_FILETYPE
           APPEND                          = 'X'
           WRITE_FIELD_SEPARATOR           = GC_FIELDSEP    " Passing X
           TRUNC_TRAILING_BLANKS           = GC_TRUNCBLNKS " Passing X
           DAT_MODE                        = GC_DATMODE                 "Passing X
           CODEPAGE                        = G_LCODEPAGE
          TABLES
            DATA_TAB                        = GT_ITAB_HIER1
         EXCEPTIONS
           FILE_WRITE_ERROR                = 1
           NO_BATCH                        = 2
           GUI_REFUSE_FILETRANSFER         = 3
           INVALID_TYPE                    = 4
           NO_AUTHORITY                    = 5
           UNKNOWN_ERROR                   = 6
           HEADER_NOT_ALLOWED              = 7
           SEPARATOR_NOT_ALLOWED           = 8
           FILESIZE_NOT_ALLOWED            = 9
           HEADER_TOO_LONG                 = 10
           DP_ERROR_CREATE                 = 11
           DP_ERROR_SEND                   = 12
           DP_ERROR_WRITE                  = 13
           UNKNOWN_DP_ERROR                = 14
           ACCESS_DENIED                   = 15
           DP_OUT_OF_MEMORY                = 16
           DISK_FULL                       = 17
           DP_TIMEOUT                      = 18
           FILE_NOT_FOUND                  = 19
           DATAPROVIDER_EXCEPTION          = 20
           CONTROL_FLUSH_ERROR             = 21
           OTHERS                          = 22
        IF SY-SUBRC <> 0.
          G_FNAME = G_LFILE.
          MESSAGE E043(ZFI) WITH G_FNAME.
        ENDIF.
    Can any one please provide me the solution.
    Thanks in advance.
    Koushik

    Hi all,
    Issue got resolve. I have used the class CL_GUI_FRONTEND_SERVICES
    and the methods file_delete and file_exist. below is the sample code :
      1)  Write the below code in subroutine “PEFORM FILL_DATA_FILE” to check the given file exists in the directory or not.
    DATA: lv_FILENAME TYPE STRING,
               lv_RESULT  TYPE C,
               lv_rc TYPE i.
               lv_FILENAME = g_lfile.
        CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_EXIST
          EXPORTING
               FILE                 = lv_FILENAME
          RECEIVING
               RESULT               = lv_RESULT
          EXCEPTIONS
               CNTL_ERROR                          = 1
               ERROR_NO_GUI                     = 2
               WRONG_PARAMETER          = 3
               NOT_SUPPORTED_BY_GUI  = 4
               OTHERS                                   = 5.
        IF lv_RESULT = 'X'.
          lV_RC = '1'.
        ELSE.
          lV_RC = '0'.
        ENDIF.
      2)  If the given file is exists in the directory(or in the given file path) delete or modify that file with the current data
          for that add the below code :
             IF lv_rc = 1.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_DELETE
          EXPORTING
            FILENAME             = lv_FILENAME
            CHANGING
            RC                           = lv_RC
          EXCEPTIONS
            FILE_DELETE_FAILED   = 1
            CNTL_ERROR                = 2
            ERROR_NO_GUI           = 3
            FILE_NOT_FOUND       = 4
            ACCESS_DENIED           = 5
            UNKNOWN_ERROR      = 6
            NOT_SUPPORTED_BY_GUI = 7
            WRONG_PARAMETER      = 8
          OTHERS               = 9.
        IF SY-SUBRC <> 0.
           *           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           *           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.       
       ENDIF.
       ENDIF.
    Thanks,
    koushik

  • How do I get a "Details" display--as the default--when downloading a file, in the "Enter name of file to save to..." dialog box?

    When I receive an attachment to an email, and I click it and select "Download", I get the "Enter name of file to save to..." dialog box (because I already set the option to "Always ask me where to save files." But the file display always defaults to a "List". At least recently. I don't recall it always doing that. In any case, I want it to default to a "Details" display, in ascending order, as I can then find things sooo much faster that way. (I often use the "Date Modified" tab to bring to the top the most recent version of a file.) I know that I can go to the "View Menu" icon and select "Details", but each time I go into a sub folder while in this dialog box, I have to do that all over again and it wastes a lot of time and attention.
    I did some internet searches but didn't find a way to fix this.

    Thanks for reaching out, glennr.
    The dialog box you are describing is controlled by Windows, not Firefox, so unfortunately Firefox cannot change what you see by default.
    I think your best bet would be to ask on the [http://answers.microsoft.com/en-us/windows/forum/windows_xp?auth=1 Windows support site].

  • 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

  • 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

  • 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 !");
    }

  • Importing files of the same name in *different* folders?

    Yes, yes, we all know about the RAW+JPEG and whatever else argument.
    But why should I be prevented from importing identical files that are stored in different folders? Who cares if they are in the library twice?
    I haven't figured out if it's just a name issue (don't think so) or if the files have to be truly identical.
    I *think*, but am not sure, that you can import separate files of the same name but that are actually different images. Can anyone verify?
    Lee Jay

    Bob,
    It appears that you can import duplicate named files by unchecking the "ignore Duplicates' box--the first time you import files (or a file) from a folder. But, if you go back to that folder to use 'import' to update, then the import takes place immediately bypassing the screen with the "ignore Dulicates' box on it--I presume it assumes that you would not want to change any of the original settings for an import from a given folder.
    The point is you had better leave it unchecked always if you want duplicates ingested intially or later on reimport.

Maybe you are looking for

  • A bug in calendar?!

    Do you realize that the function "calendar" in iPad with ios6 has a bug? When you try to open the month of March 2013 the app suddenly shut down....how can we inform the Apple support about that?

  • Doubt Regarding Materialized View

    Hello, I am working on Oracle 10g. We have multiple materialized Views which we Refresh in every 15 mins. My question is that can we get data from these MV's for a particular date....??

  • Lockbox - clearing SAP documents issue

    Hello all, Me along with our functional consultant are trying to figure out a lockbox document clearing issue and hope you could through some suggestions in. We are using FLB2 to clear SAP documents by using different search rules for invoice numbers

  • Wifi connection slow on Lenovo Twist s230u

    Hello! For the first time in my life I am posting my own problem to a forum, after three days of almost no sleep, trying to fix this problem. No matter on what Wifi network, the internet speed tested in a few speed testing sites never passes 0.4 Kbp/

  • Custom templates deploying for office 2010

    Hello I am stuck on deploying custom office templates following the guide on http://technet.microsoft.com/en-us/library/cc178976(v=office.14).aspx The problem is, templates for Word, Excel, PowerPoint are no problem. but what about Theme Templates, C