FTP Communication channel :Sender

We are using PI to connect to 3rd party FTP server to get files. This
3rd party is a EDI data exchange company. For security and standards
reason,they create file names with sequential number and the orginal
name of the file is embedded in the file name.
In PI,we need to send it to different directories based on the file
name.So,we need the orignal name to do the above process.
The 3rd party has given us a command to execute to get the orginal file
name. The command is "quote side filename". This needs to be executed
in the directory where the file is.
We have written a batch file for the above command and executing it in
PI communication channel from run OS command before message processing
(also tried from after processing). It is not working and always PI
picks up the file with number file name. The same batch file is
working if we execute it from PI server command prompt. It seems like
PI picks up the file even before executing the BEFORE MESSAGE
PROCESSING COMMAND.
Is there way we can get the orignal file name using some options in the
communication channel? or will it be possible to execute batch file
before PI picks up the file. Any help will be appreciated

Hello,
That is how the File adapter works.
What PI file adapter means by Command Line process before file to be processed is, that the file content will be read by the adapter but before passing the file to the pipeline for further processing, the command line will be executed.
Likewise Command Line Processing after does the opposite that after file is sent to pipeline, the command line will be called.
In your case, scheduling this script outside of PI makes more sense.
PS : As this quote command, this seems to be a VAN connectivity to me, are you sure file adapter can do this functionality?
Regards
Bhavesh

Similar Messages

  • Sender FTP communication channel

    Hi experts,
    We have had the following problem twice with two different comm channels:
    A sender FTP communication channel stops polling for no apparent reason. There were no errors and the status remained green. After I stopped and started the communication channel in the runtime workbench the adapter picked up all the remaining files and processing finished ok.
    Anyone had this problem before? Any ideas for a solution?
    Thx,
    Philip

    Hi
    look Similar thread
    File (FTP) Adapter: stops polling
    File Adapter stops working

  • Dynamic File name in FTP Communication Channel

    Hi All,
    We have requirement where ,we create a filenames dynamically ( runtime).These filenames whihc do change for every execution needs to be added in FTP communication channel.
    1. How can we add the this generated file name in FTP CC Communication Channel.
    2. Does this file needs to part of target structure during graphical mapping ?
    3. Can we also dynamically append the Directory name to file names aswell ?
    Please provide your valuable sugestions.
    Thanks for your support.

    1. How can we add the this generated file name in FTP CC Communication Channel.
    3. Can we also dynamically append the Directory name to file names aswell ?
    to get the FileName:
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    To get the Directory:
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    Then append:
    key+key1
    And then in the CC select the Directory checkbox under the ASMA properties...
    2. Does this file needs to part of target structure during graphical mapping ?
    The file which is sent using the CC will have the FileName as configured in the UDF of the graphical mapping....and if i am not wrong then the target structure resembles the file (if there is no FCC done)....
    Regards,
    Abhishek.

  • Possible to register a Proxy for FTP in the FTP-Communication-Channel ???

    Hi All,
    I have a question regarding the ftp-receiver-communication-channel.
    I have configured an integration scenario for a file-transfer via ftp to New York. I use the File/FTP-Adapter from SAP. I send the files in the passive ftp mode, but only the filename (no content) is created at the ftp server in new york. we get the error: 425 --- Can't open data connection. The Firewall and so on is open for this process and we tested it from other servers. There occurred always the same exception. We have no idea where the mistake could be.
    When we arrange FTP-connects with a ftp-programm (for example WS_FTP) we use a proxy. And it's working.
    Here my Question:
    Is it possible to register a proxy / ftp-proxy in the xi-system or in the File/FTP-Adapter?
    Thanks and best regards
    Christopher

    When you connect to any FTP server it writes some dump to your local system first then opens the data connection. So check whether you have provided neccessary rights on the XI server so that it writes to the local system...
       I think thats when it throws that error...
       Also check whether you have opened necessary ports...it uses port 21and 1024+ ports for passive connections and 21 and 23 for active connections....
       Are you connecting to the other ports rather than standard port 21....then also try connecting through port 21 because if you use other ports it won't work sometimes. Its worth trying with port 21 because if FTP is on UNIX box....the inet daemon on unix box automatically reroutes to the appropriate port after it recieves the connection from port 21.
          And also did you tried connecting to FTP server through you XI server using some other FTP client.
    Hope this helps...
    Regards,
    ravi

  • Error in communication channel sender JDBC AS400

    The communication channel worked ok, but suddenly they began to give the following error:
    Error during database connection to the database URL 'jdbc:as400://10.1.0.254/afildat' using the JDBC driver 'com.ibm.as400.access.AS400JDBCDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:as400://10.1.0.254/afildat': java.awt.HeadlessException.
    The driver was installed again, but error persist.
    Thansk

    Hi,
    This issue is due the Sender JDBC Server got restarted or down, check the server connectivity.
    If you found still the issue then Stop & Start the communication channgel once, surely your issue will be resolved immediately.
    Regards
    Venkat

  • FTP communication channel generating logs in NWA Logs and Traces

    Dear all
    Wishihg you all a very happy new year. I have a peculiar issue, where I am using a FTP adapter, and files are deposited in an FTP location. This processing is runnign succesfully. However, my NWA logs says that there is communication issues while putting htis file in the server.
    Whenever there is a transaction happening this error gets generated in NWA log.
    Does any one have any idea why this is happening.
    Many thanks & Regards : Bobby Bal
    Below mentioned is the error message.
    Message:   Error during disconnect from ftp server ediftp-pw09.colpal.com, ignored: com.sap.aii.adapter.file.ftp.FTPEx: 421 Unexpected reply codeTerminating connection.
    Severity:   Error
    Date:   2012-01-10
    Time:   09:18:12:191
    Category:   /Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/File
    Location:   com.sap.aii.adapter.file.File2XI.disconnectFTPServer
    Application:   
    Thread:   XI File2XI[XXX_WMS_SENDER_CC/SYS321/XX_ChinaWMS]_34877
    Data Source:   j2ee/cluster/server1/log/applications_01.log
    Arguments:   
    Passport User Activity ID:   7f0f0ddd38fd11e1b099c68806a4be02
    Message ID:   com.sap.SOA.apt_file.0058
    Session:   0
    Transaction:   
    User:   J2EE_GUEST
    Time Zone:   0-500
    Customer Message Component:   BC-XI-CON-AFW
    Runtime Component:   com.sap.aii.af.lib
    Correlation ID:   144518351000001784
    Passport Session:   7F0F0DDD38FD11E1B099C68806A4BE02
    Passport Connection:   7f0f0ddd38fd11e1b099c68806a4be02
    Passport Connection Counter:   0
    Log ID:   C000A7E404320DFE00000000013600A4
    Host:   xppapp14
    System:   XPP
    Instance:   DVEBMGS14
    Node:   server1

    Hi Bobby,
    1. Check whether the user you are using has access control i.e Read/Write Access from the folder in FTP server..
    2. Check it at OS level by directly pasting or pick the files..
    3. From SAP end check the user credientials provided in the file adapter i.e username of the FTP server and the Password of the FTP server it is case-sensitive.
    4. Try to give the exact path from where the file is to be picked and reactivate the scenario.
    5. what is the file size of the file that is going to be picked from the ftp server.
    6. Then finally check in Communication channel monitoring detailed log what is the error it was coming and check the log in XI server you can clearly notice the error.
    Even some times it will access at OS level but not through the server for this reactivate the adapter and provdie the user credentials and the path once again..
    Regards,
    Ravi

  • Communication channel - Sender File Adapter - File Encoding

    Hello colleagues,
    I'm using a sender file adapter to send flat files to the IE for further mapping and transformation @runtime. The flat files which are received by the file adapter are based on two different codepages:
       -> MS-DOS Codepage 437
       -> Windows Codepage 1252.
    Do you know by chance which kind of file encoding I have to set in the configuration of the respective sending file adapter for these two code pages?
    For the windows codepage 1252 I'm using the file encoding ISO-8859-1, which works quite fine. However, for the input files based on codepage MS-DOS 437, I do not know which kind of file encoding  to use. If anyone could help me with that issue, I would be very glad.
    Best regards
    Stefan

    HI,
    Find below link for more help
    http://www.kostis.net/charsets/trans130/cpdos.htm

  • Adding SCP encryption to FTP in communication channel

    Hello,
    Is there an easy way to have files SCP (secure copy protocol) encrypted as they are output using FTP communication channel such that if the SCP were to fail for some reason, it would register as an adapter engine error and show up as system error in runtime workbench?
    We are currently doing this by executing a script (that does the SCP on the output file) in the command execution feature of the communication channel after the file is created on the server. However if the SCP fails, the message is still marked as complete with no error as it is not possible to capture the failure in the script and communcate back to communication channel.
    Is there some easy way that file adapter could be enhanced by adapter module development or by module processor development so as to include the SCP encryption step in the code? That way if the SCP fails, it would show up as an error in adapter engine during runtime?
    Thanks
    JB

    Hi Sabita,
    If you wish to use Port 22 only, then you can use FTPS option instead of SFTP.
    FTPS is readily available with the standard FTP adapter, Please refer the below blog:
    /people/rajasekhar.reddy14/blog/2010/04/13/how-to-configure-ftps-in-file-adapter
    But to implement this the Third part should be capable of handling Explicit FTP (FTPS) protocol.
    Please refer the below thread, this may help you:
    what is the port for FTPS communication in File Adapter
    -Supriya.

  • Communication Channels : Receiver, Sender ?

    Hi all,
    sometimes I'm confusing a receiver or a sender communication channel. I was told to use receiver when XI receives, and sender when XI sends. But it's not so clear.
    Does anyone have some tips ?
    Thx to all.

    Hi Elliot,
    You use the Sender for the system that sends the message, system that execute the message, and receiver in system that receive the data.
    for example.
    I have a ECC with RFC with developer the purchase order, and this PO is input the legacy system.
    The ECC is Sender and Legacy system is receiver.
    when I create the Interface Message, I choose the Inbound and Outbound message, and Sync or Async message.
    Inbound or Outbound I See by Legacy system.
    When OUT to the Legacy, the message is Outbound.
    When IN to the Legacy, the message is Inbound.
    When I need to the response, I use the Sync message.
    When I don´t need the response, I use the Async Message.
    For example.
    ECC/RFC -> XI -> LEGACY
    the init of the message is in ECC, I executed the RFC, and the data input the LEGACY.
    I Need a communication channel SENDER (RFC Adapter).
    I Need a communication channel RECEIVER (JDBC Adapter - for example).
    and the interface message, the message is INBOUND Async.

  • Passing parameters from Communication channel to EJB Module

    Dear friends,
    We have an EJB module in NWDS. We want to pass some parameters from Communication Channel (Sender) in Integration Directory and use them in our EJB Module. Is there any function to do this process?? Please help me out
    Thanks and Regards,
    N.Jayanth Kumar

    Hi,
    Use the Channel object in this manner:
    String cid  = moduleContext.getChannelID();
    channel = (Channel) LookupManager.getInstance().getCPAObject(CPAObjectType.CHANNEL, cid);
    //To access channel parameters e.g in file adapter the connection parameters like host use the below code
    String host = channel.getValueAsString("ftp.host");
    PS: it is assumed that you are having the source code for adapter module development found on server
    Regards,
    Fariha

  • Communication channel Availability

    Hi All,
    I am having a File to File scenario wherein there is no mapping involved.You can say as good as using a FTP.I am using XI in this scenario purely because of client requirement.
    Problem Statement :
    I need to pick up the source file from a particular folder and send it to target folder at a paticular time say 8:00 am daily.
    Steps taken:
    To take in this requirement, I have configured the Sender communication channel (Type File) availability to 8:00am  - 8:15am daily.This was done by going to RWB>CC Monitoring>Control data(Automatic)
       Settings :
       Details Tab:
       1)Description: Just any characters here
       2)Active: Checked
       3)Availability Time - Daily
             At (Time):8.00    For (Duration): 15      Minutes 
             Series Start:  Start Date        Series End:     End Date
             Availability Times From : -same as above-
       Communication channel Tab:
       Communication Channel:<Sender Communication channel Name>
    All above config is saved.
    Problem encountered:
    Now when I do the above steps, XI does take not only the file from source for 8-8:15 duration but also outside it. So file which comes in source folder after 8:15 am say at 9:00 is also picked up by XI, which ideally should not be the case.
    My Query :
    Am I going wrong somewhere while configuring the availability of Comm channel?
    Regards,
    Shiben

    Hi Shiben,
    Could you please check the Control Data state of Communication channel, it should be Automatically (not Manually)
    &#9679;      Manual
    You control the communication channel by choosing Start or Stop.
    &#9679;      Automatic
    The communication channel is controlled by availability times.
    &#9679;      External
    The communication channel is controlled by an HTTP request.
    http://help.sap.com/saphelp_nw04/helpdata/en/44/2a1a8620323f0ee10000000a114a6b/content.htm
    Cheers,
    Jag
    Edited by: jag on May 7, 2008 5:41 PM

  • PI sender communication channel not reading files from NFS directory

    Hello,
    I have a sender communication channel configured to read file from NFS directory which is on ECC server. A program in ECC generates the file and puts it on the ECC server in the output directory. PI sender communication channel is supposed to pickup this file and process it. If I give the NFS path as the source directory, I am getting error: Configured source directory '//Server/DIR/OUT' does not exist. I tried putting '
    Server\DIR\OUT' too but same error. Do I have to add the NFS path of ECC into PI as logical path?
    Any suggestions?
    Thanks,
    Sangita

    Hello Sangita,
    Your ECC server is an external system, therefore you need to activate FTP service in that system and use the transport protocol FTP:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    You can use NFS protocol when you have a local directory in XI server.
    Best Regards,
    .Luis Bernal.

  • NegativeArraySizeException in Sender Communication Channel

    Hello PI world
    I have an error in a communication channel that I don't understand :
    The interface is a simple mapping from a FTP server to a SAP IDoc.
    The files are archived in the SAP PI server using the CC configuration :
    CC Type : File FTP Sender (SAP BASIS 7.11)
    Processing Mode : Archive
    Archive Directory : /[directory on our file system]
    Archive is not on the FTP Server but in our file system.
    This configuration is working with a local FTP server and a distant FTP server that we have.
    But it's not working with a distant FTP on a AS400 system (where I have no admin access).
    The processing "Delete" is ok, but with the configuration above, we have this error in the communication channel :
    Could not process due to error: java.lang.NegativeArraySizeException
    Is this an error from SAP PI system or a mistake in the distant FTP server configuration (AS400).
    I didn't find any similar problem in SDN.
    Thanks for your help.
    Jeremy.

    Hello there,
    we face the exact same problem on SAP PI 7.11 SP 4.
    XIAF is on 1000.7.11.4.4.20100106234100
    Is there any solution on this for PI 7.11?
    Note 1297495 is not for 7.11.
    Note 893762 is not for 7.11.
    SAPXIAF04 patch #6 does not show me (at least not in SWDC) any solution to this problem. Or is there with a later patch?
    Thanks a lot,
    Matthias

  • Sender communication channel stopped after error "Connection Timed Out"

    Hi experts,
    in our scenario we have an asyncronous sender communication channel with polling every 6 seconds to an external FTP server.
    Yesterday evening a "Connection Timed Out" error came.
    After this error the polling stopped but channel in communication channel monitoring still remains green.
    So status green but no polling.
    To solve this problem we stopped and then restarted channel from CC monitoring.
    The channel is configured "manually".
    The question is: Is it possible to avoid this problem? Maybe there's a parameter in configuration to set?
    After a time out error the channel must go on polling, it should not stop. Or it must shows red status.
    Thanks
    Fabio Boni

    HI,
    I think PI level is "SAP J2EE Engine 7.00 PatchLevel 109886.44"
    Thanks
    Fabio

  • FILE SENDER COMMUNICATION CHANNEL DOESN'T GET FILE

    Hi,
    I have create a new sender communication channel with ftp file configuration. Server parameter and source directory are correct.
    I have also checked file and directory permission (chmod 777)
    Poll interval is 600 secs.
    There is no error in communication channel monitor  (returned log: CC is correctly configured and started).
    Process started every poll interval, but no file is picked up.
    Why?
    Carme

    Hi,
    What type of file are you processing. Check whether the file type is binary or text mode.
    Also check whether the file name you have specified in the CC and the exact file in the directory are the same.
    Also check the file processing mode, whether it is read only, delete or in test mode.
    If the file is in read only mode when the file first processed, then once the file was processed it would be in read only mode, so if you place the new file it should process, so try deleting the existing file in the directory and place a new file with exact file name along with the correct extension and try to process it.
    Also I would suggest you check the exact file extension, by unchecking the radio button in the folder option under the menu tools> Folder options> view-->hide extension for file type.
    Regards,
    Nithiyanandam

Maybe you are looking for

  • Rounding qty based on UOM.

    Hi, This is regarding the Rounding logic at the time of creating orders (particualrly at the time of confirmation) Material X is defined with sale unit as "CASE", but basic UOM is "Pieces". Material master data UOM conversion is defined as 1 CASE = 8

  • Error U11758

    Hi there, when I re-linked .svg assets in my desktop, Muse encountered the following error and closed.  "At EndUserAction an object (U11758 ImageFrame) doesn't have an owner?!"  Upon re-opening muse I cannot file/save as, the same error continues to

  • E61 - Copy Paste

    Nokia E61 > 1.6610.04.04 19-04-06 RM-89 Bought SIM Free but using on UK Orange Network Anybody know if it's possible to copy and then paste selected data within the E61 ? Ideally a keyboard shortcut as I can;t see the option to copy or paste in the m

  • I bought a mac air yesterday and it came with lion. Do i have to purchase the mountain lion?, I bougth a mac air yesterday and it came with lion. Do i have to purchase the mountain lion?

    I bought a mac air yesterday and it came with lion. Do i have to purchase the mountain lion?, I bougth a mac air yesterday and it came with lion. Do i have to purchase the mountain lion?

  • Backup won't run on schedule, runs randomly, why?

    Hi, I have backup scheduled to run every morning at 9:30. It rarely does. It runs about once a day, at random times. I'm usually on the net, it's not a connection problem. I tried trashing all prefs & checking permissions with disk util, no luck. Her