PI SFTP RECEIVER ADAPTER MODULE CONFIGURATION

Hi,
I am new in SFTP adapter. I want to transfer file from proxy to SFTP. I want to output file is in csv format. But now it is in  xml format.
Please help me!!!
My module configuration is in attachment..

Hi
I have got the problem. You have to modify your target structure in the below format
<row>
<column-name1>ABC</column-name1>
<column-name2>12345</column-name2>
<column-name3>Text1</column-name3>
</row>
Create any parent node and inside that create the sub-eliment STATUS and USERID
something like
MT_Succefactor
   <record>
   <STATUS>
   <USERID>
    </record
Then you will get the desired output. Use the below content conversion paramters

Similar Messages

  • PGP Encryption Exception in File and SFTP receiver adapter.

    Scenario: We have got the PGP (Private and Public key pair) and stored the same in PI server path.
    We have sample partner Public key which is store at temporary shared location for testing purpose.
    Issue: While doing the encryption we are getting below exception in case of File Adapter and SFTP adapter.
    Case 1: File Receiver Adapter
    Case 1: SFTP Receiver Adapter
    Can anyone please suggest on below exception?
    How to proceed to resolve the above issue or what should be the cause of the issue?
    Thanks,
    Vertika

    Hi everyone,
    Thanks for reply Sarah
    I have downloaded and added the JCE unlimited strengthh juristiction policay files are updated as directed in above blogs.
    Now I am able to encrypt the File using plane File Adapter (NFS). But still it is throwing exception for SFTP adapter. Below is the error detail:
    MP: exception caught with cause javax.ejb.TransactionRolledbackLocalException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.adapter.pgp.app, BC-XI-CON-B2B) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean@2648d238 for bean sap.com/com.sap.aii.adapter.pgp.app*xml|com.sap.aii.adapter.pgp.ejb.jar*xml|PGPEncryption in application sap.com/com.sap.aii.adapter.pgp.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageKey() of a null object loaded from local variable 'message'; nested exception is: javax.ejb.EJBException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.adapter.pgp.app, BC-XI-CON-B2B) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean@2648d238 for bean sap.com/com.sap.aii.adapter.pgp.app*xml|com.sap.aii.adapter.pgp.ejb.jar*xml|PGPEncryption in application sap.com/com.sap.aii.adapter.pgp.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method
    What could be the reason of above exception in SFTP adapter? Please suggest.
    Thanks,
    Vertika

  • HTTP receiver adapter: dynamic configuration

    I was told that if I have a URL and some parameters, I can use a sync HTTP receiver adapter to call a site.
    I know this can be done using some kind of dynamic configuration, but I am not familiar with this adapter.
    The most important question here is that I need to know if this can be done throw PI, so my question is:
    Is there a parameter limit in the HTTP adapter? If so, what is the quantity of parameters that I can give to the adapter?

    for the ASMA parameters you can use for the HTTP receiver adapter check
    Configuring the Receiver Plain HTTP Adapter - http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/frameset.htm

  • File Receiver adapter module Dynamic Configuration

    Hi All
    I have a adapter module in a receiver file adapter. In the code I try to access the file name through dynamic configuration,The file name gets set in the mapping.
    String strFileName = msg.getMessageProperty(new MessagePropertyKey("FileName","http://sap.com/xi/XI/System/File"));
    When my module get executed I get error: nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageProperty(com.sap.engine.interfaces.messaging.api.MessagePropertyKey) of an object loaded from local variable 'msg'
    Is it possible to get file name in receiver adapter? if so why does this error occur?

    Yes it is possible...chk this
    /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
    i guess u have added this import statement in ur code:
    import com.sap.engine.interfaces.messaging.api.MessagePropertyKey;
    Code will be soemthing like this (FOR PI7.1)
    MessagePropertyKey mpk = new MessagePropertyKey("FileName","http://sap.com/xi/XI/System/File");
    String filename = msg.getMessageProperty(mpk);
    Thanks
    Amit

  • SFTP Receiver adapter error Message could not be forwarded to the JCA adapter

    Hi Experts,
    I'm needing help to solve a problem with an SFTP Receiver interface.
    Before I was sending in the adapter configuration as "Direct" in Write Modus (File .txt) and now I changed to "Use temporary file" is occurring this error:
    Message
    could not be forwarded to the JCA adapter. Reason: 2: Moving
    /ABCftp/To_XXX/140187613515701OUT_20140604-100214-622.TXT.tmp to /ABCftp/To_XXX/01OUT_20140604-100214-622.TXT failed.
    Files as TXT they are being written to the SFTP however when as TMP returns this error ... would not rule SFTP server to accept different TXT files?
    I also changed the namespace to "http://sap.com/xi/XI/System/SFTP" and "http://sap.com/xi/XI/System/File" but is not working.
    Any help will be welcome!
    tks.

    Hi Durga and Naveen...
    I believe the problem is when the application's legacy system picks up the file because the log file got the "tmp", ie, was not formed yet ...
    I changed to a directory without the intervention of the legacy application and it worked.
    I'm waiting for the opportunity to modify the legacy system to capture only files with the extension TXT.
    Tks All for help!

  • File Adapter-Module configuration

    Hi All,
    I have the following requiremnt.
    "Duplicate files should not process"
    Following are the File Access Parameters.
    Source Directory: ABC (ex: contains aa1,aa2,aa3,aa4 files)
    Filename: *
    File name mask: aa*
    My doubt is if they place aa1 file again in ftp , i should not process.
    For this I'm thinking to write module configuration.
    Can any one suggests , whether this is the correct approach? If it is could u explain how to write this module and where to write this module and how to import in xI, do i need to pass any parameter name in module configuration.
    Regards,
    venu.

    Hi Venu,
    You can go with Module in the Sender File Adapter.
    First you need to check the file name and you need to store this file name in the Database.( you can use Java Database).
    If there is an entry in the database for that file, then reject the whole file as per the business requirement. So that you can avoid , overhead of Mapping. Because if there is an error set the flag in the message and check this flag in your Receiver Determination, if it is an error send into error directory.
    Another way is outside the XI, i.e using shell scripts.
    Regards,
    Moorthy

  • Adapter module configuration

    The message that reaches the file receiver channel is
    <EDI_DC40>
                  structure1
    </EDI_DC40>
    <EK1NA1M>
                  structure 2
    </EK1NA1M>
                 So i wanna write a module configuration which will rename the first tag as <ek1na1m>. Plz help

    Hi Sumaya,
    you are creating the adapter module using the document i told or not...
    if you are using that document, then see in the process method you will write all your code......you will take the message as a string........then you can manipulate your string as you want - means you can rename your node..........then you can set this string as your XMLpayload.....
    Thanks,
    Rajeev Gupta

  • Finger Print error in SFTP receiver adapter

    Hi Experts ,
         I am getting following error in SFTP receiver channel, here I have nominated the password based authentication rather than certificate authentication method in channel. And I have created finger print in NWA and shared with SSH server admin to import , then I maintained the same in my receiver channel also. And I have done the vice-versa created the finger print in SSH server side and given the same in channel . Still error is persist in channel, experts please suggest .
    Error :
    Message could not be forwarded to the JCA adapter. Reason: com.jcraft.jsch.JSchException: Fingerprint invalid. Fingerprint is: 6b:f4:38:e7:13:31:59:c8:76:4f:e1:93:10:ac:73:ca
    Error MP: exception caught with cause javax.resource.ResourceException: com.jcraft.jsch.JSchException: Fingerprint invalid. Fingerprint is: 6b:f4:38:e7:13:31:59:c8:76:4f:e1:93:10:ac:73:ca
    Error Exception caught by adapter framework: com.jcraft.jsch.JSchException: Fingerprint invalid. Fingerprint is: 6b:f4:38:e7:13:31:59:c8:76:4f:e1:93:10:ac:73:ca
    Screen shots :
    Thanks in advance,
    RAJA

    And I have created finger print in NWA and shared with SSH server admin to import
    >>>> Though i'm not sure how it works, you can validate the fingerprint of the FTP server with one which is configured in the channels.
    If you have file zilla/coreFTP try to connect with the credentials and then you'll get a pop-up which should have the finger print information.

  • No SuchAgorithmException in Adapter Module configured EAR file

    Dear All,
    I have created an adapter module using 3DES encryption/decryption algorithm for File/FTP adapter configuration and have deployed it at J2EE server of respective XI system.
    The alogorithm and adapter module are working fine in DEV & QA environments but in Mirror system(which is similar to Prod), I have been encountering Error:-
    <i><b>java.security.NosuchAlgorithmException: Algorithm DESede not available</b></i>
    Can you please suggest what could be issue here? Any inputs will be highly appreciated.
    Thanks and Best Regards
    Prashant Rajani

    Hi
    see the below links
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/d517412797f523e10000000a155106/frameset.htm
    CJS-20030  Checking if the secure store exists fails,
    SHA-1 MessageDigest not available during WebAS Java install
    /thread/12191 [original link is broken]
    /thread/11521 [original link is broken]
    verify url secKey
    Regards
    Chilla

  • Modify the payload in a soap receiver adapter module

    Hi all,
    I have an scenario where I should modify the soap_body tag (adding a head and a tail).
    I have implemented it using an adapter module, since the mapping is for business stuff and this head and tail is just a technical requirement of the third party web service
    It works fine when I use a file channel for testing, but when added to the soap channel, then leaves the soap body empty.
    Is there any difference between using the Adapter module on a file channel and a soap channel?
    regards,
    David R.

    David,
    Is your requirement that you need to create the SOAP enevlope with some custom fields when sending the data to the SOAP adapter?
    if yes, this is what you need to do,
    1. In your mapping ( using XSL or Java ) create the Entire SOAP envelope including the SOAP header and the SOAP Body.
    2. In the receiver SOAP adapter, select option "Do not use SOAP Envelope".
    By default, the SOAP adapter creates the SOAP Envelope for the message and strips out the SOAP content for the response. If you need to add custom fields etc in the SOAP header you need to manually create the SOAP header and body and then select the above option.
    Regards
    Bhavesh

  • Help on adapter module configuration

    Hi Folks,
    I want to pick a file and placed in the archive location.  I want to develope a adapter module for this. Can any one please let me know how would I develope an adapter module for this.
    Your help is highly appreciated.
    Thanks,
    Enivas

    Hi,
    It depends which SFTP adapter you are using as some vendors support archiving such as AEDAPTIVe SFTP Adapter (http://www.aedaptive.com/index.php/solutions/sftp-for-sap-netweaver) but I guess you are using Seeburger SFTP adapter ?
    However, if your adapter does not support archiving and you want to write an adapter module, you can refer the following link:
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81

  • How to place a binary zip files using sftp receiver adapter

    Hi experts,
    we got one scenario , where we need to pick the file (.zip) from local source path and place it in SFTP server path.
    we have done all configuration setting and processed a zip to SFTP server.
    but the client are saying the .zip file is not in a binary formate.
    so could any please help me and provide solution on this issue.
    regards
    raju

    hi Praveen,
    i clicked binary mode option in sender channel, and at receiver side sftp adapter channel i not found any option.
    could you please help me.
    regards
    raju

  • How to get zip file in SFTP receiver adapter

    Hi Experts,
    we got one scenario, which the PI need to pick the .zip file from file path using  file adapter and process to SFTP server with same name and extension .zip.
    we tried using ASMA setting and when ever we are placing the '*' in receiver channel file name , it showing error as "Putting * failed".
    so could you please provide solution how we can able to receive the .zip file with same name.
    regards
    raju

    Hi Raju,
    In ASMA the default namespace was like this http://sap.com/xi/XI/System you can changed it to http://sap.com/xi/XI/System/File.
    please try this...
    Regards
    srinivas

  • Seeburger sFTP receiver adapter error: Socket Write Error, EOF Received

    Hello experts,
    We have a sFTP to sFTP scenario for which we are getting below error every time the scenario is executed.
    Error Messages are as follows:
    Put File: Could not connect to remote host, Reason: Unexpected termination; software caused connection abort; socket write error[unknown cause].
    Sometimes below error occurs :
    Put File: Could not connect to remote host, Reason: EOF received from remote side [unknown cause].
    Every time after restart of sFTP adapter on XI box, failed messages are sent successfully to receiver sFTP server.
    There is no error for sender sFTP channel. This error occurs only for the receiver sFTP channel.
    On receiver sFTP side, we are using Public key-private key authentication.
    Can anyone please let me know what could be the cause of connection failure. ?
    Thanks a lot in advance!
    (I searched many threads on SDN but could not find anything relevant to this particular situation, so posting a separate question.)
    Minal

    Thanks Naveen for the reply..
    I missed to mention that we are working on XI3.0 with SP19 and seeburger sFTP is 1.7.4
    Looks like key exchange is working properly as after every restart of adapter all failed messages are processed successfully..
    It is observed that if there is an idle time of 8-10 hours between last data transfer and current data transfer then this error occurs.
    We have increased connection timeout and transmission timeout parameters also for sFTP properties in visual admin.
    Thanks,
    Minal
    Edited by: Minal Vaidya on Oct 5, 2011 8:46 AM

  • SFTP Receiver adapter - move file to another folder

    Hello Experts,
           Thanks for helping me so far.
           I have a new scenario IDoc --> PI --> SFTP (Flat File).
           The requirement is that, after the flat file is successfully placed in SFTP into a folder, the same file should move to other folder.
           Client has suggested this because to make sure that the full file need to pick up only after the successful placing.
           Please suggest your valuable thoughts.
    Thanks
    Ravi

    Hi Ravi,
    I agree with both Janus and Hareesh.
    But still if you want to do it as suggested by client then here is the way.
    Use Option "Run OS Command after Message Processing" in your SFTP channel. You would have to do following things to use it :
    1. Write a SFTP script (or get it done by someone good at it) which does the following
          creates SFTP connection between PI server to SFTP server
          Moves the file SFTP adapter placed in first directory and moves it to another directory
    2. Place the script file on the PI application somewhere
    3. Mention the script file along with full path of application server directory where script file is placed.
    Here is reference of this option
    SAP XI File Adapter OS Command Line Feature - Process Integration - SCN Wiki
    XI: Operation system command - error catching
    Only thing which would change in your case would be that instead of batch file it would be script file which you would be using if your PI server operating system would be UNIX. If your PI application server is based on the Windows Operating system then you would have to manage using the batch file.
    Thanks,
    Amit

Maybe you are looking for