Multiple files in file adapter

Hi
My requirement is i need to pick all the files with different names from a folder through sender side file adapter.
i give the source directory name... from that directory i need to pick all the files with different names. So how to achieve this requirement.
Thanks
MunnaV

Hi,
  In sender comm channel give the source directory name and If you have only text files  then you can use *.txt and if they are xml then use *.xml ij source file name.....it will be easier for sender CC to pick files rather than using * ....
If you  want to process all files at one shot, then you will have to use BPM....inside the BPM you can have a loop to collect your multiple files in a single msg.....
Regds,
Pinangshuk.

Similar Messages

  • Multiple Exclusion Criteria[Exclusion Mask] in Sender File Adapter

    Hello All,
    I have a requirement to specify multiple exclusion criteria in the 'Exclusion Mask' property of a Sender File Adapter, i.e. I need to pick up files that correspond to 111*.txt from a specified source directory, but I would also want to exclude specific individual files that go by the following names:-111ACC.txt, 111INV.txt & 111PUR.txt.
    I have tried the following - Specified 111*.txt in the 'File Name' field and in the 'Exclusion Mask' field specified ACC, INV & PUR - the exclusion criteria separated by commas. But this does not seem to work. All the 111* files are getting picked up.
    Have gone through a couple of weblogs that deal with exclusion masks, but they do not talk about multiple exclusion criteria.
    Is there any other way I could accomplish this?
    Thanks,
    Anand

    Hi,
    Try this config.
    Give  *.txt in filename. and Directory as <YourDir>
    In exclusion mask give 111ACC.txt
    Below this there will be a table. Add two Entries
    Dont add anything to FilenameMask.
    Directory ->FileNameMask--->ExclusionMask
    <yourDir>->--->111INV.txt  
    <YourDir>->--->111PUR.txt
    Try this and get back.
    Regards,
    Sudharshan
    Message was edited by:
            Sudharshan Aravamudan

  • Multiple directory locations in Sender File adapter

    Hi All,
              I have a scenario where my single adapter needs to poll from 7 different directory locations. Is it posible to configure all seven sorce directory location in single sender file adapter.
    Regards,
    Xier

    Hi,
    I apologize for wrong information, actually I never tried but it's possible after seeing this.
    Note:821267
    11. File Sender: Processing Multiple Source Directories
    Q: Can the File Sender Adapter be configured to poll multiple source directories from a single channel?
    A: This functionality is available starting with XI 3.0 Support Package 14 as well as PI 7.0.
    raj.

  • Sender File(FTP protocol) Adapter not able to pick multiple files(eg *.xml)

    Dear Experts,
    I have SAP PI 7.0 installed on HP-UX. I installed Guild FTP on my Windows Vista machine.Configured File to File scenario. Sender File adapter(FTP Transport Protocol)is able to process the 'input.xml' file placed in FTP INBOX folder.
    I want to process all/multiple XML files. For this I have changed File Access Parameters in Sender Communication channel as:
    Source Directory -   /INBOX
    File Name          -   *.xml
    Immediately Sender Communication status went into red with error log messages :
    Error occurred while connecting to the FTP server "172.XX.XX.XX:21": java.lang.NullPointerException
    Please let me know what is the issue. Thanks in Advance.

    Hi
    It should work with *.xml
    Check with the connectivity as well.
    If this is still unable to process files then check with the FTP server compatibility.
    J2EE File adapter is based on RFC 959 and if GUILD FTP is non compatible to RFC format then exclusion mask may not work.
    Thanks
    Gaurav

  • Receiver file adapter posts multiples for singel source files

    Hi,
    I am using wild character in my input source ftp adapter but my receiver file adapter is creating multiple duplicate files. I am not sure why this happens as QOS is set to "Exactly Once" with archive processing mode. I tried with delete mode and the same error occurs. We had no problems testing it in our Dev environment but in QA its acting so strangely...Any advise is appreciated..
    -Teresa

    Hi,
    2. Homany files you posted at oubound directory?
    1.             You said duplicate files at receiver side, is the files having time stamp? if so those are not duplicate files.
    Thanks,
    Satish.

  • How to create multiple files with Receiver File Adapter in SAP PI 7.31 Java Stack

    Dear Friends,
    I am using Sender JDBC Adapter and Receiver File Adapter in Integration Flow in SAP PI 7.3 EHP 1 SP08 Java Stack environment. The requirement is that we need to create multiple files based on the row count in jdbc resultset. If there are 5 rows in resultset, we need to create 5 XML files with one row elements in one file. Similarly if there are 10 rows, we need to create 10 XML files.
    So how can we create multiple files in this scenario. I tried placing a for loop in the Java Mapping as below in the transform method:
    DynamicConfiguration conf = arg0.getDynamicConfiguration();
    StringBuffer sbFileData = new StringBuffer();
    for (int i =0; i < record.size(); i++ {
         . // Create XML for each row and Marshal the object into to the String Buffer
         String strFileName = "DC_" + new SimpleDateFormat("ddMMyyyyHHmm").format(new java.util.Date())+"_"+i+".xml";
         conf.put(KEY_FILENAME, strFileName);
         arg1.getOutputPayload().getOutputStream().write(sbFileData.toString().getBytes("UTF-8"));
         arg1.getOutputPayload().getOutputStream().flush();
    So here I'm flushing the OutputStream for each record. But it's not creating the multiple file, instead it creates only one file will all record XMLs appended to each other.
    Please let me know if I missing something or need to do some thing else.
    Regards,
    Shreyansh Shah

    Hi
    You can easily achieve this using graphical mapping.  Create your target message type like below
    MT_Target
      Details  0 to 1
          Data  0 to 1
    Source sample structure
    <resultset>
    <row>
    <column-name>column-value</ column-name>
    </row>
    Then do the message mapping like below
    map <row> with  MT_Target
    contant ----> Deatils
    column-name ------>Data
    In the signature tab of message mapping, choose the occurrence of your target message type as
    0 to unbounded.
    This will generate multiple files from multiple rows.
    Let me know if you have any doubt.

  • Multiple Header line in Receiver File adapter

    Hi,
    I have an issue in Receiver File adapter with multiple header lines. I am able to get only 1 header lines in the receiver file but not multiple header lines with 'nl' since it is static in file mode
    [CommunityTag:Header]
    empNo,EmpName,Age
    [CommunityTag]
    I tried with the below in content conversion one as below with no luck
    Root.addHeaderLine=1
    Root.headerLine=[CommunityTag:Header] 'nl' empNo,EmpName,Age 'nl' [CommunityTag]
    Root.fiedSeparator=,
    Root.endSeparator='nl'
    I am getting the Header line as same row as static text.
    Can you advise this.

    Hi Gabriel, I suggest to produce the header lines from additional nodes in the message payload. That means you need to modify the data type of the target message in order to generate an extra structure in the payload. Use constants in message mapping to generate the header column names, e.g.
    <Header>
      <H1>CommunityTag:Header</H1>
      <H2>empNo,EmpName,Age</H2>
      <H3>CommunityTag</H3>
    </Header>
    In content conversion you have to convert the Header row with
    Header.endSeparator='nl'
    You won't need parameter addHeaderLine anymore then.
    Regards, Martin

  • Receiving multiple files with dual extension using file adapter

    Hi,
    The scenario where I am implementing requires multiple files of different names to be picked(ABC.txt) and dropped at destination(ABC.txt.pgp) up by my File Sender and Receiver adapters.  Any idea on about how the configuration for receiving multiple files with dual extension for receiver adapter is to be done?
    Note:- currently, The scenario is working fine without dual extension. i.e Its picking all files which starts with ABC and creating at destination as it is. even I configured as ABC.txt.pgp, but its not creating the second extension.
    Thanks in Advance
    Manmadha

    Hi,
    Try to concatenate '.pgp ' to the source file name to create the target file name for the receiver file adapter, by accessing the Adapter Specific Attributes using Java user defined function. This might work.
    Reference links:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm">SAP Help - Accessing Adapter Specific Attributes</a>
    <a href="/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 - XI: The same filename from a sender to a receiver file adapter - SP14</a>
    Regards,
    S.Santhosh Kumar

  • How to send multiple files by using File Adapter

    Hi Experts,
    I am trying with the scenario by using the File Adapter.
    As per my requirement, I need to send multiple files (like FileA.xml, FileB.pdf, FileC.txt, FileD.html etc) to the Target system.
    I have seen ‘Additional Files’ option, in Sender Communication channel. But I am not sure how to give the parameters, in case if I would like to send the multiple files as mentioned above.
    Could someone please explain about the steps, that I need to proceed further?
    Thanks in advance.
    Sree

    Anand,
    Thank you for your reply.
    My requirement is to send the multiple files like inone.xml, intwo.txt etc. In the Sender Communication channel, I had provided ' inone.xml ' in the File Name field under the "File System Access Parameters" section.
    Next I had chosen "Additional Files" option as Checked and provided ' intwo.txt ' in the field name of "File List".
    After activation, i have provided those two files (inone.xml, intwo.txt) in the Source folder. It is not processing? What could be the problem ?
    Thanks
    Sree

  • Hadeling multiple files in sender and receiver adapter

    Hi ,
    In my sender FTP server multiple files gets created at a same time i want to send this same files to the target FTP server am not doing any file content conversion. Just pick this multiple files at a single poll and drop it in the target FTP system.
    I gave . in the as file name parameter in the sender file adapter..PI system picks all the files as separate message but if i give . in the receiver adapter itu2019s not creating the file and its giving Java exception..
    Is there any other method to do this without having File content conversion... ?
    Regards
    Shakfie

    I gave *.* in the as file name parameter in the sender file adapter..PI system picks all the files as separate message but if i give *.* in the receiver adapter itu2019s not creating the file and its giving Java exception..
    For receiver adapter you have to give some file name, '.' will not work for receiver adapter. So give any temporary name just to satisfy the mandatory field. And when you selet the ASMA settings in both SENDER & RECEIVER adapter then your Receiver File adapter will write the same file name which it has picked up and NOT the one which you have written in your receiver adapter.
    Note: Set ASMA setting in both else you will not get the same file name at receiver. You can see the same in blog given by Siva. You need not to create any UDF since you are not using any mapping. Just use the ASMA settings.. that's it.
    > Is there any other method to do this without having File content conversion... ?
    You can go through this blog for the same...
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    Regards,
    Sarvesh

  • Accessing multiple directories using single file adapter

    Hi All,
              I have data coming from two banks. I need to put them in SAP file server. Now i have two sender adapters for each bank, now is there a way i can use same receiver adapter but create diff directories to store them.
    XIer

    Hi,
    In file sender communication channel there is a check box for Advanced Selection for Source file. Check that and you dont put anything in exclusion which means it takes all the files from multiple direcotires. Please check this weblog where he has excluded some files in the directory. But you dont need to exclude anything.
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    Regards,
    ---Satish

  • Sending multiple files using file adapter

    The scenario I am implementing requires multiple files of different names to be picked up by my adapter. I dont want to create different file adapters for each file. I tried using the "Additonal Files" option in the sender file adapter in my configuration, but am not able to do the same. Any idea as to how the configuration for multiple files for same adapter isto be done?

    Hi bhavesh
    Fundamental of adapter configuration is you have to give valid xml structure to XI, so you will define your configuration according to your requirement.
    for .xml you have file as a message protocol while for .csv you have file content conversion as a message protocol.
    So you have to define adpater configuration for sender side for one type of structure.
    So you need a different communication channel for different extentions.
    for diffrent strcutures,having same extention, you can execute this.
    Please make me clear that what is your scenario?
    why you need to pick all files under a directory with a same communication channel?
    Regards
    Piyush

  • Reciever File Adapter to create multiple target files

    Hi All,
    I have done the mapping to create multiple output messages . I would like each of the messages to be stored as a separate file in the target .
    Below is the output message with 2 separate MT_CANCELOUT  messages . However, both end up in one single xml file .
    How do I configure the receiver file adapter to ouput 2 separate xml files  ?
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    <ns0:Message1>
    <ns1:MT_CANCELOUT xmlns:ns1="urn://gm.com:VBVTEST">
    <LineItem>
      <id>456</id>
      <name>HEY</name>
      </LineItem>
      </ns1:MT_CANCELOUT>
    <ns1:MT_CANCELOUT xmlns:ns1="urn://gm.com:VBVTEST">
    <LineItem>
      <id>567</id>
      <name>RAT</name>
      </LineItem>
      </ns1:MT_CANCELOUT>
      </ns0:Message1>
      </ns0:Messages>

    Hi,
    Sorry to say you that but your post show the opposite, it shows you have only one target message !
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    <ns0:Message1>______<<<<<<<
    <ns1:MT_CANCELOUT xmlns:ns1="urn://gm.com:VBVTEST">
    <LineItem>
    <id>456</id>
    <name>HEY</name>
    </LineItem>
    </ns1:MT_CANCELOUT>
    <ns1:MT_CANCELOUT xmlns:ns1="urn://gm.com:VBVTEST">
    <LineItem>
    <id>567</id>
    <name>RAT</name>
    </LineItem>
    </ns1:MT_CANCELOUT>
    </ns0:Message1>______<<<<<<<
    </ns0:Messages>
    If you want two files, you should generate two Messages, and so to do that:
    In MM, in your target (tab before "function"), you should have 1 source MT and in target MT, you should have two lines (even if you use the same target MT), after having changed the ouccurence 1->N.
    do the same in your operation mapping: 1->N with two receiver service interface (even if it's the same)
    because you should have something like:
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    <ns0:Message1>
    <ns1:MT_CANCELOUT xmlns:ns1="urn://gm.com:VBVTEST">
    <LineItem>
    <id>456</id>
    <name>HEY</name>
    </LineItem>
    </ns1:MT_CANCELOUT>
    </ns0:Message1>  _____<<<<<<<
    <ns0:Message2> _____<<<<<<<
    <ns1:MT_CANCELOUT xmlns:ns1="urn://gm.com:VBVTEST">
    <LineItem>
    <id>567</id>
    <name>RAT</name>
    </LineItem>
    </ns1:MT_CANCELOUT>
    </ns0:Message2>
    </ns0:Messages>
    regards
    mickael
    Edited by: Mickael Huchet on Dec 2, 2011 8:58 PM

  • How to read multiple files of different name using single file adapter

    There are two inbound locations inbound1 and inbound2 , and the files structure present in these two inbound locations are same but the files start with different names example
    (1)files in inbound1 starts with file1,file2...
    (2)files in inbound2 starts with abc1,abc2...
    by using same file adapter with read option how can i read both files....

    Hi K.A.N.N.,
    You can define multiple directories using the above link in 11g and poll for the file as \*.*.
    Alternatively you can use the Synchronous Read and specify the file name at runtime.
    You can also use Pick activity to define multiple branches each with a File Adapter to read from a specified location with specified file name. Although it would contain multiple Adapter Definitions at Development-time, only one of the Adapters will execute at Run-Time.
    Regards,
    Neeraj Sehgal

  • FTP Adapter to poll multiple files (different formats)

    Hi,
    We have a requirement to poll and process multiple files from a given FTP location(either process all or reject all - reject if there is any failure in one of the files).
    Using FTP Adapter's Get File operation(Schema Opaque), we are able to read three different file formats and can get the file name(Using header variable FileName).
    And we are hoping to process the file contents based on the File Name that we get from the above step.
    1) How do we convert the file contents from Opaque to specific Schema (ex: file1.csv, file2.csv and file3.csv with different formats)?
    2) As the requirement is to process all the files at the same time, Can we use correlation in the poller process to route to single controller process(One instance of Controller process for all the files)?
    Any help would be much appreciated.
    Thanks...

    Thanks a lot for the quick answers.
    I've used the Java embed to convert Base64 content to String. And using 'translateFromNative' extension, I could convert it to the desired XML content.
    But I still have trouble in polling and processing all the files(file1.csv, file2.csv and file3.csv) at the same time using a single controller process.
    My requirement is to process all the three files at the same time(for any failures I have to compensate any/all of inserted records).
    I tried using Pick(with different OnMessage branches), but as they are polling the same location I could see only one OnMessage branch is getting fired resulting in multiple instances.
    May be I didn't understand your suggestion correctly, could you please elaborate on the possibility of processing multiple files at the same time?
    Thanks

Maybe you are looking for

  • Hot Synch and Mac OS 10.4.11

    My Palm m505 recently ran out of power... I plugged it ito the cradle for recharging..   I had to hit the 'reset' on the rear in order to get it up and going... but quicly found that my favourite application had "disappeared" and I returned it to the

  • Iphoto 08 update - PS elements no longer starts

    I just updated iLife 06 to 08 this morning on my Macbook running OS 10.4.10. Had previously installed PS Elements 4 a few weeks ago and it was working fine. Since updating iLife to 08, PS Elements won't start. The icon bounces in the dock, then the a

  • Can i replace a burnt out backlight on 4 generation nano??

    So my iPod nano's backlight has been cutting off at random times and sometimes I can get it to come back on by resetting the iPod but other times I cannot. Is there  a possibility that the backlight is burning out and needs to be replaced? Can it be

  • How to set Test configuration in Web Test

    HI, I have group of web and load tests, which need to be run in multiple environments(Dev, Test urls). how can I set these and reuse in all web and load tests. I would like to define at one config file and reuse it in any of the web and load tests. H

  • Cannot enable secure imap authentication

    I cannot enable CRAM-MD5 for imap services in server admin. Whenever I select the cram-md5 checkbox and click on save, serveradmin looks as if it's saving the new setting, but the interface always reverts back to "clear". This happens when I select c