Receiver FTP

Hi,
I am using Receiver FTP content conversion and generating a CSV file
I have 6 records output in the file and unfortunately starts with an empty two lines.
I have used the following parameters
File Encoding: UTF-8
FCC Parameters:
Record.endSeparator = 'nl'
Record.fieldSeparator= ,
Let me know whether anything else needs to be given on the same.
Regards
Krish

Hi Prashanth,
Thanks, I thought the issue seems to be with the sender file adapter, so suggested.
Krish, Please ignore the previous message from me.
Krish, the parameters specified by you should be ok to work.
Edited by: Hareenkumar on Oct 28, 2010 9:47 AM

Similar Messages

  • Retaining the FileName in the Receiver FTP adapter

    Hi experts,
    I have a situation here, were i need to retain the FileName in the message header in the receiver FTP adapter.
    I have tried using variable subtitution but seems the FileName is not supported in variable substitution.
    Please help
    Thanks

    Hello,
    if you need file name to be retained in the receiver adapter from the sender side. then u can do that by dynamic configuration using adapter specific message attributes, check this blog for details-
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    if you dont have a mapping in your interface to use dynamic configuration, then you can do it via adapter module also- have a look here, /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    regards,
    francis

  • Dynamically generate terget directory in receiver FTP adapter

    Hi guys,
    I'm trying to set up a scenario where the file will be placed into a terget directiry based on values from the incoming message. I can't use variable substitution as my target message does not contain the needed value, so I'm trying to set up a dynamic configuration in an UDF. Unfortunately, this is not working.. Any ideas, what could be wrong? The receiver FTP adapter always just takes values from it's configuration. It doesn't help when I try to change it in mapping.
    This is the java map code in the UDF:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
    DynamicConfigurationKey key2 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, a);
    conf.put(key2, "tfilename.txt");
    return "";
    Thanks a lot for any help,
    Olian

    Hi,
    use below code it will work fine
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
    String a=conf.get(key);
    String b=conf.get(key1);
    var1 = a+b; ;
    return var1;
    map this udf to root element of your receiver structure.
    Regards,
    Raj

  • Prerequisites for Sender and Receiver FTP adapter

    Hi Experts,
    I am new to PI and configuring simple file to file scenario. I need to know the prerequsites for sender and receiver FTP adapter. Scenario is System A -> XI -> System B .
    What I want to know is:
    1> What ports need to be opened?
    2> Any service that I need to activate?
    3> Do I need to install FTP server in any of the machine?
    If I have missed something, please add.
    Br,
    Nilz

    Hi,
    1> What ports need to be opened?
    mentioned in below link as said its 21.
    2> Any service that I need to activate?
    No
    3> Do I need to install FTP server in any of the machine?
    THere are two ways by which u can pick ur file.
    1) NFS by which u can put the file on XI appplication directory and pick up ur file.
    2) FTP u have to put ur file on FYP server and XI will pick up the file from there. U can use freeware FTP and install it on ur Desktop search on goolge u will get ti FTP installtion.
    refer the below configuration requirement for FIle adapter.
    http://help.sap.com/saphelp_nw04/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
    ALso refer the end to end file to file scenario.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/flatFILETOFLATFILE&
    chirag

  • When to use "Use Temporary File" in receiver FTP adapter

    Hi Experts,
    I have nerver used "Use Temprary File" as the "Write Mode" in receiver ftp adapter.
    I want to knwo under what kind of requirment we should use this option?
    Thanks in advance.
    Best Regards,

    Hi Aditya
    Usually it's advisable to use "use temporary file" as write mode when you want to avoid your file to be picked up by receiver while PI channel is still writing it.
    Obviously larger the file, more chances you have that this issue could occur.
    If you select the "use temporary file", XI will write the content to a temporary file with another name of your choice and only once writing has finished it will rename it to the actual name setup in the "file name scheme".
    Regards,
    Giuseppe

  • Receiver FTP Adapter File Size Splitting

    Hi,
    I am receiving an IDoc from R/3 into XI.
    I then map this IDoc into an xml file and use a receiver ftp adapter to drop the files onto a ftp server.
    Is there anyway, that I can use the adapter to split the message interface into smaller files.  For example, if I were to ftp the message interface into 1 file, the file size would be 1MB.  I would like to split the 1 message interface into 4 x 250kb files without having to split the message interface?
    Thanks,
    Miguel

    Hi,
    If you split into 4 files each one should be a XML file right?
    This is possible without BPM.
    Go thro the blog:
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Wat u need to do is make the target side 0..unbounded. If u have 100 records, Map some  25 records in first occurence, 25 in second and so on. This way u can reduce file size.
    Regards,
    P.Venkat

  • Empty file created in Receiver FTP content conversion

    Hi,
    The receiver FTP channel is generating an empty file.
    The entry for the message in sxi_monitor is successful, also the target payload is having values.
    Still the file content conversion is generating an empty file.
    The three parameters given in content conversion are:
    1. fieldFixedLengths
    2. fieldNames
    3. end Separator
    Kindly help.
    Thanks,
    John

    Hi John
    I hope your structure is like this :
    Root Node
    ...Child Node
    .......field1
    .......field2  & so on...
    If so, in recordset structure add the name of the Root Node too. I faced the same issue sometime back.
    Use the same parameters for Root Node that you are using for Child Node.
    Apart from this check the payload in Message Display tab(communication channel monitoring) in RWB.
    Regards
    Soumen....

  • Empty files are getting created at receiver FTP server

    Hi Experts,
    I have an Idoc to File scenario where I am sending an XML file to receiver FTP server.
    Scenario is working fine but sometimes an empty file is getting generated at receiver FTP server.
    I have already selected ignore empty file at receiver channel so issue is not within PI system configuration.
    When I checked the message log I can see that almost all the files are getting created successfully without any issues, but
    for some files/messages I can see that there are below error logs.
    "Transmitting the message to endpoint <local> using connection IDoc_AAE_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not get FTP connection from connection pool (1 connections) within 5,000 milliseconds; increase the number of available connections"
    "Exception caught by adapter framework: Could not get FTP connection from connection pool (1 connections) within 5,000 milliseconds; increase the number of available connections."
    And after there is again success message log in the same message and it creating a file successfully during that time stamp.
    but the third party is sometime receiving empty file which I am not able to find in any trace or log (my file name is SD_timestamp.xml).
    Can you please let me know what is the solution and what adjustments FTP server need to do in order to resolve this issue.
    Thanks in advance.
    Regards,
    Rahul Kulkarni

    The error you are getting that says "Could not get FTP connection from connection pool (1 connections) within 5,000 milliseconds; increase the number of available connections" has probably nothing to do with the empty files problem.
    I second Hareesh Gampa that you first should try "temporary file creation". You might also need to tell the FTP owner that he should only pick up files with that are written completely and that do comply with a negotiated file name schema. The temp file should have another schema of course then. He should not pick up just every file that is written. See here for details
    http://help.sap.de/saphelp_nw74/helpdata/en/44/6830e67f2a6d12e10000000a1553f6/content.htm
    HTH
    Cheers
    Jens

  • EOIO service on Receiver FTP/File Adapter

    Hi,
    I have a scenario where I would like the sender adapter to be quality of service, EO (Exactly Once), and the receiver ftp/file adapter to be of quality of service, EOIO (Exactly Once in Order).  Is there a way to change the quality of service on the receiver adapter only so that it differs from the sender adapter?
    Thanks in advance.
    Best Regards,
    Duke

    Hi,
    Unfortunately changing the QoS in the adapter module does not solve the issue.  The message appears to be put into the queue prior to the module being called.  Below is the audit log.
    2007-10-26 09:58:30 Success Using connection AFW. Trying to put the message into the receive queue.
    2007-10-26 09:58:30 Success Message successfully put into the queue.
    2007-10-26 09:58:30 Success The message was successfully retrieved from the receive queue.
    2007-10-26 09:58:30 Success The message status set to DLNG.
    2007-10-26 09:58:30 Success Delivering to channel: XXXXXXX
    2007-10-26 09:58:30 Success ChangeQoS: Module called
    2007-10-26 09:58:30 Success File adapter receiver: processing started; QoS required: ExactlyOnceInOrder
    As you can see the QoS has been changed to EOIO from the adapter module, but the message is still in Qos EO.
    Am I missing something or is there another way this can be achieved?  Can we do this in the mapping somehow before it ever gets to the AFW?
    Thanks in advance.
    Best Regards,
    Duke

  • Receiver FTPS (Explicit) channel giving error while writing files.

    Hi All,
    We are facing an issue while using FTPS for writing a file to a partner location. Since this is the first time we are using FTPS, we went through some blogs and notes to configure the same, but still facing problems. Listed below are the steps undertaken for the configuration:
    1. Got necessary ports opened on the firewall (the partner FTPS site uses explicit FTPS with control commands on port 21 and data on some custom ports).
    2. Tested file transfer on FTPS using some FTPS client tools from the PI 7.11 server being used.
    3. Uploaded the server SSL certificates in the NWA Keystore, Trusted CA view in both Base64 and normal formats (all certificates in the chain uploaded).
    4. Configured the FTPS receiver channel for the CN name mentioned in the certificate, port 21, directory specified, NO X.509 client authentication (as that is not needed), AUTH TLS, USER,PASS,PBSZ,PROT as command order and using some authentication (user ID, Pwd for logging in). 
    But we are still getting the error:
    'An error occurred while connecting to the FTP server 'xxxxxx.xxx.com:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 Access denied.'. For details, contact your FTP server vendor..'
    On the partner side we could not find any logs and from PI too we are not getting any more details than mentioned above. CAn some let us know any known resolutions to the issue or how to get more details from the trace in PI (we have already increased the trace level of the file adapter to error but nothing more useful is available in Java default trace than mentioned above).
    Appreciate any help extended towards this.
    Thanks in advance,
    Avishek.
    Edited by: Avishek Gorai on Feb 21, 2011 8:50 AM

    Thank you all for your answers. I want to bring to your notice that the file transfer (using FTPS) is still working using commercially available FTP client tools from the PI server. So in my opinion issues like OS user not having authorization, incorrect user credentials and firewall issues are ruled out. We are facing issue only when using PI adapter for file transfer, this could be due to incorrect commands or command sequence being sent to the Server etc. which the server is rejecting and giving an unauthorized error.
    We also tested this by giving incorrect pwd OR changing the command sequence, in which case the errors thrown were more specific and appropriate (like incorrect credentials OR AUTH TLS command missing).
    The strange thing is that things work from the PI server when using FTP tools, but fails from PI adapters, which makes me feel there is some issue with the protocol or the setup.
    Also please let me mention that we have ensured Java cryptographic toolkit is installed on the PI system being used.

  • Receiver FTP adapter java.lang.StringIndexOutOfBoundsException

    Hi,
    i'm getting the following error trying to reach an FTP server using a Receiver CC:
    Attempt to process file failed with Error occurred while connecting to the FTP server "xxxxxx:21": java.lang.StringIndexOutOfBoundsException
    Any help would be really appreciated
    Thanks
    Simona Milione

    Hi
    check the fixedFieldLength parameter for all the fields in you File COntent COnversion
    there is some field whose length is greater than what you specified in FCC
    regards
    krishna

  • Receiver FTP Adapter Problem

    Hello. My scenario is: A file is sent from R/3 via RFC, then from XI to an outside system using the FTP adapter. The RFC part is working, but I've encountered some errors with my FTP adapter. The file is not being created in my directory at all and this is the error message I'm getting:
    - 2006-10-11 08:28:20 CDT: Error: Message processing failed: Exception: ftp access error: com.sap.aii.adapter.file.ftp.FTPEx: 552 transfer failed
    Can anyone help, please?
    Thank you.
    Nicole

    Hi Nicole,
              A few things you might check are:
    1) The Ip address given is correct.
    2) The login details given in File receiver adpater are right
    3) The server is running when you make the transfer, that is 'Allow logins' status is checked in case of guild FTP server or similar servers.
    4) The destination directory is given as "/root" with "/" slash.
    5) All the firewalls are turned off.
    6) File processing mode is 'Create'.
    Cheers,
    Ashish

  • Receiver FTP Adapter - Directory create

    Hello,
    the XI FTP Receiver Adapter by default creates the target directory on the FTP Server if it does not exist. The J2SE Engine had an option if you want to create the directory or not.
    Is that available in the XI 3.0 J2EE FTP Adapter? I could not find it. Further if that can be set, would the adatper throw an error?
    Thanks
    Stefan

    Hi Stefan,
            I'm facing the same issue, while trying to create a dynamic folder in the FTP server.
    The FTP adapter failed with the error 'An error occurred while connecting to the FTP server 'ftpserverip:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 /root/dynamic/: The system cannot find the path specified. '. For details, contact your FTP server vendor.
    Were you able to resolve this issue using any SAP notes?
    Thanks in advance.
    Thanks,
    Joe.

  • Dynamic configuration of Receiver FTP File channel

    Hi,
    The scenario is sending an IDOC from an R/3 system (using IDOC adapter) to a FTP file system. I want to dynamically configure the filename and the target directory in the following cases
    1. With filename and the target directory coming as a part of the source IDOC
        structure
    2. There is mapping involved (pass thru) and the file name and target directory are
        NOT a part of the source IDOC structure.
    I have seen blogs which explains the situation using mapping for File-To-File scenario (Not IDOC-To-File scenario) and some blogs explaining for Http adapter and email adapter, but not for the above scenarios for IDOC-To-File Scenarion.
    Your input is highly appreciated.
    Regards
    Ganesh

    hi
    use Varable susbtituion in receiver file adapter
    you set the Enable indicator, you can enter variables for the Target Directory and File Name Scheme. Enter the names of the variables and references in the table.
    &#9679;      Enter each variable that you reference in the Target Directory and File Name Scheme fields without the surrounding percentage sign under Name of Variables in the table.
    The variables can refer to attributes of the message header or elements of the message payload.
    &#9675;       If the variables are to refer to an attribute of the message header, add the prefix message: to the name of the variable under Reference. You can specify the following attributes of the message header:
    sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace,
    message_id (message ID with hyphens, for example 9fbe1ff1-9a0d-11d9-8665-cbf10a126331)
    message_id_hex (message ID in hexadecimal format, for example 9fbe1ff19a0d11d98665cbf10a126331)
    For example, if you want to specify the interface name from the message header in the target directory or in the file name scheme, enter message:interface_name as the reference.
    or look into help
    http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    please reward points
    Thanks
    Sreeram.G.Reddy
    Message was edited by:
            Sreeram Reddy

  • Receiver FTP  Error

    Hi Experts
    In the receiver file adapter we are getting the following error while writing the file to FTP:
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: An error occurred while connecting to the FTP server XX.XXX.XX.X:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 /Myfolder/Inbound: The system cannot find the path specified. '. For details, contact your FTP server vendor.
    refered forum post on this but no luck.
    We have verified  the following :
    1.Tried connectiong to specified FTP from PI server, the connection is happening and  were able to place a file using PUT  
       command  .
    2. The Channel configuration is also fine ,user  credentials are mentioned correctly .
    3. We tried changing the directory to a local FTP and file operation is successful.
    4.Made dummy changes in channel config , saved activated. Also tried stopigng/restarting channel in RWB.
    Is there any specific PI user access required to be checked/enabled  by  cleint FTP team?
    Still we have the same error .
    Regards,
    Srinivas

    Hi,
    1. Do you use the Central Adapter Engine or a decentralized one ? if yes, to do your test, you have to connect you on the decentralised AE and not on PI.
    2. To be sure to clean entirely the cache, you have go in Visual Admin (Pi7.0) and stop-start the service "FILE adapter".
    Link is: Tab Cluster -> Server > Services > SAP XI Adapter: File.
    3. Do not forget also, that in RWB > Cache Monitoring, you can see the content cache of a specific CC (for instance).
    I Hope it will help you.
    Regards.
    Mickael
    Edited by: Mickael Huchet on Oct 5, 2010 8:10 AM

Maybe you are looking for