FTP Sender Adapter - File Order

Hi,
can somebody tell me, in which order files are being read via the ftp sender adapter when using wildcards for the filename ?
I need to process the files sorted by name. Is there any possibility to get this done ?
BR,
Martin

hi Martin,
Check this forum discussion.
Re: FTP Sender Adapter - Processing Sequence
and check out Praveen reply regarding your query
regards
Ramesh P

Similar Messages

  • FTP-Sender Adapter ignores files with "known filenames"

    Hello experts,
    the scenario is FTP -> XI -> IDOC and we have problems with the polling of the files. In communication channel monitoring everything is working fine, but in the FTP folder some files are ignored, although the communication channel is set up for all *.txt-files.
    My question is, is it possible that the FTP sender adapter ignores files, if it already has processed a file with the same filename? After renaming the files they all were picked up and archived into another folder. How can I configure the communication channel to pick up ALL *.txt-files in the out-folder?
    Best regards
    David

    Hi David,
    What I have observed is, XI always reads files in a certain order (possibly alphabetical or reverse alphabetical). If it finds a file in the source directory that already exists in the archive directory, it will not attempt to read/process the next file (even if the next filename is completely new).
    So, if any of the files in the source directory exist in the archive directory, there is a possibility that certain files may get processed and certain wont.
    Make sure that none of the files that you put in source directory exist in the archive directory (i.e. all the files are new) and see the output. Let me know if this helps.
    PS: I used FTP protocol
    Regards,
    Riyaz

  • Specifying Additional Files in an FTP Sender Adapter

    Hi,
    Has anyone worked out how to specify additional files in a File/FTP Sender Adapter using the FTP transport protocol? This functionality comes 'standard' in the File/FTP Sender Adapter using NFS transport protocol so that additional files can been included as attachments, however, it doesn't seem to be available when trying to use the FTP protocol.
    Thanks in advance.
    Regards,
    Reuben.

    Yes this is available in only NFS mode check sap help
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/frameset.htm
    Thanks!

  • FTP sender adapter archives empty files

    Hi.
    I have a strange problem with the ftp sender adapter.
    I receive my file without problems, and the scenario works as it should.
    The problem is with the archiving of my processed file.
    It writes the file fine to the path specified, but it is empty (user has full file permissions)
    The ftp adapter uses content conversion, and I have seen threads in the forum that tells about simular errors. But I have found no solution.
    Hope someone can help here.
    Regards...
    Peter

    File Content Conversion is usually associated with Receiver File/FTP adapters
    and Archiving the source file is an option at the Sender File/FTP Adapter.
    No, content conversion is used both in sender and receiver file/FTP adapters.
    In my case, it is in a sender adapter!
    I'm not sure what you mean when you said "The ftp adapter uses content conversion,..."
    The sender FTP adapter content converts a flat file to XML format!
    Can you let us know the details of your scenario?
    Like who / what is the sender and who/what is the receiver system?
    The scenario looks like this: "FTP -> XI -> RFC", but as mentioned before, the scenario works fine, the problem is in the FTP sender adapter that fails to save the archive file.
    If I try to use the file/FTP sender adapter in "file mode", with the same parameters, the archive file is written just fine!
    Regards...
    Peter

  • Prevent ftp sender adapter from tranfering files from subdirectories

    I have a scenario with a ftp sender adapter. In the configuration of the ftp sender adapter I have defined a base directory "/dir" and a file pattern "*". The directory /dir as a subdirectory /dir/subdir. Now the ftp adapter transfers also files from this directory. But I don't want that. Any solution?

    Hi,
    I am not sure whether it is made so intentionally be SAP. However, if you wish to resolve this issue, you can specify a wild card for file names, such as the file extension (for example, *.txt).
    Hope this helps,
    Bhanu

  • FTP Sender Adapter - Processing Sequence

    Does anybody know what the processing sequence of files is when I using a ftp sender adapter? I can only determine this if I use a file sender adapter (NFS).

    Hi,
    in  sender file ( FTP ) adapter:
    when qos  :eoio
    the sequence the msg processess will be in ascending alphabetical order.
    ex: if i have 10 files in a folder
    as per the my requirement all the 10 files are picked up at the same time, then
    the files will be arranged in queue specified in ascending alphabetical order and processed in the same order.
    but, when i use QOS: EO
    the same thing is going to happen right!!
    picks all the files , processess in ascending alphabetical order to xi..
    then what is the use of queue here in eoio???
    on the other hand,
    in  sender file ( NFS ) adapter:
    file will be processed based on the processing sequence( either by date or time ).
    so both EO and EOIO use the processing sequence... then wat is the work of queue here in EOIO MODE.. any way they are processed according to the proccessing sequence parameter.. ???
    Please reply..

  • FTP sender adapter wait sometime before processing a message

    Hi,
    I want my FTP sender adapter to wait sometime before processing a message. This is needed in my case since the receiver of the message cannot consume message in, say two seconds, so I would like to configure a "time to wait before processing message" in PI since PI processes all of the files in folder without waiting another poll interval time if more than one exist.
    Is this possible in PI 7.0 sp16? 
    Regards,

    HI Tarik
    BPM is the solution for this problem. If you are not willing to use BPM other solutions are  Adapter module and Scripts
    You can write adapter module and use the threads mechanism. Thread.sleep can help you achieve this but you need to set this properly.
    Another method is Unix script. Let your actual directory be Dir1 and poll PI to Dir2. Use the script to write files from Dir1 to Dir2 one by one and with time gap. This will work for you.
    If you have PI system on Windows i prefer to go with Adapter module.
    Thanks
    Gaurav

  • FTP Sender Adapter for OpenVMS

    Hi,
    did anyone of you use a FTP Sender Adapter on an OpenVMS System?
    If I connect via FTP Client (Dos, Unix Shell or Filezilla) this works fine so far but with XI I receive the following error message:
    Error occurred while connecting to the FTP server "server:21": java.net.SocketException: Connection timed out:could be due to invalid address
    BR Markus

    Hi,
    Check your FTP server Address and the port number. If  you are using SSL / TLS then the port numbers will change.
    <b>Cheers,
    *RAJ*</b>

  • Getting dynamically a specific file in FTP sender adapter

    Hi all,
    I'm getting an idoc in a BPM and there's a field with a file name, which is the one I have to read in the following step.
    I'm not sure this is possible, but I'd like to hear from the PI community...
    The problem is that in the usual FTP sender comm channel, I have to specify in configuration time the folder and the pattern of the file names to be read. And in my scenario I only know that in execution time (that's possible when the FTP channel is receiver though).
    Thanks

    Oops!! I misunderstood it
    At sender, neither of them would work. In fact, there is no other direct options at sender. You have to specify the filename. As Udo suggested, you have to create multiple channels.
    Still if you could explain your BPM configuration, some solution may turn up. You said you are receiving Idoc in BPM and a file too?
    Regards,
    Prateek

  • FTP Sender Adapter, Empty Archive Files

    Hi,
    When I retrieve files using a FTP sender Communication Channel and I checked the Archive check box (including an existing directory), the file is archived but it does not have any content. It is completely empty.
    The original file contains data and is processed correctly. The original file is a csv and I use FCC to convert it to XML.
    Anybody any suggestions?
    Ron

    Hi,
    The scenario is FTP --> IDOC scenario.
    The config is as follows: (not mentioned = not used)
    Source:
    Source Directory:  /Out
    Filename    File*.csv
    FTP Connection:
    Server: a.b.nl
    Port: 21
    Dataconnection: Passive
    Connection Security: None
    Username: user
    Password: pass
    Connect mode: Per File Transfer
    Transfer mode: Binary
    Processing:
    Quality of Service: Exactly once
    Poll Interval: 60 secs
    Processing Mode: Archive
    Add Timestamp: checked
    Archive directory : /usr/sap/Interfaces/
    File Type: Text
    FCC:
    Documentname: File
    Recordset Name: Lines
    Recordset Structure: Line,*
    Recordset Sequence: Ascending
    Key field type: String (Case sensitive)
    Line.fieldSeparator     ;
    Line.endSeparator     nl
    Line.fieldNames         VBELN, POSNR, RREL
    Best regards
    Ron

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

  • Sender Adapter File Content Conversion - question

    Hi!
    Could you help me to make xml-file from csv?
    I have file like:
    12345#254#9765#89654
    55#9066#77127#47
    And i need file like:
    <dealings>
            <deal>
                    <field1>12345</field1>
                    <field2>254</field2>
                    <field3>9765</field3>
                    <field4>89654</field4>
            </deal>
            <deal>
                    <field1>55</field1>
                    <field2>9066</field2>
                    <field3>77127</field3>
                    <field4>47</field4>
            </deal>
    </dealings>
    I haven't key fields - all fields are accidental. And lengths of all fields are accidental.
    How to put content conversion parameters?
    Thank you.

    HI
    File Content prameters for the Sender Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    File content conversion sites
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Please see the below links for file content conversion..
    The specified item was not found. - FCC
    The specified item was not found. - FCC
    File Content Conversion for Unequal Number of Columns
    File Content Conversion for Unequal Number of Columns - FCC
    Content Conversion (Pattern/Random content in input file)
    Content Conversion (Pattern/Random content in input file) - FCC
    XI Configuration for MDM Integration - Sample Scenario - FCC - MDM
    XI in the role of a FTP
    XI in the role of a FTP
    File content conversion sites
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    File Receiver with Content Conversion
    Content Conversion (Pattern/Random content in input file)
    NAB the TAB (File Adapter)
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    How to send a flat file with various field lengths and variable substructures to XI 3.0
    Content Conversion (Pattern/Random content in input file)
    NAB the TAB (File Adapter)
    File Content Conversion for Unequal Number of Columns
    Content Conversion ( The Key Field Problem )
    The specified item was not found.
    File Receiver with Content Conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Please see the below links for file content conversion..
    The specified item was not found. - FCC
    The specified item was not found. - FCC
    cheers

  • 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

  • Problem with Sender Adapter File Content Conversion

    Hi all!
    I have a question about file content conversion in sender file adapter.
    I have file like:
    {field1
    field2
    field3
    field4
    $
    {field5
    field6
    field7
    field8
    And i need to get file like:
    <dealings>
    <deal>
    <field1>{field1</field1>
    <field2>field2</field2>
    <field3>field3</field3>
    <field4>field4</field4>
    <field5>-}*</field5>
    </deal>
    <deal>
    <field1>{field5</field1>
    <field2>field6</field2>
    <field3>field7</field3>
    <field4>field8</field4>
    <field5>-}*</field5>
    </deal>
    </dealings>
    I put content conversion parameters:
    deal.fieldSeparator = $
    deal.fieldNames = field1,field2,field3,field4,field5
    And i get a file like:
    <ns:mt_swift_file>
    <dealings>
    <deal>
    <field1>{field1</field1>
    </deal>
    <deal>
    <field1>field2</field1>
    </deal>
    <deal>
    <field1>field3</field1>
    </deal>
    <deal>
    <field1>field4</field1>
    </deal>
    <deal>
    <field1>-}*</field1>
    </deal>
    <deal>
    <field1/>
    </deal>
    <deal>
    <field1>{field5</field1>
    </deal>
    <deal>
    <field1>field6</field1>
    </deal>
    <deal>
    <field1>field7</field1>
    </deal>
    <deal>
    <field1>field8</field1>
    </deal>
    <deal>
    <field1>-}*</field1>
    </deal>
    </dealings>
    </ns:mt_swift_file>
    What i do wrong?
    As i understand, XI put string to a separate tag after symbol 'nl', but how can i get structure without unnecessary tags?

    Hi,
    Check some links for FCC
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    File Receiver with Content Conversion
    Content Conversion (Pattern/Random content in input file)
    NAB the TAB (File Adapter)
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    How to send a flat file with various field lengths and variable substructures to XI 3.0
    Content Conversion (Pattern/Random content in input file)
    NAB the TAB (File Adapter)
    File Content Conversion for Unequal Number of Columns
    Content Conversion ( The Key Field Problem )
    The specified item was not found.
    File Receiver with Content Conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Phani

  • Sender Adapter File Content Conversion

    Hi everyone,
    Can someone help me out here?
    For some reasons, out of the fields declared, only 20 gets filled!
    Scenario, I've configured the file sender adapter with file content conversion.  It's picking up an fixed length ASCII file.
    Here are the Content Converion Parameters:
    Document Name:  MT_Site
    Recordset Name: Rootnode
    Recordset Structure: Site,*
    Recordset Sequence: Ascending
    Site.fieldNames= Site_Number,Participant_Number,OPIS_Terminal,ntework_list,tax_code1,tax_code2,tax_code3,tax_code4,CFN_Product,CFN_Product_1,CFN_Product_2,CFN_Product_3,CFN_Product_4,CFN_Product_5,CFN_Product_6,CFN_Product_7,CFN_Product_8,CFN_Product_9,Name,Address,City,Province_state,Region,Filler
    Site.fieldFixedLengths= 6,4,4,6,2,2,2,2,2,2,2,2,2,2,2,2,2,2,30,26,26,2,1,1
    Site.processFieldName= fromConfiguration
    Site.lastFieldsOptional= YES
    Site.endSeparator= 'nl'
    So only the first 20 fields gets filled!
    Thanks for your help on this!

    check if the number of characters in the file matches the total in the content conversion for one record line.
    if ur message type has three fields a1,b1,c1 of length 10,10,5 respectivvely and the same is maintained in CC, if u have the file data as 123456789abcdef the data for <b>a1</b> will be 123456789a and for <b>B1</b> it will be bcdef and no data for C.....hence this check
    Message was edited by:
            Prabhu  S

Maybe you are looking for

  • Payment term is changing automatically

    hi, Payment terms entered in Vendor master. Once we process the PO with same payment term it is fine. At the time of MIRO, if we select purchase order number, system is picking the payment term from PO. But if we process MIRO through delivery challan

  • Error while executing BPEL xpath extension function : doXSLTransformForDoc

    Hi All, I have used the transform activity in BPEL that uses 2 input variable and one target variable and process gets complied successfully. However, when the is deployed on the SOA server and tested then I get the following error : ================

  • Three Way Shuttle

    Hi all, I am looking for ideas on how I can implment a three-way shuttle. I want to start with a simple list of people (select person_id, name from per_person order by 1) and be able to shuttle from this list into one of two targets. The easiest exam

  • Quicktime movies in Firefox 3.0.2

    Since I've installed the newest version of Firefox, i can't seem to open any quicktime movies inside my browser (it shows me the message that it lacks a plugin, altough it says being installed when i go to the Extras section). Any help? Thanks alread

  • Resource bundle question, where does it fit into package structure?

    I have a resource bundle but am getting an exception that says my resource bundle is not found (base type) of my OS local. I am not sure why. Here is my log... 11 Apr 2009 10:40:09 AM suncertify.util.ErrorHandler handle SEVERE: Can't find bundle for