Failed to delete file after processing FTP

Failed to delete file after processing. The FTP server returned the following error message: 'com.sap.ai i.adapter.file.ftp.FTPEx: 550 Unexpected reply code *.txt: The process cannot access the file because it is being used by another process. '. For details, contact your FTP server vendor.
I got this error many times for the same interface. Not sure what is the reason for this.
Searched on internet go comments that this is because of FTP version!
Please help

It is the "Msecs to Wait Before Modification Check" in the Sender Adapter that ensures this. It works like this: PI starts processing, finds a file, then waits the number of miliseconds specified and checks the file again to see if it has changed over the waiting period. If so, then it waits again to make sure the file is written completely. Only if no changes took place over the waiting period, it starts processing the file.
And the fact that your file was successfully processed at retry only confirms that it might have been still written to by the sender system. You can try comparing file's creation timestamp (in OS level) with its processing start time in PI - this could prove me right.
Edited by: Grzegorz Glowacki on Jan 13, 2012 2:15 PM

Similar Messages

  • Could'nt delete file after processing  sender file in windows environment ?

    Hi,
    I have problem with sender file adapter in windows 2003 server, because the file adapter cannot delete the file after processing, seems like permission problem. but then i have set full controll access to the pi7adm (sap instance admin). but the problem still persist.
    Please advise, me.
    Thank you and Best Regards
    Fernand

    Hi,
    Of course i set delete option in my CC sender, but the fail adapter couldn delete fail without any reason ?
    This is the error message from RWB Could not delete file 'K:\WORKDIR\FTP\data\data1.fer1' after processing.
    like i mention before i have set full access to sap admin user to the directory. but the error still persist.
    any idea.
    Cheers
    Fernand

  • BPC 5.1 Deleted my Dimension .xls File after processing

    I have found what I think is a bug in BPC 5.1 SP3 today.  After saving my dimension file, then performing a Full Process on that dimension, the system deleted the associated .xls file.  I discovered this when I tried to make additional changes to the dimension later and got an error when I tried to maintain dimension members.  I've been making changes to other .xls dimension files and following the same procedures and this has never happened before.
    Has anyone else ever had this happen?  If so, is there anything I can do, so I don't have this problem anymore, or is this a known bug that will be fixed in later a later relaese?
    I'm running a single server VM with 2003 Enterprise R2, SQL 2005, Dual Processor, Office 2003
    Edited by: Michael Hutchins on May 13, 2008 5:08 PM

    This happend to us as well, multiple times.  We are on 5.1 SP1.  We've tested a lot to determine root cause and have been unsuccessful.  Here's what I've  noticed. 
    > The file processed correctly when I ran a "full process" of ALL dims in the Application
    > The file also processed correctly when I saved the application, rebild index, etC and then performed a full process on ALL dims
    > I could delete the old .xls file on the server, place a new .xls file in it's place, but when I performed a full process of the account dimension by itself, it still found and reverted back to the old .xls file ! ?!?
    >strange stuff...bug or feature

  • Delete file from an FTP folder

    Hi expert,
    I wanna know if it's possible delete with abap command a file from a FTP folder.
    I mean, there is a ftp folder periodically filled with excel files. An ABAP program read this folder and the files content must be moved in a SAP Table. Aftre this, I must delete excel files with an abap command write in the same abap program.
    Thanks a lot
    Michele Garofalo

    1) read directory with fm EPS_GET_DIRECTORY_LISTING
    2) process table dir_list
    and 3) finally delete files with
    abap command:  DELETE DATASET dsn.
    hope that helps
    Andreas

  • Unable to delete file after in a file adapter

    Hello,
    I have a BPEL process , which gets invoked when there is a new .PDX file in a folder. After processing the data from the file , I want to move into the archive folder. The process moves the file properly to the archive folder, but I am unable to delete the file from the folder I read it from.
    One solution that worked was forcibly dehydrating the process using a checkpoint(). But that seems a very inefficient solution considering its expensive to do this step. Does any one else have a better solution?
    Thanks

    Just check the option "Delete after reading" in Adapter wizard if that is something you can do.. Adapter automatically deletes it once the file is moved to archive..

  • Could not archieve file after processing error in Rwb of sender adapter

    Till today afternoon it is running fine.
    The rpocess here is we will keep the files in FTP site. and pi polls and places the files in NFS Mount server AL11(FILE/STAGING).
    Now these file will be process from FILE/STAGING to FILE/PROCESS in al11 .
    Then proxy get trigerred and sends the data to sap where workflow will be trigerred.
    now the issues file is getting polled from ftp and placed in file/staging folder perfectly.
    Then the file needs to be moved to file/process folder using file adapter. here the issue is coming
    error is as shown below
    Time Stamp  Message ID  Explanation 
    Could not archive file '/FILE/Staging/20100517112845_140011140001.tif' after processing
    com.sap.aii.af.service.util.transaction.api.TxManagerException: Unable to commit transaction: The transaction has been rolled back: com.sap.engine.services.ts.transaction.TxRollbackException
    I had done the cache refresh still the problem persists.

    HI,
    1. check whether you have authorization for write access.
    2. Check the path provided for process.
    3. Ensure both the staging and the process paths are different.
    Thanks,

  • Delete files over secure FTP

    Hi all.
    We're using the "secure FTP get" step successfully in our package, using certificate-based authentication.
    A new requirement has come up: we must delete the remote file after we retrieve it.
    Is there a way to do this, say, in Jython? It's not clear whether the snpsftp library supports SSL connections using certificate-based authentication.
    Thanks,
    -John

    John,
    snps FTP doesnt not support SSL connections.
    And I couldnt find a Jython lib that supports SSL.

  • Cannot delete file after calling JAI.create() method

    hi all
    this is the first time i write to this list
    today i began to use the JAI api on a project
    it works fine but i am not able to delete a file after using it
    my code:
    for(int i=2; i<2+filenames.size(); i++)           
                    try
                        String fName=filenames.get(i-2).toString();                   
                        if(fName!=null)
                            File file=new File(uploadDir+"\\"+fName);
                            FileInputStream f=new FileInputStream(file);
                            ps.setBinaryStream(i, f,(int)file.length());
                            PlanarImage pi = JAI.create("fileload", uploadDir+"\\"+fName);
                            System.out.println ("heigh : "+pi.getHeight());
                            System.out.println ("width : "+pi.getWidth());
                            f.close();
                    catch(NullPointerException n)
                        n.printStackTrace();
                        return;
    for(int i=0; i<filenames.size(); i++)
                    String fName=filenames.get(i).toString();  
                    File file=new File(uploadDir+"\\"+fName);
                    if(file.delete())
                        System.out.println(fName+" deleted");
                    else
                        System.out.println(fName+" not deleted");                   
                               }i use this code in a servlet that receives an image to put it in a database.
    JAI is useful to get heigth and width of it.
    the problem is that i always get the "not deleted" message.
    i'm quite sure that is a problem of the bold code (JAI code), also because, cutting it, i can delete my file
    anyone could help me?
    thanx a lot in advance
    alessandro

    excuse me another time!
    my first post was right.
    i'm not able to delete an image after creating it with JAI.create();
    i'm still lookin' for a way to close all the references to my image in order to delete it
    how?
    thanx a lot
    sandro

  • Could not archive file after processing.

    All,
    I'm doing simple File-File  sceanario.I'm using NFS.But I'm getting the following error in sender communication channel monitoring.
    Error: com.sap.aii.af.service.util.transaction.api.TxManagerException: Unable to commit transaction: The transaction has been rolled back: com.sap.engine.services.ts.transaction.TxRollbackException
    Could not archive file "sample.txt" after processing
    Note: The folder has full rights of read/write.
    Can some one please help me to resolve this issue.
    Thanks.

    Hi Michal,
    Thanks for the quick reply.I'm seeing this error in Production environment.So i cannot try as you suggested.
    It was working until yesterday .I checked with BASIS team aswell for the folder access , Everything is OK .
    Is there any other way i can check to resolve this?
    Thanks

  • Recover deleted files after Aperture Import

    I opted to delete movies after importing to Aperture from my iPhone 5s.  I got an import error and the files were deleted.  I tried a recovery utility found many but not these deleted files.  Where did they go?  Can I get them back?

    Where did you find them in the Aperture Library six levels down? In the folder "Masters" or in a folder "Importing"?  If it is Masters", they have been imported correctly,  and you should find them in Aperture, when you search in Aperture with a rule "File Type" is video,
    If they are inside a folder "Importing", the import has not finished correctly, and it would be safer to copy this folder to the Desktop and to try to import the videos again.

  • ITunes will not delete file (after confirming & sending to recycle bin)

    Files deleted within iTunes do not disappear from my hard drive.
    I answer "Are you sure you want to remove the selected podcast from your iTunes library" and select the "Remove" button.
    I then answer "Do you want to move the selected podcasts to the Recycle Bin, or keep them in the iTunes Music folder?" with "Move to Recycle Bin".
    Music files (mp3) occasionally delete properly but video podcasts (Geek Brief to be specific) will not delete.
    Music is stored in J:\My Music\iTunes\iTunes Music which is slightly non-standard but seems to fit the rule of being "inside" the iTunes folder.
    Any ideas? [I've seen similar but not quite the same posts where people are trying to delete files outside the iTunes folders......]

    I too have this same problem with deleting video podcasts. The problem doesn't happen all the time, but probably a majority of the time. It is quite annoying as many of the video podcasts I subscribe to are in HD format so it is rather frustrating to have to manually delete them from the iTunes folder after deleting them thru iTunes, but since they take up gigs of space it is necessary to go in and clean them out every once in a while.

  • Lightroom mysteriously deleted files after trying to convert RAW to DNG

    Running Lightroom 1.3 on the MacPro 10.4.8
    Strange thing happened. I had a catlogue of 11,824 photos yesterday.
    The catalog was a mix of RAW and dngs and I wanted to convert the remaining RAWs to DNGS.
    All photos were in place, no ? marks before I used "Convert photo to DNG" command. In the Convert photo to DNG I had the boxes for Only Convert RAW files, and Delete originals after successful conversion CHECKED.
    I realize I may have been asking way too much for the computer to do, and wasn't surprised when nothing happened for about 5 minutes. Finally I got the message that it couldn't convert because the original file could not be found.
    After that 2,268 files were missing. And as the day goes on today, and use the program that number is increasing, even when not asking to convert.
    I don't think it's a hardware issue. Ran disk utility and all checks out with that. And the deleted files are on 2 different drives.
    Any suggestions? Thanks!

    First step I'd check and find the actual images, make note of their file paths. I'd be surprised if any file was truly missing; just that LR has lost the path for whatever reason.
    Second, I'd do the conversion on a much smaller scale- in my case, my workflow is such that I choose to convert to DNG when most or all of my work on a folder is done. So I do it pretty much by folder, which generally don't exceed a few hundred images.

  • XBMC fails playing some files after recent update

    Hi,
      I am unsure as of what happened but after a recent update, XBMC fails playing some files.  I can't see much in the logs; no error except a segfault in XBMC reported by .xsession-error.  I am using the integrated Intel video card (Ivy Bridge) of an i3.
      Searching a bit revealed that issues have been found with VAAPI but this was a while back.  libva-intel 1.3.2-1 hasn't been reported as erroneous so far...
    Can anyone confirm this so I can be sure it is not my system that is in fault?
    Thanks,
    Tach

    Thanks, Andy. That seemed to do the trick. Not sure how to edit this project, though. Not sure how I split the clips on one drive, and the final output on another. Ideas on how to join them up? I hesitate to move anything around since FCPX seems so sensitive to any moved files.
    Cheers & thanks,
    Marissa

  • Password Required to Delete Files after Doing Security Update 2014-001/Safari Ver 6.1.2

    Just updated my MacBook Pro running Mountain Lion. Prior to the update the computer was working fine; I was able to delete files in the customary manner. After updating, however,I am required to enter my password to complete the action. I am uning Lightroom 5 and I cannot delete images from within that application at all even though it should work. I can create folders and move them . . . I believe the only problem I have is as stated. Any advice as to where to go from here would be appreciated . . .. .

    User File Ownership - Reset   see post by Linc Davis

  • Can't delete file after renaming due to Word file handle still present. Error staes document is still in use but it's really not. Worked fine in 2007 but not in 2010.

    I have some code associated with a Word Template. The template is opened, filled out and saved via a routing in vba. This all works fine in older 2007 version (which is version it was originally created in). Once this file is saved, the user can change the
    date in a text box and re-save document. The code saves using the new date for part of new file name and then deletes that older file from the server. It fails at the delete function because the newer version of word is not dropping the file handle from the
    first named file when user saves it to the new filename. In older version (2007) this handle was released as soon as file was saved to a different name. I can't seem to figure out how to release the old document filename so the old document file can be deleted.
    I hope I explained this well enough.
    Here's the code that woeked in version 2007 but fails in version 2010.
    Option Explicit
    Dim CAPEX01 As MSForms.ComboBox
    Dim CAPEX02 As MSForms.ComboBox
    Dim LocalPath As String
    Dim NetPath As String
    Dim OldPath As String
    Dim OldPathNet As String
    Dim DocName01 As String
    Dim DocName02 As String
    Dim DocName03 As String
    Dim DocName04 As String
    Dim DocName As String
    Dim DocNameold As String
    Dim TestDocName As String
    Dim filesys
    Dim newfolder
    Sub AutoOpen()
    ActiveDocument.ActiveWindow.View.Type = wdPrintView
    TestDocName = ActiveDocument.TextBox2
    OldPathNet = "\\yourPath\" & TestDocName & "\"
    End Sub
    Sub AutoNew()
    TestDocName = ActiveDocument.TextBox2
    OldPathNet = "\\yourPath\" & TestDocName & "\"
     ComboBox1.Locked = False
     ComboBox1.Enabled = True
     FillList1
     FillList2
     End Sub
    Sub DeleteOldDoc()
    OldPathNet = "\\yourPath\" & TestDocName ' & "\"
    DocNameold = OldPathNet & TestDocName & "-" & DocName02 & "-" & DocName03 & "-" & DocName04 & ".doc"
        If Not TestDocName = DocName01 Then
            Set filesys = CreateObject("Scripting.FileSystemObject")
        If filesys.FileExists(DocNameold) Then
            filesys.DeleteFile (DocNameold), True      
     'I get file permission error here
        End If
        End If
    If DocName01 <> "" Then
    If Not TestDocName = DocName01 Then
    If Not TestDocName = "" Then
        MsgBox "Project Proposal Has Been Moved From Year " & TestDocName & " To " & DocName01 & ""
    End If
    End If
    End If
    TestDocName = DocName01
    End Sub
    '''''''Document path functions''''''
    Sub chkpath()
    Set filesys = CreateObject("Scripting.FileSystemObject")
    If Not filesys.FolderExists("\\yourPath\") Then
       newfolder = filesys.CreateFolder("\\yourPath\")
    End If
    If Not filesys.FolderExists("\\yourPath\" & DocName01 & "\") Then
        newfolder = filesys.CreateFolder("\\yourPath\" & DocName01 & "\")
    End If
    End Sub
    ''''''Save Function''''''
    Private Sub CommandButton1_Click()
    DocName01 = ActiveDocument.TextBox2
    DocName02 = ActiveDocument.TextBox4
    DocName03 = ActiveDocument.TextBox1
    DocName04 = ActiveDocument.ComboBox1.Value
    chkpath
    NetPath = "\\yourPath\" & DocName01 & "\"
    DocName = NetPath & DocName01 & "-" & DocName02 & "-" & DocName03 & "-" & DocName04
    ActiveDocument.SaveAs2 FileName:=DocName, FileFormat:=wdFormatDocument
     ComboBox1.Locked = True
     ComboBox1.Enabled = False
     ComboBox2.Locked = True
     ComboBox2.Enabled = False
     TextBox1.Locked = True
     TextBox1.Enabled = False
     TextBox3.Locked = True
     TextBox3.Enabled = False
     TextBox4.Locked = True
     TextBox4.Enabled = False
     DeleteOldDoc
    End Sub
    Sub FillList1()
    Set CAPEX02 = ActiveDocument.ComboBox2
      With CAPEX02
          .AddItem "CASTING", 0
          .AddItem "HOT ROLLING", 1
          .AddItem "COLD ROLLING", 2
          .AddItem "FINISHING", 3
          .AddItem "PLANT GENERAL", 4
          .AddItem "MOBILE EQUIPMENT", 5
      End With
    End Sub
     Sub FillList2()
     Set CAPEX01 = ActiveDocument.ComboBox1
      With CAPEX01
          .AddItem "A Name", 0
          .AddItem "Another Name", 1
      End With
    End Sub
    Private Sub CommandButton2_Click()
        UserForm1.Show
    End Sub

    mogulman52 and Don,
    I went back and looked at my code and had already updated it to SaveAs in the new docx format. It still holds the lock handle in place until Word closes, unlike earlier versions which released the lock handle when you did a SaveAs.
    As a note, all my Word and Excel macro-enabled (dotm & xltm) templates are read only and are never filled in, prompting the user for a file name on any close event or if they run the code gets auto-named. I do the SaveAs and concatenate the file name
    from data on the document (or sheet) that has been filled in. During the SaveAs the docx gets saved to a network folder and also on a local folder. The lock gets renamed to the filename and remains until Word is closed.
    So my code still fails at the point noted below while trying to delete an old filename version after the file has been saved as a new filename in a new folder. So....
    The code is looking in the last folder where the docx file was saved for the older filename so it can be deleted. The newest docx version has already been saved in a different folder and has a new lock handle of its own. That lock is not my problem, it's
    the older file lock which really exists in the same folder as the first filename that the docx was saved to. It does not release that lock until I exit Word. My work around has been to instruct all users to manually delete the older version file.
    The other odd thing is this only happens when I run it from code, if you manually go through these steps with the SaveAs menu drop-downs in Word it will release the lock handle???
    Hope this isn't to confusing and thanks for all your suggestions and help.
    Sub DeleteOldDoc()
    OldPathNet = "\\yourPath\" & TestDocName ' & "\"
    DocNameold = OldPathNet & TestDocName & "-" & DocName02 & "-" & DocName03 & "-" & DocName04 & ".doc"
    If Not TestDocName = DocName01 Then
    Set filesys = CreateObject("Scripting.FileSystemObject")
    If filesys.FileExists(DocNameold) Then
    filesys.DeleteFile (DocNameold), True 'I get file permission error here- lock handle is still present from last SaveAs command in last folder where previous version of file was saved.
    End If
    End If
    If DocName01 <> "" Then
    If Not TestDocName = DocName01 Then
    If Not TestDocName = "" Then
    MsgBox "Project Proposal Has Been Moved From Year " & TestDocName & " To " & DocName01 & ""
    End If
    End If
    End If
    TestDocName = DocName01
    End Sub
    Glenn

Maybe you are looking for

  • I was working with my iPad with 1% battery and it turned off....

    I was working with my iPad with 1% battery and it turned off . I connected it to USB cable but my iPad wants to turns  on with 1% battery but after a minute it turns off again.it happend for more than10 times.Please help me .My iPad is the 3rd Genera

  • CAN'T SET POSITION OF A MODEL RIGHT

    hi let's say that I load a model into my java progrem, and I want to place it in a (x,y,z) position , so that it's bottom would tuch the x,z plain - i.e. the y=0 now i can get the models height with the bounding dimensions of the branchgroup that con

  • Client Java Proxy - ?xml version="1.0" encoding="UTF-8" tag missing

    Hi All, I have a Java Proxy to File scenario. I am getting the output in the SAP XI but when i check the XML payload <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> is missing from it. Rest of the document is coming fine. Any idea how to fix

  • Lumia 620 Earpiece Volume

    dear all, i found that my lumia 620 earpiece volume is very low/soft. i can hardly hear what the other party is talking. volume is at max. any solution to this? listening to music is ok. this problem only occur when making/receiving phone calls..

  • Bonjour can't find installed driver

    I am trying to set up in my office at work what I have working at home. At home I have an Airport Extreme Base Station with several Macs and a Dell laptop running without any problem off it. I have an Epson C88 hooked up to the Airport Extreme via US