File sender to file receiver scenario

Hi,
I need to move a file (any type) from an FTP server to another file server as-is (no mapping) via XI.
What would be the quickest way to achieve this? Is doing anything in the IR avoidable since there is no mapping required?
Regards,
Rex

I double checked the parameters..evrything looks fine.
I donno why the adapter is not picking up the file. But my other file adapters are working fine.
The parameters are as follows.
(x) Sender () Receiver
Adapter type: File
Transport Protocol: File system (NFS)
Msg Protocol: File
Adapter Engine: Integration Server
Src Directory: D:\XIDemo\Send
File Name:    Pick_up.txt
QoS: Exactly once
Poll interval: 600
Processing mode: Test
Processing sequence: By Name
File Type: Text
The adapter is in active state.
I deleted the initial adapter and created again, still not result
Whats wrong here?
thx
praveen

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 and Mail Receiver .....what is the error all about?

    Dear All,
      I am trying to send a file using mailpackage to my Lotus Notes id.But it is giving the below mentioned error.
    <b>error occured: [2005-09-28T11:42:43Z] unable to call the mailer; com.sap.aii.messaging.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: java.net.ConnectException: Connection refused: connect</b>
    The below mentioned is my Input File.
    <b><?xml version="1.0" encoding="UTF-8"?>
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
       <Subject>Interesting</Subject>
       <From>MailMsg</From>
       <To>[email protected]</To>
       <X_Mailer>Lotus Notes</X_Mailer>
      <Content>Hi ra.</Content>
    </ns:Mail></b>
    and my Mail Adapter Configuration for this is,
    <b>Transport Protocol: SMTP
    Message Protocol: XIPAYLOAD
    Adapter Engine: Integration Engine
    URL: smtp://mailservername
    User:
    Password:
    Use Mail Package is checked and
    Encoding : None</b>
    1.Should I have to have an access to the Mail Server?
    2.Why is the error?
    3.What all Configuration I need to change,if any?
    4.How to solve the error?
    Without running the scenario,when I went to Monitor ,it was showing,
    <b>MyConfig. Scenario:MyMailAdapter as running:started</b>
    Please help me to solve this problem.
    Thank You

    No Stefan,
      I don't have SP10.
    Do I need make any new configuration on the Mail Server side or i can carry on with the existing corporate one (which I am not supposed to touch)?
    I haven't created any mail server of my own.But I want to send that file to my corporate domain or my <b>yahoo</b> domain for example.Now should I need to make any new configuration or configuration changes on my Integration Server?
    I am very much confused in this regard.I have not made any other configuration other than that of Mail Adapter and File Adapter(ie,only XI related configurations).
    I didn't even configured my own smtp server.
    This is what I have done so far.Can you please through more light on it?
    Thanks in Advance,
      Sugata Basu

  • Received File send with file name to destination side

    Hi All,
    Here I have used FILE adapter in Receive location and WCF-BasicHttp adapter in send ports.
    Requirment is should be able to send the file name also along
    with the file to destination from BizTalk.
    No orchestrations in this project. DynamicSendPassThru sendport. Please find the below screenshot for send port properties.
    How can i fix this please assist me on this.
    Thanks & Regards,
    Vasu

     Hi Osman,
    below code is custom pipeline code. and what code and where can i add the code.
    regarding send the file with file name from BizTalk to OutBound transport location.
    Please assist me on this.I'm not aware coding part. 
    publicMicrosoft.BizTalk.Message.Interop.IBaseMessageExecute(Microsoft.BizTalk.Component.Interop.IPipelineContextpc,
    Microsoft.BizTalk.Message.Interop.IBaseMessageinmsg)
                System.Diagnostics.
    Debug.WriteLine("Inside
    SendFileRenameWithDate Pipeline",
    "SLNG.BizTalk");
    IBaseMessageContextmessageContext = inmsg.Context;
    // if the transport type is file for outbound, then change the add in the date in the file name.
    stringadapterType = (string)inmsg.Context.Read("OutboundTransportType",
    "http://schemas.microsoft.com/BizTalk/2003/system-properties");
    // The file name in the file adapter must contain '%SourceFileName%', e.g. CB_%SourceFileName%.xml
    if(adapterType ==
    "FILE")
    // Retreive the file name from the message context
    //object obj = messageContext.Read("FileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties");
    //string customSendFileName = obj.ToString();
    //System.Diagnostics.Debug.WriteLine("FileName:" + customSendFileName, "SLNG.BizTalk");
    // Append with date in ddMMyyyy_HHmmss format
    stringcustomSendFileName =
    if(string.IsNullOrEmpty(DateFormat))
                        customSendFileName =
    DateTime.Now.ToString("yyyyMMdd_HHmmss");
    else
                        customSendFileName =
    DateTime.Now.ToString(DateFormat);
                    System.Diagnostics.
    Debug.WriteLine("FileName:"+
    customSendFileName, "SLNG.BizTalk");
    // Write back with new file name to the message context
                    messageContext.Write(
    "ReceivedFileName",
    "http://schemas.microsoft.com/BizTalk/2003/file-properties",
    customSendFileName);
    //if (messageContext.IsPromoted("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties")
    == false)
    //    messageContext.Promote("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties",
    customSendFileName);
    //messageContext.Write("FileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties", customSendFileName);
                System.Diagnostics.
    Debug.WriteLine("Going
    off SendFileRenameWithDate Pipeline",
    "SLNG.BizTalk");
    returninmsg;
            #endregion
    Thanks & Regards,
    Vasu

  • 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 channel - file name "null"

    Hi all,
    I am designing a scenario where I am reading 2 files from 2 different senders, and these 2 messages are fed to a multi mapping in BPM, which creates a single target message. I need to read the name of only one of the two source files and populate it in one field of the target message.
    I have read some blogs and forum threads about how to access the file name from the sender file channel. It calls for turning on the adapter specifc parameters in the channel and writing the following UDF (taken from Michal's blog #2664) -
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName;
    After doing all this, I am getting file name as "null". Can someone pls let me know the cause for this ? My concern is since I want to read only one file name, so I have updated only that specific file sender channel for adapter specific attributes.
    Regards,
    Shankar

    Hi Raj,
    I checked the ASMA for second channel also, but no luck
    I can see both the files names in their respective messages in SXMB_MONI under node 'Dynamic Configuration'. But the two messages enter the multi-mapping within BPM (where I have put trace to print the file name as per above code), the value is shown as "null".
    1) Is this file name access is possible only in simple scenarios ?
    2) Also, is the file receiver mandatory ? I have email receiver in my scenario.
    Any clues ?
    Regards,
    Shankar

  • File Sender : Multiple File being picked

    Hi All
    I have a scenario where I have multiple files in a directory . I have set the option to Processing Parameters to be EOIO and poll interval to be 60 seconds.
    The processing sequence is by Name.
    This File sender triggers a BPM. What I see is that when the File sender polls the directory. If ther are  multiple files, they get picked up at the same time and as many BPM are started.
    I would like it to work pretty much in a serial format where it picks up only one file triggers the BPM. When the BPM is done it can trigger the next file.
    How can I do this ??
    Regards
    Aju Paul

    Hi Aju,
    I have come across such scenarios...but not ones wer you have files wid same names in the same path wid almost same time stamps:)...well, d time stamp format can be specified upto milli seconds!...
    Will you be able to give some kind of an "advanced selection for the source file"-this option is available in the ftp adapter..here's the link to the documentation(just in case u haven't come across it earlier):-
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Regards,
    Sushumna

  • File Sender Adapter - file pick up

    We have a scenario, where we are picking up files from an ftp directory. Before we pick up the file - say .xml file, we have to make sure that there is .FIN file.
    How can we achieve this?
    reg

    Hi,
    you could write a module to do the check. Find more information in the blog
    Adapter Module to stop processing of duplicate file (FTP
    Location) sandeep jaiswal
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID1375690450DB01837587727037552414End?blog=/pub/wlg/9664
    Best regards,
    Erik Hubers

  • File-Sender Adapter File not read from folder

    Hi everybody,
    in CC monitoring I see that the adapter poll successful on a folder. But the file is not read! The mode is "delete"
    Any ideas?
    Regards Mario

    hi mario,
    is ur CC "green" in Adapter monitoring?
    generally wen the file is polled but bot deleted this is the problem with authorization for deletion for that destination n we c "red" in CC monitoring.
    but this case doznt ensure that ur scenario hasnt run. the scenario may still be successful and the problem may be only with deleting the file.
    regards,
    latika.

  • File Sender - get files from DB4 and OS400

    Hi,
    I'm configuring File - IDOC scenario on XI system, which is on Win platform. I want to pick up flat txt files on DB4 and OS400 via FTP but I+m constantly getting message:
    Could not process due to error: com.sap.aii.adapter.file.ftp.FTPEx: 550  Not authorized to file /sapmnt/trans/sucelja/sap_izlaz/ksuckd03.txt
    What could be a reason for that error, according to OS400 admin, FTP user is ok, and has all rights to acces this file. I also tried to us \ as separator but no luck.
    Maybe is important, OS400 is SAP server and /sapmnt/ is mount of where SAP is installed....
    thx mario

    I solved it. File didn't have appropriate atributes. It is hard to check file attributes on SAP, so I coded program that uses feature of OS400/SAP(not sure which one), that is file and directory structure represented UNIX like, and my program for
    ls -al /usr/sap/trans/sucelja/sap_izlaz/ksuckd03.txt
    responded with
    <i>-rwxrwxrwx   1 dvk10    r3group        2682 Oct  3 12:54 /usr/sap/trans/sucelja/sap_izlaz/ksuckd03.txt</i>
    it was not to hard to do
    chmod 777 /usr/sap/trans/sucelja/sap_izlaz/ksuckd03.txt
    br
    mario

  • The same filename from a sender to a receiver file adapter

    Michal has provided us with a brilliant <a href="/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14.  I guess a lot of people have been waiting to do this. However, I have a slightly different scenario. In this case, XI is used as a medium to transfer a PDF file from one directory to another directory. There is not transformation or mapping involved.
    The message is send by File Sender Adapter and received by File Receiver Adapter. Message type is created as a simply type hexBinary. The file is supposed to be picked up as a PDF and received as a PDF, retaining the same file name. As such, the file name is neither stored in the source structure nor the target structure.
    Once the PDF file is transfered into target directory, it should be able to be open by using Acrobat directly without further conversion.
    We might add a file name file into the target structure but would that rendered the PDF non-readable upon being received by the File Receiver Adapter?
    Any feedback is highly appreciated.

    Hi
    >>We might add a file name file into the target structure but would that rendered the PDF non-readable upon being received by the File Receiver Adapter?
    No, adding file name would not hamper the properties. You can name *.pdf or something else.
    For that matter any file pdf, word, .msg format etc can be transferred by this approach. We have tried it.
    Earlier to SP14 you cannot give the same name to outgoing file without writing a Adapter module. But things are easy with SP14.
    Cheers,
    satish

  • SAP PI Table which stores Dynamicconfiguration(filename) for file sender

    Hello All,
    What is the SAP PI table in which SOAP header elements are getting stored. In my scenario, i need to find out the message ID for a specific file name which is picked by file sender, as file name is stored under Dynamicconfiguration of SOAP header node...
    Regards,
    Sreenivas.

    Hi Sreenivas,
    I am not sure if I have understood your requirement correctly but can't you achieve this using a UDF:
    String headerField;
    java.util.Map map;
    AbstractTrace trace=container.getTrace();
    map = container.getTransformationParameters();
    String key = "MessageId";
    headerField = (String) map.get(key);
    return headerField;
    Let us know.
    Regards,
    Shweta

  • File sender to proxy

    Hello ,
    I am working on File sender (FCC) to Proxy scenario.
    I am able to Pick files with single records. Messagesa r processed succesfully.
    But when i have multiple records in the flat file only the first record is displayed in the inbound message.
    I have tried with Recordset_structure.endSeparator      'nl' .
    but not working.
    Please tell me if there is any FCC parameter missing.
    Or any other configuration missing.

    Source message structure IS
             <xsd:element name="Recordset" minOccurs="0" maxOccurs="unbounded">
                <xsd:complexType>
                   <xsd:sequence>
                      <xsd:element name="GDS_Dispatches" minOccurs="0" maxOccurs="unbounded">
                         <xsd:complexType>
                            <xsd:sequence>
                               <xsd:element name="Filler1" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Transport_ID" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Filler2" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Branch_Number" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Filler3" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Delivery_Date" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Filler4" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Order_Number" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Delivery_Number" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Filler5" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Product_Code" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Quantity" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Filler6" type="xsd:string" minOccurs="0" />
                            </xsd:sequence>
                         </xsd:complexType>
                      </xsd:element>
                   </xsd:sequence>
                </xsd:complexType>
             </xsd:element>
    FCC Parameters:
    Docu name: mt_gds_dispatches
    Recordset structure: GDS_Dispatches,*
    Record set per message: *
    GDS_Dispatches.fieldNames     Filler1,Transport_ID,Filler2,Branch_Number,Filler3,Delivery_Date,Filler4,Order_Number,Delivery_Number,Filler5,Product_Code,Quantity,Filler6
    GDS_Dispatches.fieldFixedLengths     37,6,55,3,1,6,77,6,6,24,8,6,10
    GDS_Dispatches.endSeparator      'nl'
    Should i define any Key field ??
    Please let  me know.

  • Using adapter specific parameters in  a multiple receiver scenario.

    Hi all,
    I have a scenario in which I am sending a binary file from one folder to another using a file sender and file receiver adapter.
    But, I have another file receiver to this message which expects the filename of the above binary file in the form of an XML file.
    I want to know is this possible to receive an adapter specific value in the form of XML when we havent sent any xml from source side?
    Please reply.
    Sumit

    Sumit,
    I got ur sceario.
    I'm sure u have designed the data type for the target file am I right.
    Let say it looks  like
    DT_Filename
    File   1..1
        Filename 1..1
    U might have created the message type for the same.
    Please create the message mapping with the source and target as same(above structure).
    Now create simple UDF with no input.
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION );
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
    "http://sap.com/xi/XI/System/File","FileName");
    String name = conf.get(key);
    return ""name"";
    UDF mapping
    UDF --> Filename[Target node, as per my data type designed above]
    Hope it helps!!!
    If not kindly revert back.
    Best regards,
    raj.

  • Send XML File as attachement in Mail Receiver adapter

    Hi all,
    i have the following scenario. i would like to read an XML file from the file system and send this file as an attachement of a mail to a mail receiver specified in this file.
    i would like to fill the payload of the mail with some information from the xml file and in addition i would like to send the complete xml file as an mail attachement.
    can anybody tell me, how the mail receiver adater needs to be specified ?
    best regards,
    martin

    Hey,
    you can go for dynamic configuration of mail adapter.
    In this you need to import a mail structure.
    mail details such as to, from, subject and content of the mail are a part of the structure.
    In your ID check the Use Mail package and also keep attachments.
    Now you can give your details in mapping itself.
    whatever you want to map in the content of the mail, map it in the content field.
    also your file will behave as an attachment.
    refer to this blog.
    this is the mail structure. Import it as extenal definitions.
    <?xml version="1.0" encoding="utf-8" ?>
    <!--
    SAP takes no position regarding the validity or scope of any intellectual property or
    other rights that might be claimed to pertain to the implementation or use of the
    technology described in this document or the extent to which any license under such
    rights might or might not be available; neither does it represent that it has made any
    effort to identify any such rights.
    Copyright © SAP 2003-2004. All Rights Reserved.
    This document and translations of it may be copied and furnished to others, and derivative
    works that comment on or otherwise explain it or assist in its implementation may be
    prepared, copied, published and distributed, in whole or in part, without restriction of
    any kind, provided that the above copyright notice and this paragraph are included on all
    such copies and derivative works. However, this document itself does not be modified in
    any way, such as by removing the copyright notice or references to SAP.
    This document and the information contained herein is provided on an u201CAS ISu201D
    basis and SAP DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
    ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY
    IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
    -->
    <xs:schema targetNamespace="http://sap.com/xi/XI/Mail/30"
      xmlns:xi="http://sap.com/xi/XI/Mail/30"
      xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <!--
    Mail
      -->
      <xs:element name="Mail">
        <xs:annotation>
          <xs:documentation>Mail package for XI - Mail Adapter</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Subject" type="xs:string" minOccurs="0"/>
            <xs:element name="From" type="xs:string" minOccurs="0"/>
            <xs:element name="To" type="xs:string" minOccurs="0"/>
            <xs:element name="Reply_To" type="xs:string" minOccurs="0"/>
            <xs:element name="Content_Type" type="xs:string" minOccurs="0"/>
            <xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="Message_ID" type="xs:string" minOccurs="0"/>
            <xs:element name="X_Mailer" type="xs:string" minOccurs="0"/>
            <xs:element name="Content" minOccurs="0">
              <xs:annotation>
                <xs:documentation>any type</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="encoding" type="xs:string"/>
        </xs:complexType>
      </xs:element>
      <xs:element name="MailReceipt">
        <xs:annotation>
          <xs:documentation>Mail Receipt for XI - Mail Adaper</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Server" type="xs:string"/>
            <xs:element name="Format" type="xs:string"/>
            <xs:element name="UseMailPackage" type="xs:boolean"/>
            <xs:element name="Encoding" type="xs:string"/>
            <xs:element name="Subject" type="xs:string" minOccurs="0"/>
            <xs:element name="From" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="To" type="xs:string" minOccurs="0"/>
            <xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
    regards,
    milan

Maybe you are looking for