File sender adapter (FTP) - processing mode "Archive"

Hello all
We're polling files from an external FTP server. For this I created a scenario on XI according to this thread:
When setting processing mode to "Archive" in the file sender adapter (ftp) it polls the file, stores it to the archive directory I specified and then tries to delete the file on the FTP server side. This returns me an error because we're not allowed to delete the retrieved files on the FTP server!
Because of this error the file adapter stops further processing and does not poll all the other files.
How can I disable this deletion mechanism while keeping processing mode to "Archive"?!?!?
We do not want to use processing mode "Delete" or "Test" and we don't see other options to influence this behaviour.
Thanks for any guideance on this one in advance!
Kind regards,
Renaud

Hi Bhavesh
Sorry for the late answer. Unfortunately I can't ask the application system to provide file names containing a timestamp within. The files are provided by an external partner and are retrieved by several others as well.
In the meantime I managed to achieve this:
In repository I created dummy data types, message types and message interfaces. No mapping programs and interface mappings!
In configuration I created the necessary communication channels (1 ftp sender, 1 file receiver) and the required receiver and interface determinations as well as the sender and receiver agreements.
The result of this is:
I'm able to poll some specific files via ftp from remote host. The file names are file1.arj, file2.arj, file3.arj and file4.arj. All 4 files have the same SourceFileTimestamp (e.g. "20060727T053900Z").
I'm able to store those 4 files 1:1 in a target directory with the same file names. Until here I did NOT need to follow this blog: <a href="/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14: The same filename from a sender to a receiver file adapter - SP14</a>.
As of this blog it is possible to access adapter specific attributes and make them available in message mapping using user defined functions. This way I'm able to get the SourceFileTimestamp from the polled files and use it in a message mapping. This way I'm also able to use it in variable substitution on file receiver adapter (syntax = "payload:root,1,fileTS,1") in order to dynamically create a directory with this syntax: YYYYMMDD.
So far so good... but the only remaining BIG problem now is, that as soon as the mapping is activated and assigned in the interface determination, the created files contain the XML payload instead of the original binary content. Where has it gone? How should the target message type look like so that it can carry over the original binary file content?
BTW: isn't it possible to post screenshots? Would be much more easier to explain things... so sorry to anyone if I wasn't clear enough!
TIA and best regards,
Renaud

Similar Messages

  • File Sender Adapter - File overwritting in the Archiving folder

    Hello Experts,
    I am doing File sender to proxy Receiver Async Scenario.
    In File Sender adapter, i am using the Archiving option by spacifying the
    Archiving path.
    Files are picked up and archiving happen successfully.
    Problem is: - once the File is picked up and archivied into the Archiving location
    If end user again rectifies some data in the same file and place it in the source directory
    then i am getting the following error in RWB Commu. channel monitoring.
    Failed to archive file 'File1.TXT' as '/Input File location/File1.TXT' after processing. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 File not renamed.  File already exists.  You may delete the existing file and then rename.u2019 For details, contact your FTP server vendor.
    I know this is because of File sender adapter is trying to archive the file with the same name(File1.txt) in the archiving location.
    My Question: - Is there any option to allow the File sender Adapter for overwritting the
    File in the archiving location.
    Thanks & Regards
    Jagesh

    check if there is proper rights to over write files in the archive folder.
    The problem seems to be that the rights/authorization is not there. Else the adapter usually overwrites files in the archive folder unless you use the timestamp option.
    Archive
    Files that have been successfully processed are moved to an archive directory.
    u25A0       To add a time stamp to a file name, select the Add Time Stamp indicator.
    The time stamp has the format yyyMMdd-hhMMss-SSS. The time stamp ensures that the archived files are not overwritten and it enables you to sort them according to the time that they were received.
    u25A0       Under Archive Directory, enter the name of the archive directory.
    u25A0       If you want to archive the files on the FTP server, set the Archive Files on FTP Server indicator. If you do not set the indicator, the files are archived in the Adapter Engine file system.

  • File sender adapter: archiving not possible with transp.prot "filesystem,

    Hi XI gurus,
    in my FILE sender adapter I want to archive the processed files to a separate sub-directory of the "in" directory.
    It works if I use transport protocoll "FTP" with a specific user
    but it don't works when I use transport protocoll "file system (NFS)".
    the xi user has all permission on the directories.
    file system is on a UNIX machine.
    Has anybody an idea why archiving only works with transf.protocoll FTP ?
    Thanx very much in advance
    regards
    Hans

    Hi,
    Check this thread for same problem Re: NFS Sender File Adapter Source Directory
    Thanks!

  • Cant do a file get from external server using file sender adapter with ftp

    Hi all,
    Up until now our company has only used the file sender adapter with ftp protocol to get a file from our XI server for processing and input the file into an integration process
    I have a requirement to do an ftp file get from an external server
    From our XI development server I can ftp directly to the external server and view the required directory using the command window via a DOS prompt (FTP open ...).  So all firewall issues and communications are fine
    Unfortunately I cannot currently pull files from the external server using the XI file adapter with ftp protocol from the XI development server AWB017
    FTP Connection Parameters: External server name using port 21, Data Connection is Passive, No security, I supply a userid and password
    Processing Parameters: Processing Mode is Archive (I tried test but this did not work either)
    No messages appear in the RWB
    Is there something else that I need to set up in order for the external ftp get to work via the XI file adapter?
    Regards,
    Mike

    Thanks for your responses.
    I have found the error messages in the File Adapter Monitor
    Scenario 1
    When I prefix the source directory with a forward slash, eg <b>/Folder/Subfolder</b> the error message is as follows
    <b>EST: Error: Error connecting to ftp server 'ip address': FTPEx: /Folder/Subfolder: The system cannot find the path specified</b>
    Scenario 2
    When I DO NOT prefix the source directory with a forward slash, eg <b>Folder/Subfolder</b> a different error message is returned
    <b>Error: Retrieving file 'FILENAME.XML' failed unexpectedly: FTPEx: Folder/Subfolder: The system cannot find the path specified</b>
    At least in this scenario the adapter has been able to identify the file on the external FTP site but cannot retrieve it
    Questions
    I thought that the backslash prefix for the source directory was mandatory but I am receiving an error in each scenario
    I receive the same error message whether the Processing Mode is 'Archive' or 'Test'
    The logs on the external ftp server seem to indicate that I am simply connecting, sending username and password then quiting straight away. I am not issuing any commands that they can see
    I thought that being a Sender adapter it would inherently execute a Pull or Get command
    To recap, from our XI development server I can ftp directly to the external server and view the required directory using the command window via a DOS prompt (FTP open ...). So all firewall issues, communications, userid and password are fine
    Has anyone experienced these issues?
    Please advise on next course of action?
    Regards,
    Mike

  • Error Archiving File in File Sender Adapter using AF_Modules/PayloadZipBean

    Hi everybody.
    I have to pick a zip file up from ftp server, unzip an convert the file in xml.
    Im using this modules in file sender adapter:
    AF_Modules/PayloadZipBean --> To unzip de file
    AF_Modules/MessageTransformBean --> file to xml
    The problem is when I try to archive de file. Im getting this error and I dont know why (This path exists /out/ProcesadosSinError/)
    Could not archive file 'test.zip' as '/out/ProcesadosSinError/20100518-091029-155_test.zip' after processing: java.io.FileNotFoundException: /out/ProcesadosSinError/20100518-091029-155_test.zip (A file or directory in the path name does not exist.)
    Could it be that is not possible to archive with AF_Modules/PayloadZipBean?
    Thank u so much

    Hi Stefan.
    Absolutely. This path exists. It's an absolute path from root. I can´t understand the error!!!!
    Thanks!!!
    Edited by: Christian  Abad Chico on May 18, 2010 9:35 AM

  • File Sender Adapter with FTP protocol

    Hi,
    I implementet a file sender adapter with FTP protocol. There is a problem: the sender processes the files even if they're in use by another application.
    I.E. If another application put files (via ftp) in the sender work directory (that is on ftp), the sender processes those files before their transfer is completed.
    I don't want that this sender in a communication channel in PI 7.1, imports files in the system when they aren't completed yet.
    There are some ways to block sender before it processes incompleted files (in an ftp)?
    Thanks
    Matteo

    Hi,
    File sender adapter provides a check for NFS mode
    +Check this
    To specify additional parameters in the adapter configuration, set the Advanced Modeindicator.
    ●      Msecs to Wait Before Modification Check
    Enter the number of milliseconds that the adapter must wait before it checks whether the files have been changed.
    This parameter is not available if you have selected File Content Conversion as the Message Protocoland then made an entry under Recordsets per Message that splits an input file into several messages.
    This parameter is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.+
    Other approach can be to apply OS level checks
    Regards
    Suraj

  • Need help to Configure FTPS connection for File Sender Adapter

    Hi,
    I want to Configure, FTPS connection (Secured Connection) for File Sender Adapter. Could anyone please guide me, what Information I require to configure. I just want to know what Information should I request the team inorder the configure FTPS so that it can be deployed properly.
    I have checked with [SAP Help Link|http://help.sap.com/saphelp_nw04/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm] and while configuring the communication channel found that I need Keystore and the X.509 Certificate and Private Key.  which needs to be deployed on the J2EE server by using the Visual Administrator.
    Is there anything else, I need to configure.
    Any help would be appreciated in this regard.
    Thanks & Regards,
    Varun.K

    The basic things are Certificate/Keys which you already know. Usually it is enough for running a sceanrio.
    However, if you have additional requirements, like FTPS for "Connection Security" for encryption, then you may need additional details like commands. Rest all settings are same as FTP.
    Regards,
    Prateek

  • File sender adapter:FILE to IDOC without BPM, can't see in SXMB_MONI.

    Hi all
    I have a FILE - XI - IDOC Async scenario without BPM.
    I configured FILE sender adapter and IDOC receiver adapter. I made a mapping to transfer file data to the structure of IDOC.
    Now when i am trying to load the file using command prompt, i cud see nothing in the monitoring. Whereas if i go to the communication channel monitoring of runtime workbench, i saw that CC is polling correctly and was reading the file also.
    And also wen i saw in the processed folder which i mentioned in the CC configuration for the ARCHIVE DIRECTORY, i saw that file got transferred to the folder also.
    I don't understand why i cant see anything in the monitoring.
    Could anybody help me to rectify the problem. Is there anything i m missing ?
    Regards
    Naina

    Rajesh/Amar
    TCode:: SXMB_ADM->Integration engine configuration->specific configuration->runtime
    Trace_Level = 3 then you can get all MONI PIPELINE Steps also
    I did this change but cudn't see anything in SXMB_MONI.
    This is how i have configured my process:
    http://wiki.sdn.sap.com/wiki/display/XI/FiletoMultipleIDOCSplittingwithoutBPM
    But instead of IDOC splitting i have simple FILE - XI -IDOC scenario.
    I have configured everything exaclty the same way it is mentioned here. But for me the process is not visible at all.
    I can't even see the first request message in the monitoring.
    This is the message i can see in the communication channel monitoring:
    2010-05-24 09:07:41 Success Channel CC_*: Entire file content converted to XML format
    2010-05-24 09:07:41 Warning Channel CC_*: Empty document found. Proceed without sending message
    2010-05-24 09:07:41 Success File "/xyz/ABC.txt" archived after processing
    Is there any problem with the file and that could be the reason it cant convert the file to the request message MT_REQUEST and thus am not able to see anything in monitoring.
    help me guys....this is a simple process and i m stuck...its frustrating
    Regards
    Naina

  • File sender adapter is not working

    Hello All,
    We are facing a problems with file sender adapter. Communication channel is not picking the files from the directory, but the status in RWB for that channel is 'Functioning'. We are not sure whether the channel is locked or any other problewm with adapter. (In Alternate option, we have created copy of that channel and when it is activated, it picked the file )
    Can anyone help us how to identify whether channel is locked and any other solutions in this case.
    Regards,
    Sreenvias.

    Hi Srinivas,
    The file adapter ( The respective channel) is definitely locked in PI . Ideally for each polling interval a lock is being created and once the processing is over , the lock should be released/deleted automatically to allow further polling interval. If the lock is not released by the system automatically,further polling will not happen as expected. ( This may affect all sender file adapters as well. I would recommend to do a check in al sender file communication channels)
    You can see/delete the locks in Visual admin.
    Go to Server>Services->Locking adapter  and click refresh
    The entries for file adapter ( with name $XIAFFileAdapter) should be deleted by selecting those particilar entries and click delete selected locks.
    If you have more than one node, then same should be done in all server nodes.
      The temprory solution would be creating/copy the existing channel in ID with same properties and assign it into particular sender agreement.
    But, the lock may be created again which potentailly stops all your file based interfaces. Hence i would suggest to use Timeout parameter avialable in file sender adapter which termiates FTP session as you defined, This should solve your issue permanently.
    The FTP server do have thier own time out settings but if you don't defne any particulat time out in PI, the FTP server forcefully disconnects the FTP sessions which created locks in PI.
    Hope this solves your issue.
    PS: The same bahaviour would expected for all sender JDBC adapter as well

  • File Sender Adapter - Multiple Source Directory

    Hi all,
    I have the following file to IDoc Scenaraio:
    The source file might be in any of 3 directories in source system and so created file sender adapter as follows:
    File access parameters:
    Source Directory : Directory1
    File Name         : Filename*.XML
    Addiontal Directory:
    Directory2    Filename*.XML
    Directory3    Filename*.XML
    The porblem we are facing is the file adapter is picking the file from Directory1& 2 and not from Directory3.
    If the change Directory Order in adapter as follows:
    File access parameters:
    Source Directory : Directory3
    File Name         : Filename*.XML
    Addiontal Directory:
    Directory2    Filename*.XML
    Directory1    Filename*.XML
    ... then file from Directory 2 & 3 is getting processed and not from Directory1.
    Any thoughts on this will be greatly appreciated.
    Thanks
    Sarat.

    Why use BPM for this?
    Instead write an abap program to pick from any of 3 directories in source directory and place it in the shared XI folder and configure your file adapter pointing to XI shared folder...shecdule the abap report for every 5 min..
    Wanna know more /people/sravya.talanki2/blog/2005/08/23/sender-xi-ftp-adapter-with-regular-path-expression-150-abap
    Or write OS level scripts for doing same.

  • How to handle flat file with variable delimiters in the file sender adapter

    Hi friends,
    I have some flat files in the ftp server and hope to poll them into XI, but before processing in XI, I hope to do some content conversion in the file sender adapter, according to the general solution, I just need to specify the field names, field seperator, end seperator, etc. But the questions is:
    The fileds in the test data may have different amount of delimiters (,), for example:
    ORD01,,,Z4XS,6100001746,,,,,2,1
    OBJ01,,,,,,,,,,4,3     
    Some fileds only have 1 ',' as the delimiter, but some of them have multiple ','.
    How can I handle it in the content conversion?
    Regards,
    Bean

    Hi Bing,
    Plz do refer the following blogs u will get an idea:
    File content conversion Blogs
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Vinod.

  • J2SE File Sender Adapter Error

    Hi Experts,
    I am doing a scenario on J2SE. Like this: J2SE File Sender -> XI -> J2SE File Receiver.
    On File Sender adapter, it has an error, like this "ERROR: Finished sending to Integration Engine with error u201Cjava.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 404 Not Foundu201D. Skip confirmation and quit this loop"
    And this is the full log:
    D:\Thach\Input\xi_test.xml
    16:51:45 (4052): Start processing u201CTXTu201D file u201CD:\Thach\Input\xi_test.xmlu201D size 190 in u201CEO mode
    16:51:45 (4058): Start converting to XML format
    16:51:45 (4061): Converted complete file content to XML format
    16:51:45 (4062): Sending text message u201Ce1ffc9e0-71e5-11de-8306-0019d12044f1u2033 type u201Capplication/xmlu201D to Integration Engineu2026 (message size: 633 bytes, URL: u201Chttp://host:50200/sap/xi/engine?type=entryu201D)
    16:51:45 (4076): ERROR: Finished sending to Integration Engine with error u201Cjava.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 404 Not Foundu201D. Skip confirmation and quit this loop
    16:51:45 (4077): Retry mode - wait 10 sec, 0 msec interval before retry
    And this the content of xi_test.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Material_toPPS xmlns:ns0="http://gml.com/xi/XI/Tutorials">
       <Material>
          <Text>Test</Text>
       </Material>
    </ns0:MT_Material_toPPS>
    And this the configuration of J2SE File Sender:
    mode=FILE2XMBWITHROWCONVERSION
    XI.TargetURL=http://host:50200/sap/xi/engine?type=entry
    XI.User=PISUPER
    XI.Password=*********
    XI.QualityOfService=EO
    XI.SenderParty=
    XI.SenderService=BS_PlainJ2SE_Sender
    XI.ReceiverParty=
    XI.ReceiverService=BS_FileRecv
    XI.Interface=MI_Material_toPPS_OB
    XI.InterfaceNamespace=http://gml.com/xi/XI/Tutorials
    file.type = xml
    file.sourceDir=D:
    Thach
    Input
    file.sourceFilename=xi_test.xlm
    file.processingMode=test
    file.pollInterval=10
    #Content conversion parameters in PlainJ2SE Adapter
    xml.documentName = MT_Material_toPPS
    xml.documentNamespace = http://gml.com/xi/XI/Tutorials
    xml.structureTitle = Material
    xml.processFieldNames = fromConfiguration
    xml.fieldNames = Text
    Please help to solve the issue.
    Thanks so much,
    vn thach

    The URL of the Integration Server is wrong or you cannot access the server from the host, where the J2SE adapter is running:
    XI.TargetURL=http://host:50200/sap/xi/engine?type=entry
    If the Client of the Integration Server is not 000, then you have also to add that line:
    XI.Client=XXX

  • Get filename from file sender adapter

    Hi Experts,
    I have a question regarding the file/ftp adapter (sender).
    I have a directory with xml and pdf files. for every xml file there is a pdf file with the same filename. for example:
    file1.xml
    file1.pdf
    file2.xml
    file2.pdf
    file3.xml
    file3.pdf
    Now I want to read the xml file with the file sender adapter. afterwards I want to read the related pdf file. for example: If I read the file file1.xml afterwards I want to read the pdf file file1.pdf with the file sender adapter. For this it is nessessary to get the filename from the xml file so that I can read afterwards the pdf file. How can I realise it?
    Thanks and best regards
    Christopher

    Hi srinivas,
    thanks for your quick answer.
    That the file adapter is not able to read pdf files is clear to me. In this case I only want to transport the pdf. that works fine. I tested it.
    the problem is the following:
    I have a xml file with the name "file1.xml". I read the xml file with the sender file/ftp adapter configured with filename "*.xml". Then I want to import the pdf file with the name "file1.pdf". Therefor I need the filename from the xml file.do you know what I mean? So XI has to know the filename of the xml to import the pdf with the same name ...
    regards

  • File Sender Adapter

    Hello All...
    sysinfo:  files to join,  file1, file2, file3    output after joining the files should be sal.txt and the executable file is run.bat
    We have a File Sender Adapter and we are trying to "Run an Operating System Command Before message Processing" where we execute  run.bat, if we execute it  manually this executable run.bat is ok, but if we try to use it from "run operating System command before message processing" it does not work (it does not create the sal.txt file in the operating system)
    we are wondering if that is because file sal.txt in the field "file name" of  "file access parameters" does not exist in the operating system before the file run.bat runs.
    Any clue about this?.
    Regards

    HI Maru,
    Why don't you try to run this command from the sender directory specified in your sender file adapter in your command prompt??
    Does that result in success???
    And also, Instead of using a .bat fie, use the following command
    COPY "C:\MyFolder\file1.txt" + "C:\MyFolder\file2.txt" +"C:\MyFolder\file3.txt" "C:\MyFolder\sal.txt"

  • File sender adapter: trigger mail if file is not there

    Hi,
    I have an scenario where I have a file sender adapter, and I need to look for a file in a specific folder from a specific FTP site.
    If the file is not present there, I need to trigger an alert to let some people know that the file was not found.
    Is this possible? If so, how should I do it?
    Thanks!

    You could also write an abap in your PI system to call the function 'EPS_GET_DIRECTORY_LISTING' against the FTP site/folder/filename(s) at a required interval if you don't want to use a BPM. This abap could also send an email if you so desired.
    The general theory should be that if you can do something a simpler way then don't use BPM's if you can avoid them.

Maybe you are looking for

  • Batch managment from MM point of view

    Dear Friends, I want to learn the Batch management from MM  point of view. Can you please provide me the material which will explain me how to configure the SAP system for batch managment from MM point of view. Thanks a lot Nilesh

  • How to set the system time in the program

    Hi All, How do we update the system time inside java programme.

  • Can anyone tried register relationship in ECC 6.0

    Hello isuians, In ecc 6.0 , the standard no. range object  "isu_indexn" is missed .this no. range is used to maintain register relationship. i know that the same no. range object exist in 4.72 but not there in ECC 6.0 The issue is isu_indexn is stand

  • No Audio Output Device is installed error message

    I have a hp pavilion m6- 1045dx and when I turned it on I noticed there was no sound and the speaker icon next to the clock in the bottom right corner had a red "x" next to it. I tried pressing the mute button, up volume, and down volume buttons and

  • Funny Error When Using XDK for Java2???

    Hi, Has anyone ancounter this error before? Can someone please tell me what does it means? Thanks! A nonfatal internal JIT (3.10.100(x)) error 'Structured Exception(c0000005)' has occurred in : 'oracle/xml/parser/v2/FilterExpr.getValue (Loracle/xml/p