URGENT: ODI- File delete in a session.

I have Query regarding "odifiledelete".
I have a scenario where i generate a file using interface n map it to a odi package and then i want to delete it through ODIFILEDELETE tool, with interface being the first step.
But it throws a error of "unable to delete".
My understanding is..
The file is in a session where it is generating and deleting in same session.
Hence it cant be deleted because it is using by odi.exe.
Please correct me if i am wrong and provide me with some solution.
Thanks ..

Thanks for your quick reply.
Its correct also.
But I have a little different scenario..
1.) I have a package of lets say 7 steps.
2.) Two of the steps is two interface writing into a same file.
3.) one step is for logging the success of both interface.
4.)one step to delete the file in case if one interface writes data in file and other interface aborted.
5.) one step to log the failure of the interface and "ODIFILEDELETE" step.
So ODIFILEDELETE steps comes in between of these steps.
Now even if my deleting file step fails.., it gets logged into a file. Hence my end to end flow works in any scenario.
Now If i do it your way then my file gets deleted even wen my both of the interface worked.
I want a logic which detects error in abortion of any step in scenario and then delete file in another scenario.
I hope I could make my points clear.
Thanks.

Similar Messages

  • Student File - Delete Session

    I have a doubt,
    In PIQST00 in the registration tab are the sessions of each student. When i delete a session  the standard it uses the function HRIQ_STUDENT_REG_CANCEL_DIAL, but this function CANCEL the session with a status.
    We need to delete all the sessions of each student in DB not cancel the session with a status because we made a bad migration i we don't need that bad data in the client. Because of this we found the function HRIQ_STUDENT_REG_DELETE_DB. This one work fine, but i need the suggestion if this function affect the grades or another process when i delete the session in DB.
    Please i need the directions in this matter.
    Thanks
    Cesar Felce

    Hi Cesar,
    In order to delete the registrations I recommend you to use function:
    HRIQ_REGISTRATION_DELETE_MASS
    Here you will be able of sending a table of students and the begin and end date as parameters. Besides deleting the registrations for the student, this function will also do the following:
    - Delete notes for the related CS objects
    - Delete the related CS objects
    - Delete relationship 530
    - Delete activity documents of type R*
    best regards,
    Diego

  • Help with File.delete()

    Hi All!
    I am doing the following code:
    String indexPath = "Y:/var/session/ZGCoVyCCcooSl1uHRYCAWg.idx";
    File idxFile = new File(indexPath);
    if(idxFile.exists())
    System.out.println(indexPath + " exists.");
    else
    System.out.println(indexPath + " does not exist.");
    boolean idxDeleted = idxFile.delete();
    if(!idxDeleted)
    System.out.println("could not delete " + indexPath);
    if(idxFile.exists())
    System.out.println("failed to delete " + indexPath);
    When I run this code I get the following output:
    Y:/var/session/ZGCoVyCCcooSl1uHRYCAWg.idx exists.
    Which means that the file existed and the file is deleted. But, actually file is not deleted. When I try to manually delete the file, I get "sharing violation" error. I am running this code on a Windows 2000 server system and JDK1.4. I appreciate any help.
    thanks,
    Padma.

    That IS strange. I don't have a Win2K server to test on, but I know Win2K Pro (at a client's site) seems incredibly slow at a lot of things, like when working with WinExporer. Someone told me it had to do with a configuration option. Perhaps there is something in the config telling your server to defer file deletes, e.g. "lock" the (to be)deleted file so no one can access it, mark it for deletion, but defer until later during a lull when all pending deletes can be batched at once. That would explain why you can see it, but not access it, and it goes away after some time. Then again, I might be TOTALLY out in left field... :(

  • Trying to delete file from trash but get this: The operation can't be completed because the item "File name" is in use. All other files delete except this one. Please help

    Trying to delete file from trash but get this: The operation can’t be completed because the item “File name” is in use. All other files delete except this one. Please help

    Maybe some help here:
    http://osxdaily.com/2012/07/19/force-empty-trash-in-mac-os-x-when-file-is-locked -or-in-use//

  • HT2674 I have an iMac purchased in May 2011.  OSX Lion 10.7.3.  I deleted backup file from the external hard drive. Now, the trash can will not empty some of the files deleted.  File folder: "Core Services" contains a locked file: "boot.efi".  It will not

    I have an iMac purchased in May 2011.  OSX Lion 10.7.3.  I deleted backup file from the external hard drive which operates from Time Machine.
    Now, the trash can will not empty some of the files deleted from the backup harddrive.
    The trash contains-- File folder: "Core Services" which contains a locked file: "boot.efi". 
    It will not delete.
    How do I get the trash can empty of these files?

    Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
    In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think?

  • File.delete() and File.deleteOnExit() doesn't work consistently..

    I am seeing some odd behavior with trying to delete files that were opened. Usually just doing new File("file.txt").delete() would work. However, in this case, I have created an input stream to the file, read it in, saved it to another location (copied it), and now I am trying to delete it.
    The odd thing is, in my simple application, the user can work with one file at a time, but I move "processed" files to a lower pane in a swing app. When they exit it, it then archives all the files in that lower pane. Usually every file but the last one opened deletes. However, I have seen odd behavior where by some files don't delete, sometimes all of them wont delete. I tried the deleteOnExit() call which to me should be done by the JVM after it has released all objects such that they don't matter and the JVM ignores any object refs and directly makes a call (through JNI perhaps) to the underlying OS to delete the file. This doesn't work either.
    I am at a loss as to why sometimes some files delete, and other times they don't. In my processing code, I always close the input stream and set its variable to null. So I am not sure how it is possible a reference could still be held to the object representing the file on disk.

    and then, in the other class
      public int cdplayerINIToMMCD(File aDatabase, String thePassword) throws IllegalArgumentException {
         /*---------DATA---------*/
         String dbLogin, dbPassword;
         JFileChooser fc;
         INIFileFilter ff;
         int dialogReturnVal;
         String nameChosen;
         File INIFile;
         ProgressMonitor progressMonitor;
         BufferedReader inFileStream;
         String oneLine;
         int totalLines = 0;
         int linesParsed = 0;
         boolean openDBResult;
         int hasPassword;
         if ((aDatabase == null) || (!aDatabase.exists()) ||
            (FileManagement.verifyMMCD(aDatabase) == FileManagement.VERIFY_FAILED)) {
            throw new IllegalArgumentException();       
         else { 
            currentDB = aDatabase;
            if(thePassword == null) {
              dbPassword = "";
            else { dbPassword = thePassword; }
            dbLogin = dbPassword; //For MSAccess dbLogin == dbPassword
         //Ask the user for the cdplayer.ini file.
         //Create a file chooser
         if (System.getProperty("os.name").indexOf("Windows") > -1) {
            fc = new JFileChooser("C:\\Windows");
         else {
            fc = new JFileChooser();     
         fc.setMultiSelectionEnabled(false);
         fc.setDragEnabled(false);
         //Create a new FileFilter
         ff = new INIFileFilter();
         //Add this filter to our File chooser.
         fc.addChoosableFileFilter(ff);
         fc.setFileFilter(ff);
         //Ask the user to locate it.
         do {
            dialogReturnVal = fc.showOpenDialog(mainFrame);
            if (dialogReturnVal == JFileChooser.APPROVE_OPTION) {
               nameChosen = fc.getSelectedFile().getAbsolutePath();
               if(nameChosen.toLowerCase().endsWith(INIFileFilter.FILE_TYPE)) { INIFile=new File(nameChosen); }
               else { INIFile = new File(nameChosen+INIFileFilter.FILE_TYPE); }
               if (!INIFile.exists()) {
                  continue; //If the name specified does not exist, ask again.
               else { break; }
            else { //User clicked cancel in the open dialog.
               //Ignore what we've done so far.
               return(IMPORT_ABORTED);
         } while(true); //Keep asking until cancelled or a valid file is specified.
         //Determine how many lines will be parsed.
         try {
           //Open the INI for counting
           inFileStream = new BufferedReader(new InputStreamReader(new FileInputStream(INIFile)));
           while ((inFileStream.readLine()) != null) {
               totalLines++;
           //Close the INI file.
           inFileStream.close();
         } catch (IOException ex) { return(IMPORT_FAILED); }
         //Make a progress monitor that will show progress while importing.
         progressMonitor = new ProgressMonitor(mainFrame, "Importing file","", 0, totalLines);
         progressMonitor.setProgress(0);
         progressMonitor.setMillisToPopup(100);
         progressMonitor.setMillisToDecideToPopup(1);
         //Make our DatabaseHandler to insert results to the database.
         dbh = new DatabaseHandler();
         //Open the database connection.
         do {
           try {
              openDBResult = dbh.openDBConnection(currentDB, dbLogin, dbPassword);
           } catch(JDBCException ex) { return(IMPORT_JDBC_ERROR); } //OUCH! can't write anything.
             catch(SQLException ex) {
                 openDBResult = DatabaseHandler.OPNCN_FAILED;
                 //Can not open the database. Is it password protected?
                 hasPassword = JOptionPane.showConfirmDialog(mainFrame, "Could not open the database. "+
                                                "The password is wrong or you have not specified it.\n"+
                           "Do you want to enter one now?", "New password?", JOptionPane.YES_NO_OPTION);
                if (hasPassword == MMCDCatalog.DLG_OPTN_YES) {
                   dbPassword = JOptionPane.showInputDialog(mainFrame, "Please enter your "+
                                                              "password for the DataBase:");
                    dbLogin = dbPassword; //For MSAccess, login == password                                                    
                //If the password wasn't the problem, then we can't help it.
                else { return(IMPORT_FAILED); }
         } while(openDBResult != DatabaseHandler.OPNCN_OK); //If it is OK, no exception thrown.
         //Import the ini file
         try {
            //Open the INI file for parsing.
            inFileStream = new BufferedReader(new InputStreamReader(new FileInputStream(INIFile)));
            //Read and parse the INI file. Save entries once parsed.
            while ((oneLine = inFileStream.readLine()) != null) {
               parseLine(oneLine);
               linesParsed++;
               progressMonitor.setNote("Entries imported so far: "+entriesImported);
               progressMonitor.setProgress(linesParsed);
               if ((progressMonitor.isCanceled()) || (linesParsed == progressMonitor.getMaximum())) {
                  progressMonitor.close();
                  break;
            //Close the INI file.
            inFileStream.close();
         } catch (IOException ex) {
              //Make absolutely sure the progressMonitor has disappeared
                progressMonitor.close();
                if (dbh.closeDBConnection() != DatabaseHandler.CLSCN_OK) {
                 JOptionPane.showMessageDialog(mainFrame, "Error while reading the INI file.\n"+
                    "Error while attempting to close the database", "Error", JOptionPane.INFORMATION_MESSAGE);
              else {
                 JOptionPane.showMessageDialog(mainFrame, "Error while reading the INI file.",
                                                    "Error", JOptionPane.INFORMATION_MESSAGE);     
                return(IMPORT_FAILED);
         //Make absolutely sure the progressMonitor has disappeared
         progressMonitor.close();
         //Close the database connection
         if (dbh.closeDBConnection() != DatabaseHandler.CLSCN_OK) {
            JOptionPane.showMessageDialog(mainFrame, "Error while closing the database after import.",
                                          "Error", JOptionPane.INFORMATION_MESSAGE);
         //Did the user cancel?
         if (totalLines != linesParsed) {
            return(IMPORT_ABORTED);     
         //Success!
         //Everything ok. Return the number of entries imported.
         return(entriesImported);
      }

  • File.delete() not working properly

    Hi Forum!!
    I am trying with the below code :
    File file = new file("path");
    try{
    if(file.exists())
    System.+gc+();
    file.delete();
    System.+out+.println("Control in delete trx file after deletion"+ file.exists());
    }catch(SecurityException se){
    String msg= "Delete trx file if 3gttz file created : IO Problems";
    Log.+error+(msg, se);
    }file.exists() returns false But I when I check file, it still exhists with content 0 bytes .
    Is there a way to remove the entire file from the directory rather than deleting only the
    contents ? Need not to tell I did my initial search to solve the problem.
    Thanks
    Edited by: jagabandhu on Feb 10, 2009 1:09 PM

    georgemc wrote:
    PhHein wrote:
    corlettk wrote:
    We can't all be rocket surgeons, either ;-)Heart scientist is the word you're looking for.Or rockin' sturgeons. A (marginally) cooler - albeit fictional - alternative to this abominationFrom a crazy drunk:
    A "bottle in front of me" is better than a "frontal lobotomy"!
    (Sound out those two quoted strings.)

  • Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...

    Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...  When I search for a file, A) it asks me if it's a name, or it wont produce anything, and B), its slower than in prior OS versions and in some instances I have to toggle to a different directory and go back to my original directory in the search: menu bar or the search wont produce anything...  Very buggy. 

    It appears to me that network file access is buggy in Maverick.
    In my case I have a USB Drive attached to airport extreme (new model) and when I open folders on that drive they all appear empty. If I right click and I select get info after a few minutes! I get a list of the content.
    It makes impossible navigate a directory tree.
    File access has been trashed in Maverick.
    They have improved (read broken) Finder. I need to manage a way to downgrade to Lion again.

  • How to delete the redundant sessions in Maintenance Optimizer?

    Hi experts,
    As it said in title, how to delete the expired sessions as the screenshot below in Maintenance Optimizer and keep SAP Solution Manager clean?
    Thank you in advance.
    Best Regards,
    Pany

    Hello,
    Check here Deleting existing maintenance optimizer transactions
    Please  refer to the note 845433 , with the report CRM_ORDER_DELETE  and transaction type SLMO,you can delete those maintenance optimizer, hope this help to you
    BR,
    K.

  • Can't add own application to RemoteApps - "You must specify a file from the RD Session Host server SERVERNAME by using the UNC path....

    Hi, there
    I'm not really pro- at RDS in server 2012 (r1), but I have a problem and don't find anything suitable on internet:
    I'm trying to publish one of my own, unlisted programs to rdweb, but it keeps saying "You must specify a file from the RD Session Host server SERVERNAME by using the UNC path...."
    1) I provided the path in the unc name - when I click "Add.." then i browse the the .exe file via network share, not via local path. So that should be OK
    2) Firewall is turned off and eventhough the exeptions are enabled, both of then, checked
    What else should I do to make this work?

    Okej, I found the sollution:
    You have to specify the path like \\hostname\drive_letter$\path-to-the-program.
    I was doing wrong because i wrote it like \\hostname\ShareName\path-to-the-program.
    I was misleded because the wizard wants me to find the program by clicking, and not by entring the path manualy.

  • Java.io.File.delete worked in 1.1, 1.2, 1.3 & 1.4, but not in 5.0

    I have a logging utility I wrote originally in Java 1.0. A nightly housekeeping task runs which creates a ZIP file for the previous days log, then deletes the .log file. If I run this software with Java 5.0, the File.delete fails and the .LOG file remains on the disk. No exceptions are thrown. delete just returns false.
    Any ideas?

    to find a bug this basic! Each day I switch to a new log file, leaving the previous days file. I was never closing the old PrintStream... Jees... How embarrassing.

  • ODI File Datastore

    Hi All,
    I have a confusion regarding physical and logical length in ODI file datastore.
    I have a fixed width file where a col c2 had datatype as string(30).
    I defined that column in datastore as string>Physical length 30 >Logical length 30
    My interface failed with error as"
    ORA-12899: value too large for column "S0_IDM"."C$_0S0_EAGLE_DWHCDC_CHRG_MST"."C2_CHARGE_DESC" (actual: 31, maximum: 30)"
    When I increased the logical length to 255,the interface worked fine.
    Physical length still being the same 30.
    How different is this?
    Any help on this will be appreciated.
    Thanks and Regards
    Reshma

    This is not from any official documentation, but here is my take after a few moments thought
    Everything you do in the ODI designer is based on the logical architecture. Only at runtime is this manifested into a physical implementation i.e. connection strings are materialized etc. When you perform an integration ODI generally creates a few temporary tables prefixed with C$, I$ etc to be able to perform the necessary data movement and transformations required to, for example, populate a target datastore (table). In your example, your flat file will be materialized into such a temporary table before its contents are manipulated (or not) and loaded to the target datastore. When ODI generates this code it is using the logical length issued in the DDL that generates the temporary table column lengths, the physical column is ignored.
    Now in your scenario this is not a problem as constraints such as these do not matter to the physical version of the file i.e. if you were to write back to the file it would not matter if you wrote back 255 characters or 31. This could be a problem if you were using database tables and varying the logical vs. physical lengths but usually you reverse engineer database tables using ODI rather than doing it manually so this mitigates that.
    Anyway, in short, I think the logical lengths should be taken as representing what will be manifested in the materialization of the temporary objects used to manged / transform data from the source models (C$tables) and target models (I$tables)  whereas the physical lengths indicate what the underlying physical representation of those models actually are.
    EDIT: After reading a bit of documentation logical actually represents the length whereas physical is related to the number of bytes required to store the data. Therefore you could have a situation with multi-byte characters where the physical length could be greater than the logical length but not really the other way around. 

  • Application server-file delete

    Hi All,
    Is there any options to delete for file in directory in Application server. If there ,please send me flow or logic.

    Hi,
    For deleting a file in the application server user the syntax DELETE DATASET..
    DELETE DATASET '/tmp/test.txt'.
    IF SY-SUBRC <> 0.
      WRITE: / 'Error in deleting'.
    ELSE.
      WRITE; / 'File deleted'.
    ENDIF.
    Thanks,
    Naren

  • Logs for File Deletion?

    I have a situation where I don't want to recover a file... I want to see how it was deleted.
    Is there any way to review file deletions via Apple log files or any other method? My research so far says no... but perhaps someone is craftier than I've proven to be.

    An unfortunate circumstance to be sure. Out of curiosity is there any particular reason you can't use ClamXAV rather than NAV?
    I suppose that if NAV has a log and nothing relevant is in the log, then you're at a loss to even know if NAV is responsible for the folder's mysterious disappearance. Maybe you have technically savvy cockroaches in the building that come out at night to play? An informational age version of Archie and Mehitabel?
    This experience may be an impetus to install software that keeps track of what's installed or removed from a computer. Doesn't help much now but it would be useful in the future.
    Oh, one thing comes to mind - file recovery software:
    Data Rescue II
    File Salvage
    TechTool Pro
    Message was edited by: Kappy

  • How to make JDS confirm file deletion?

    I use the bash shell when logged in over SSH and I always set the following alias just in case I do something stupid:
    alias rm="rm -i"Is there a similar setting for JDS that I can tell it to confirm file delete whenever I try to delete a file (i.e. popup a standard "Are you sure?" dialog box)?
    Thanks!

    By default JDS file browser "deletes" files to the trash can - a la windoze Recycle bin 8-( -
    so it doesn't feel the need to double check as you can always reclaim the file from there.
    Emptying the trash includes an "are you sure" which can be configured from the folders settings pane:
    Launch->Preferences->Desktop Preferences->Folders and pick the "Behaviour" tab
    If you mean you want the double check made in a terminal or console displayed within JDS, as opposed to using the file browser, then you need to place a suitable command in the configuration for the shell you're using e.g. .profile or .cshrc etc.
    Regards,
    Paul

Maybe you are looking for

  • Able to import a video from a DVD to iMovie but not the sound.

    I made a .dmg file from a DVD and was able to import the video to iMovie, but there is no sound. When I click on the .dmg on my desktop it shows two folders, one labeled VIDEO_TS and the other AUDIO_TS. Any suggestions?

  • HT4236 when i sync photo's between my i pad & my macbook pro not all of them appear on the Ipad? any ideas

    Hi there, when i sync between my Ipad 2 & Mac book pro, not all the photos make it. Anyone have any ideas, its quite frustrating All boxes are ticked for full transfer, best wishes

  • MAKEPKG -c error - PKGBUILD: line 32: patch: command not found

    Hello all, Well I am getting the above error when running the makepkg -c as user in my local abs tree i am using [devnull@myhell chromium]$ makepkg -c ==> Making package: chromium 0.9.12-6  (Sun Mar 30 01:43:39 EDT 2008) ==> Checking Runtime Dependen

  • D3d10_1 error

    This message appears when I start my laptop: DWM - Bad Image C:\Windows\system32\d3d10_1.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your syst

  • Crystal report - Data display issue

    Hi all,        I did a crystal report. the labels in the crystal report are                 QTR1  QTR2  QTR3  QTR4      If I select  the prompt value as QTR3, the values should display under QTR3, but data is displaying under QTR1      If I select  t