File move in ODI

Hii...Experts..
I have done a process which takes Files from a directory and load to a single table in one interface(multiple file/single table interface).
but I want to move those files to DONE directory which is loaded to table successfully and move those files to ERROR directory which is not loaded to table.
Please give some suggestion to do it..
Thanks

Hii...Dev..
I am not finding about the only one file. my question is to move those files to 'DONE' directory which are participating in interface and move those files to 'ERROR' directory which are not participating in interface.
I am giving the scenario..
Suppose E:\ODIFILES is my folder where no. of files are present i.e. file1.txt, file2.txt, file3.txt, file4.txt, file5.txt, file6.txt and file1,file2,file4,file6 are same structured and file3,file5 is of different structured.In one interface I want to load the values of files to a table.so I develope a package,which loads all same structured files values to the table,but file3 and file5 is not loaded as it is different structured.
My question is after interface which files loaded to the table I want to move those files to E:\DONE folder and which file are not loaded to table I want to move those files to E:\ERROR folder.How to know which files are loaded to table or not???and how to perform the move of files???
Please help me.
Thanks

Similar Messages

  • How to use ODI tool (file move etc) and plsql in a ODI procdure step

    Hi,
    I need your help to uses both plsql code and ODI tolls in a ODI procedure step.
    Req:
    moving files to different directory Based on the variable value and previous step return code ,
    BEGIN
    IF #SEQ=1 AND <%=odiRef.getPrevStepLog("RC")%> =0
    then OdiFileMove "-FILE=input/#FILE_NAME" "-TOFILE=processed/#V_FILE_NAME" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
    ELSIF #SEQ=1 AND <%=odiRef.getPrevStepLog("RC")%> !=0
    then OdiFileMove "-FILE=input/#FILE_NAME" "-TOFILE=reject/#V_FILE_NAME" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
    END IF;
    END ;
    how do I do that ? which technology I have to use because for plsql I need oracle and ODI file move I need sunopsis
    Please help me.
    Thanks,

    Hello User,
    Use below code, it will work fine.
    Technology: OdiTools
    <@if((<%=odiRef.getPrevStepLog("RC")%>)>0 && #PROJ_FILE.SEQ==1){@>
    OdiFileMove "-FILE=input/#FILE_NAME" "-TOFILE=processed/#V_FILE_NAME" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
    <@}else if ((<%=odiRef.getPrevStepLog("RC")%>)>0 && #PROJ_FILE.SEQ==1){@>
    OdiFileMove "-FILE=input/#FILE_NAME" "-TOFILE=reject/#V_FILE_NAME" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
    <@}@>
    Thank You.

  • ODI file move

    Hi..experts..
    How to move files from one directory to other directory???
    Suppose E:\ODI\FILES directory contains 2000 files and I want to move 1000 files to E:\ODI\FILES_NEW directory.
    How to do it???
    Please suggest..
    Thanks

    Please look into OdiFileMove http://docs.oracle.com/cd/E21764_01/integrate.1111/e12643/appendix_a.htm#autoId39
    Provide the appropriate Mask for the files to be moved.

  • How can I move the ODI Work Repository from one server to another server?

    How can I move the ODI Work Repository from one server to another server?

    Hi,
    If you would like to move your source models, target models and project contents from Work repository 1 to another work repository.
    I.e. Dev. server to Prod Server.
    1. Firstly, replicate the master repository connections i.e. with same naming conventions manually
    2. Go to Dev. Server work repository -> File Tab -> Click on Export work repository (save it in a folder)
    3. After exporting, you can view the xml files in the folders.
    4. Now, Open the Prod. server and make sure you already replicated mas. rep. details.
    5. Now, right click on model and import source model in synonym mode insert_update (select source model from the folder where your xml file located)
    6. Similarily, import again target then Project.
    Now, check. It should work.
    Thank you.

  • How to do file validation with ODI 10.1.3.5

    Hi Team,
    Please help me, how to handle file validation with ODI?
    My source is files.
    Requirement:
    With ODI i have to do the file validation and file data loading successfully. Once it is successfully done then i have to move the particular file and move to different directory.
    Any internal tool is there in ODI package to watch the file.
    Regards,
    Suresh

    Hi Suresh,
    You can do your file loading and validation in an ODI interface.
    Once you are done with the interface, add it to a package, you can set up subsequent steps in the package to move the file to another location using the built in ODI file utilities in the package.
    Terrence.

  • Getting error 8 during a file move with shortcuts

    Hello,
       I am using the file move vi to move files and shortcuts from one folder to another. This works file when I am trying to move files. but when I try to move a shortcut (a file with a extension of *.lnk) the move vi fails and gets a error 8 (permission error). Why is this happening? I am assuming that a shortcut is a file, so I am treating it as a file and therefore expecting the move vi to move the shortcut from one folder to another.
    Regards,
    Kaspar

    It could be that this is related to a bug that has already been discovered and reported. Our R&D deparment is working on it. When LabVIEW copies or moves a shortcut, it actually makes a copy of the file that is the target of the shortcut. However, it adds the ".lnk" extension to the end of the file name. This causes the new file to show up like a shortcut in Windows, but it is not a shortcut. If you rename the file and remove the ".lnk", then the file (the target of the original shortcut) will open without problem.
    One workaround it to use the System Exec VI to copy the file from the Windows command line. See the attached VIs.
    Jeremy P.
    Applications Engineer
    National Instruments
    Attachments:
    Move with Command Line for LNK.vi ‏16 KB
    Copy with Command Line for LNK.vi ‏36 KB

  • Photoshop Elements 11 Organizer failed during folder / file move

    I have a large image collection, in excess of 40,000.  I'm running on a PC with Windows 7 and all updates installed.  I just purchased PSE 11 to replace PSE 10. After installing PSE 11 I converted my catalog.  That seemed to go OK.  At that point I discovered that my C: drive was almost full so I decided to move my image collection from its C: drive location to an external hard drive that had sufficient capacity.  In order to ensure the integrity of the catalog I decided that I should use the PSE 11 Organizer to move the files.  This would allow the Organizer to update the location information for the files as it moved them, although it was clear that this would take many hours to complete.  So, using Organizer I did a "drag and drop" of my image collection's root file from the C: location to the external drive which happened to be the J: drive.  Organizer appeared to be running properly so I left it to continue overnight.  The next morning I discovered that only about 2/3 of the files had been moved.  There was a very cryptic message that said the opertion could not be completed because of "...possibly unsupported files types, files with read only attributes.." etc.  I did not write down the actual message and it did not tell me where in the transfer the failure occurred.  After doing some detective work I discovered that many folders and files had been copied to the J: drive that were not appearing in the Organizer catalog and consequently were not being displayed.  Some folders had only a portion of their files copied.  Fortunately, the files were still visible and cataloged on the C: drive.  I did look at my files on the C: drive and there were some that for what ever reason had read only attributes.
    I don't have a good guess as to what was actually the root cause of the problem, but here's how I think the file movement should happen.  The selected file, files, or folders should be copied to the specified destination.  At that point they should be added to the catalog, then the files should be deleted from their original location and the catalog updated accordingly.  If an original file is read only then it can't be deleted but the attempt to delete it should be reported as an inability to delete with no consequences imposed on the files that have been placed in their new location.  The "problem" should not be promoted to the status of a serious or fatal error that causes only partial completion of the overall operation.

    Bill Junk wrote:
    I've seen a couple postings in the forum that related to catalog conversion failures and suggested that they could be avoided by running in administrative mode.  When I did my conversion is was not in administrative mode and it's certainly possible that there were files with restrictive permission settings that screwed things up.  It's also fairly likely that the catalog itself had some issues that were not detected or fixed by running a catalog repair.
    That's something I had the opportunity to test today : after a fresh install of my second copy of PSE11 on another computer (Vista), I first restored without problem a PSE11 backup from the other computer (XP). Then I tried a restore for a catalog from a PSE6 version on the second computer. The conversion failed the first time and worked the second time when run as administrator. This time, I don't think there were file types problems, since that PSE6 catalog had been restored successfully on a PSE10 version some months ago. I really don't understand that 'administrator' problem, since all my files are situated in a second internal 1 Tb drive with full access for my account ?
    I am not sure about the details of your case, but I understand you have restored exactly the same tree structure in a new J: drive. Your catalog is always accessible in its original location.
    In that case it's possible to simply create a copy of your catalog (a simple copy of the folder containing the database catalog.pseXXdb - to be found in the help menu, system info). Then you need a sqlite database management tool (I use the add-on sqlite manager in Firefox) to simply edit a single record in a table containing the identification of all drives known to the catalog. You simply edit the letter and the serial number of the drive (DOS command VOL:).
    I had a case where I had a catalog and all the media on an external drive. That external drive was assigned a different letter in different computers. Either I used the above solution, or I had to reassign drive letters in one of the computers.

  • Odd file move behavior

    On my startup disk, I have a movie file (.mov) and a folder I want to collect movies in. Straightforward enough.
    So I click/drag the .mov file onto the folder. It shows me the green + icon, and when I let go, it COPIES the file into the folder, not by simply MOVING the file from the disktop to the folder. Wha?
    When I grab that same file in the folder and move it to the disktop, it works as expected, insisting that it must be DUPLICATED, replacing the disktop, original file.
    OK. So instead of doing that, I decide to trash the original file, then move the version out of the folder and back to the disktop.
    In order to do that, I use the contextual menu that drops down with Control+mouse click. It now asks me for my administrator password to do the trash move. (???)
    Once the original has been tossed, the file will now move from folder to disktop and back to folder with complete impunity. But if I try this with another .mov file, the process starts all over again.
    No extra key combo during the original move gets rid of the + icon.
    Permissions were repaired. No change.
    Log off was cycled, no change.
    Obviously somehow this disk has picked up wierdness when Leopard replaced well-tempered Tiger on it, but where is the checkbox that dumps this odd behavior?
    No Right-click on the mighty mouse will bring down the contextual menu at all.

    Yea! The Mac is back on track!
    It took extra innings and a visit to 1 800 APL CARE to get to the bottom of it, but this therapy should be on everyone's A-list: The Install disk's version of Disk Utility is significantly different from any version you can install on your hard drives. Or so it would appear.
    Where the Disk Utility can be there for you on two different hard drives connected to the same computer, running it from different drives is not at all the same - in visible results - as running it directly from the OS X Install Disk.
    You can have several disks with OS X on them and run Disk Utility on your main startup disk from those, but they won't find all the messy permissions that are gumming up your system.
    It took yet another previous back up Restore cycle, an extra clean install, followed immediately by an Install Disk run of Disk Utility's First Aid/Repair Disk Permissions to clear the cobwebs. Frequent re-weedings (after any program installs or upgrades from anybody, including Apple's own) finds more things to fix. Not always, but frequently.
    The Install Disk's Disk Utility--it's not just for breakfast any more.

  • Passing Dynamic File Name to ODI nterface for processing to another system

    Hi,
    I need help regarding passing a Dynamically Name changing fixed length Flat File in ODI Interface. This interface is built for taking the Flat File as Input and process it to SQL Server by applying Data Mapping and transformations... The input Flat File Name is sequence generated for eg: OEORD1123.txt and next file will be OEORD1124.txt and it sits in Oracle Conc tier. How to pass the latest file name to ODI interface for processing
    Regards,
    Anil..

    Hi Guys...
    I would like to suggest a way.
    a) create a single interface with dynamic resouce name (a ODI variable) with a filter to the month column like:
    month_column = '#vCountMonth'
    b) in the refresh tab of a first variable (I named "vMonth"), use the following query: (varialbe should be alphanumeric, "not persistent")
    select to_char(to_date('#vCountMonth','MM'),'month') from dual
    c) create one more ODI variable (I named "vCountMonth"), alphanumeric, not persistent and at its refresh tab write:
    select lpad(to_char(#vCountMonth + 1), 2, '0') from dual
    d) now just create a package, drag and drop the objects in the following order:
    d.1) vCountMonth in set mode and set = 0 (zero)
    d.2) vCountMonth in refresh mode
    d.3) vMonth in refresh mode
    d.4) the interface
    d.5) vCountMonth in evaluate mode, evaluating "= 12"
    ==> if NO (KO, red line) link the KO line to d.2 step
    ==> a OK line is not necessary unless you have others steps after finish the evaluating
    Make any sense? That is a single loop to have the interface developed only one time.
    Please, remember to check each thread reply as Useful or Correct if they are useful to you...

  • Mistake message with file .mov

    In PremierPro CC has a problem with a file .mov says "file has no audio or video streams", but I was working with that file and others, in quicktime error-free reads are not damaged, that I can do? as rescue nearly completed projects? 
    thanks

    Adobe Premier Pro CC is complete reinstall on another computer and check the same problem with the same files, creating new projects and reviewing damage or file does not contain errors, these files if you recognized already had begun as edit them and the program stopped, was closed, and the open left to recognize.

  • Does File Move work in PSE 7.0?

    I have files scattered across two hard drives as a result of having two catalogs. For my primary catalog, I would like to consolidate all of the actual picture files onto a single location on one drive. I tried to use the File > Move command and opted to move the entire catalog. When I tried this and selected the new location, nothing seems to happen. Any ideas?
    Thanks,
    Paul

    The File > Move command does work in 7 (it fixes a serious bug in 6).
    I tried to use the File > Move command and opted to move the entire catalog. When I tried this and selected the new location, nothing seems to happen.
    Do you mean that you selected all the thumbnails (Edit > Select All or Ctrl-A) and then invoked File > Move?  Did you check the Properties pane to see the locations of where PSE thinks the photos are now located?
    In general, however, note that File > Move may not be ideal for your purposes.   That command will move all the selected photos in the single destination folder you select, not preserving any heirarchy of subfolders you may have.  If you want to preserve the folder heirarchy, it will be easier to use Display > Folder Location view.  See this FAQ for more details:
    http://www.johnrellis.com/psedbtool/photoshopelements-6-7-faq.htm#_Move_your_photos

  • What software do I need to move "file.mov" to dvd?

    I'm new to the apple world ...  have miDvD and have moved file.avi to a dvd, but can't seem to be able to do the same with a file.mov that my grandgaughter sent me.   PLEASE HELP

    It lloks like miDVD only supports .mov file that use the H.264 Codec. Do Get Info on your .mov file and see what the codec is. If it's "Motion JPEG OpenDML, Linear PCM", I think you'll need to convert the file to the H.264 codec.
    Below from this link

  • AnyConnect 3.1.01065 error - Failed to install AnyConnect VPN Profile because of file move error. A VPN connection cannot be established.

    I've got a user running:
    AnyConnect 3.1.01065
    on
    Windows 7 64bit.
    Several weeks ago she started encountering the following error:
    -after logging into Windows and launching the AnyConnect client, she enters her username and password and successfully authenticates.
    -the connection is not established and she's presented with the following message: "Failed to install AnyConnect VPN Profile because of file move error. A VPN connection cannot be established."
    After doing some troubleshooting, inlcuding uninstalling/reinstalling the anyconnect client, it seems the culprit is the following file:
    C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Profile\<filename>.xml. When the problem occurs (which is not regularly, sometimes it occurs daily, sometimes just once a week) examining that file indicates it has no security or permissions set. Quitting the AnyConnect software, modifying the file so that the user has full control of it, then relaunching AnyConnect fixes the problem (until it happens again). Uninstalling, and making sure to move C:\ProgramData\Cisco to the trash, then reinstalling did not seem to help.
    The closest match in these forums is the following thread, https://supportforums.cisco.com/message/3760446 - though no clear resolution was given.
    Has anyone else encountered this, and been able to fix it?
    Thanks much.

    Just FYI, it seems at least in this case, purging all the previous system restore points seems to have resolved this issue...

  • File Debatching in ODI

    Hi,
    we have a requirement to read huge amount of data from an Oracle DB view into a flat file. but instead of creating one big file we want to debatch it into a number of smaller files. Does ODI provide any such kind of functionality ?

    I think you'll have to do this either by using filters in the interface to split the data flow, or using some customized jython scripts to "slice" the file after processing.
    Regards,
    -FX

  • Linux file name into ODI variable

    Hello All,
    I have a situation where we have files in one directory in linux ,I want to import the file name into a ODI variable.
    Ex : A_B_C_2014_01_20.zip (inside this zip file are the flat files with data) is the file name in /u02/source_files location , i want this into a ODI variable and once the data loading is complete ,i want to log it saying
    A_B_C_2014_01_20.zip complete
    A_B_C_2014_01_21.zip complete.
    So my other shell script will look for the complete flag and copy the next file into the ODI pick up location.In this case I need to pick up A_B_C_2014_01_22.zip and start the data loading.
    How do i implement this functionality in ODI. Please let me know.

    Issue was due to a syntax error. Case closed.
    Thanks!
    -OS

Maybe you are looking for

  • Message failed in SMQ1: XIAFUSER Password no longer valid

    hello i am having scenario where a sender file adapter picks the file and pushes to the BPM. but when i checked in SXMB_MONI-> PE, i could see message status "Scheduled on the outbound side" When checked in SMQ1 it gave me SYSFAIL error in the queue.

  • CreateDateTime Error

    When I try to create a date with the following parameters Coldfusion always returns the error ( Date value passed to date function CreateDateTime is unspecified or invalid.) Code: <cfset dtaDate = CreateDateTime(2008,03,30,02,20,0)> The problem is si

  • Search results disappeare

    On random occasions when I type some key words in the search bar and then hit enter I can see the results for a brief moment and then they disappear. I then have to click Search again for them to reappear. This happens in Google. Not sure if this is

  • Best way to clean all data n8

    hello, can anyone please tell me whats d best way to clean out all data - phone numbers, photos, videos maps, apps all from d from my n8, i have backed up necessory info usin ovi sync, i just want a clean fresh start with d phone is too full Solved!

  • Dell Laptop Availability

    I've been following a listing for a new Dell laptop for a couple of weeks now and it still shows as out of stock, both online and in stores.  Any idea when I can stop waiting and start buying? http://www.bestbuy.com/site/Dell+-+XPS+Laptop+/+Intel%26%