Receiver SAP SFTP adapter-errorlog on SFTP server

Experts,
I am using receiver SAP SFTP adapter to connect to an SFTP server and send files.Receiver SFTP server is a VMS system.I could able to write the files to home directory of the user that has been given,but apart from writing the files I am seeing warning log file in the the target folder on SFTP server like below description.I am giving dot(.) in the file path to write the files to the default directory that has been assigned to the user given by receiver SFTP server team.
WARNING: ssh_file_server_receive_proc: platform cannot stat() filename /home/dir1/dir2 ./TestFile(TestFile is my file name) .
Just to test,we placed files in the receiver SFTP server using same user and password as the PI recv SFTP channel with command line and winsCP client tool,but we don't see any error logs on the server with WinSCP tool or command line transfer of the files.Log file with above  warning is generating only when we place files on the server using SAP SFTP adapter in the recv channel of PI.
Please let me know,if you have any insight or seen similar issue.
Thank you,
Sri

Hi Poonam - Blogs on SFTP : Just search for SFTP and filter by blogs/documents.. you can find many..
>>> http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/305eeb5b-81e7-2f10-d8aa-9216de04ca3e?QuickLink=index&overridelayout=true&57075820413417
http://scn.sap.com/docs/DOC-35572
I read in some of the SDN forum that SFTP adapter doesnt have the capability to read the files from multiple directories. So, if we get any requirement to read the files from multiple directories using sftP, why could be a possible solution for this requirement?
>>> Yes. It is only possible with NFS.
You have to define multiple channels/interfaces...

Similar Messages

  • How to put // infront of file name in SAP SFTP receiver adapater

    Hello,
    How can we put double forward slashes(//) in front of the file name in receiver SAP SFTP adapter? The receiving SFTP server is based on mainframe with VMS  and for some reason the receiver system wants to have // in front of the file name.
    I tried with all options of put // in the directory or part of the file name parameters in the channel,but I get following error.
    Transmitting the message to endpoint <local> using connection SFTP_http://sap.com/xi/XI/SFTP failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.resource.ResourceException: 4: Putting ./'//TESTFILENAME' failed.
    please let me know,if there is a work around for this requirement.
    thank you,
    Sri

    Usually filename schema will not allow you to put special characters. Please refer this link for restricts. Filename - Wikipedia, the free encyclopedia
    You may also try Run Operating System Command option to execute Unix script to add '//'
    Could you please let me know the file type ?

  • Flat file to XML in SAP SFTP adapter

    Hello All
    I am trying to convert flat file to xml using SAP SFTP adapter.
    Flat File is like below:
    AABEN;20141106;20141106;45;0.00
    AABOL;20141106;20141106;45;0.00
    ABGRI;20141106;20141106;45;0.00
    ADDEA;20141106;20141106;45;0.00
    ALADA;20141106;20141106;45;58.43
    AMSCH;20141106;20141106;45;0.00
    ANOLV;20141106;20141106;45;0.00
    ANROY;20141106;20141106;45;0.00
    AVMCD;20141106;20141106;45;0.00
    Message Type structure I created like below
    In Server SFTP adapter in Module tab I am using "AF_Modules/MessageTransformBean" and conversion type ="StructPlain2XML"
    I am getting error = "Error: com.sap.aii.af.sdk.xi.adapter.trans.TransformException: Transformer Conversion3.0.5226 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403) Parameter 'xml.keyFieldType' is missing (4403) ; nested exception caused by: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403) Parameter 'xml.keyFieldType' is missing (4403) "
    I am not using any key field then please let me know how to overcome this issue.
    I searched on SDN but did not get any perfect answer.
    Thanks
    Dheeraj Kumar

    Hello Dheeraj,
    Thanks for your reply. I created a new discussion,
    Flatfile to XML
    Thanks well in advance for your help!
    -Satish.

  • SAP SFTP Adapter

    HI FRIENDS,
    I need your help in two points -
    1 -- Is there a document on sdn which covers the detailed information on SAP SFTP adapter? I found few links online but they are only covering few features. None of them talks about any limitation on the adapter.
    2-- I read in some of the SDN forum that SFTP adapter doesnt have the capability to read the files from multiple directories. So, if we get any requirement to read the files from multiple directories using sftP, why could be a possible solution for this requirement?
    Thanks for your time. PS.

    Hi Poonam - Blogs on SFTP : Just search for SFTP and filter by blogs/documents.. you can find many..
    >>> http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/305eeb5b-81e7-2f10-d8aa-9216de04ca3e?QuickLink=index&overridelayout=true&57075820413417
    http://scn.sap.com/docs/DOC-35572
    I read in some of the SDN forum that SFTP adapter doesnt have the capability to read the files from multiple directories. So, if we get any requirement to read the files from multiple directories using sftP, why could be a possible solution for this requirement?
    >>> Yes. It is only possible with NFS.
    You have to define multiple channels/interfaces...

  • Problem connecting SFTP server.

    Hi Experts,
    We are trying to connect to SFTP server outside network from our PI system  (advantaco sftp ) we are getting below error.
    Delivery of the message to the application using connection SFTP_http://advantco.com/xi/XI/SFTP failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.resource.ResourceException: java.lang.Exception: Cannot connect to SFTP server.
    we tried connecting through Filezilla by giving port (22-SFTP) in this case we are not able to connect we are getting the same error.
    But when we try the same in filezilla giving port(21-FTP) we are able to login successfully.
    but we have been informed by 3rd party that this is the SFTP server and not FTP server, tried using ping also but getting same error .
    As it is outside network tried using proxy also but no success.
    and also third party tried ping using public network they are able to ping successfully. they don't have any firewall.
    any inputs on this ?

    Are you sure if that is an SFTP server? I don't think so. It's not about PI adapter even the filezilla is throwing the same exception.
    >>>but we have been informed by 3rd party that this is the SFTP server and not FTP server, tried using ping also but getting same error .
    May be they are referring to FTPS but not SFTP? Both are different as you may already aware.
    They should also give you the port information right?
    So i would suggest you to verify with them again..
    In addition, you can verify if they have enabled FTPS(it has to be explicit) on the default port.
    in file zilla,  go to File -> Site Manager -> while adding the site
    set the protocol -> FTP
    Encryption -> use explicit FTP over TLS

  • Quality of service in Receiver file/ftp adapter (SAP PI 7.1)?

    Hi,
        We are building an IDoc to File scenario in SAP PI 7.1, where a single incoming idoc will create three different output files. Also files must be created in target server in a specific order.
        Our first idea to ensure that files would be created following a specific order was that Message mapping (in Java) build target payload with all three files following expected sequence.
        In addition, receiver file/ftp adapter is setup with a dynamic variable to create each file with a different filename adding also timestamp.
        Testing the scenario, we see that three files are created in target server but when we sort them by creation date, it seems they don't follow always same sequence.
        Sometimes adapter creates File1, File2, File3; next time it created File2, File1, File3 and so on.
        Our problem is that files must be created always with a specific order and we cannot use BPM. Does anyone know if a receiver file/ftp adapter can be setup to create files following specific sequence (EOIO)?
        I know that sender file/ftp adapter can be setup with a quality of service, but I didn't find anything similar for Receiver file/ftp adapter.
        Suggestions will be welcome.
    Kind Regards,
    Aitor

    Hi,
         First, thanks all of you for your quick answers. They were helpful because we learnt a new configuration setting.
         We tried your suggestions but they didn't really fix our problem.
         Finally interface has been re-designed and we will not have to apply this logic, so no issue from our side.
         However, let me continue with this topic in case that somebody else will have the same issue, then it will be able to review this thread.
         When adapter created the files in the target directory (windows server), files had the expected timestamp in each filename. However, if we sorted windows directory contents by "Date Creation", files were sorted different that timestamp shows in the filename.
         For example, adapter created following files:
    File1_20090325-115117-169
    File2_20090325-115117-174
    File3_20090325-115117-180
         But when we sorted windows folder contents, files were sorted as follows:
    File2_20090325-115117-174
    File1_20090325-115117-169
    File3_20090325-115117-180
         It seems that timestamp was pre-assigned by the adapter, but when adapter created the files, it did it with a temporary name and finally assigns the filename. If a file size was bigger than other, maybe it takes more time and windows creation date is higher.
         If so, it means that adapter is not following same instructions as itu2019s indicated in "maintain order at runtime" checkbox.
         Do you know if there is any way where we can push also the order in the adapter as we did in interface determination?
    Regards,
    Aitor

  • SAP SFTP- PIB2BSFTP - multiple folders in sender

    Hello,
    We are in need of using multiple folders option in sender SAP SFTP adapter.Our existing SAP SFTP patch does not have multiple folders.To what patch or version of PIB2BSFTP we need to update to get multiple folders option? I read in SCN that SAP already released patch to get multiple folders option in sender SAP SFTP adapter
    Below are few details about out PI 7.30.
    Dual stack
    SP level 009
    We installed B2B add on to get SFTP and PGP adapters for SAP PI 7.30.
    our PIB2BSFTP version as seen in NWA is  1000.1.00.2.3  20131126032500.
    Please let me know.
    thank you,
    Sathish

    You just need to deploy the latest sca and import the new ESR content. It is still part of the security add on ( No additional licence)
    SAP NetWeaver and complementary products ->PI SFTP PGP ADDON ->PI SFTP PGP ADDON 1.0->

  • How to Schedule reports to SFTP  server?

    Hello friends,
    Can some one please give me an examples for scheduling reports to SFTP server using BOBJ SDK?
    Regards,
    Rakhy.

    Hi Rakhy,
    You cannot schedule a report to SFTP and also it is not supported by SAP.
    The same cannot be achieved thtrough CMC/BIlaunchpad and hence it is not possible to achive the same though sdks as there is no option available to schedule a report to SFTP.
    SAP BI 4.x does not provide any Build- In functionality to use the SFTP protocol with the Scheduler.
    Refer to the SAP Note below
    http://service.sap.com/sap/support/notes/1782625
    There is a workaround given at the link below is applicable to XI R2. You can probably implement that with your environment.
    http://scn.sap.com/docs/DOC-31576
    You can use BOBJ SDKs to Schedule a report to Unmanged Disk and then create a program object which will trigger its schedule as an file base event occurs  and send the report to SFTP.
    Thanks,
    Prithvi

  • Sftp server

    Guy's
    i need to access sftp server, i have got
    ip address,port,username,password,rootpath along with
    folder name,now i need to create a report to access
    this ftp path and read file which is stored in the folder,
    i don't have idea ,how to go about it,
    pls send me the function module that can help
    me ,achiving this,with example

    Hello ,
      you can find some documentation here.
    http://help.sap.com/saphelp_erp2005/helpdata/en/f1/b4a6bddf3911d18e080000e8a48612/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/d6/1b9f4099852e54e10000000a1550b0/frameset.htm
    regards,
    Kinshuk

  • SFTP Server Support

    We are using BizTalk 2013 and are planning to use the STFP adater to transfer files. Which commercial SFTP servers have been tested/proven with the BizTalk adapter?

    SFTP adapter is tested with lot of SFTP servers based on Linux ,Mac OS ,Windows (all),Solaris, IBM and it worked fine a. This was the reason Microsoft has came up with this new Adapter in BizTak 2013 . 
    Now coming to best option I would suggest to go ahead with Windows based SFTP Server  so that there is minimal chance of any mismatch .
    Thanks
    Abhishek

  • CUCM 9.1.2 embeded SFTP server

    Hello,
    It's all in the text. In CUCM 9.1.2 and later, is there a way to connect onto a sub or a publisher using an SFTP client ?
    If yes what are the priviledges necessary do do that ?
    Thanks

    I have tried that but it does not work for me.
    Or rather it seems that the server closes the connection right away.
    See below with filezilla:
    Status: Connecting to 197.198.199.200...
    Status: Connected to 197.198.199.200
    Error: Received unexpected end-of-file from SFTP server
    Error: Could not connect to server
    Status: Waiting to retry...
    Status: Connecting to 197.198.199.200...
    Response: fzSftp started
    Command: open "[email protected]" 22
    Command: Pass: **********
    Status: Connected to 197.198.199.200
    Error: Received unexpected end-of-file from SFTP server
    Error: Could not connect to server
    Status: Delaying connection for 5 seconds due to previously failed connection attempt...
    Status: Connecting to 197.198.199.200...
    Status: Connected to 197.198.199.200
    Error: Received unexpected end-of-file from SFTP server
    Error: Could not connect to server
    Status: Waiting to retry...
    Status: Connecting to 197.198.199.200...
    Response: fzSftp started
    Command: open "[email protected]" 22
    Command: Pass: **********
    Status: Connected to 197.198.199.200
    Error: Received unexpected end-of-file from SFTP server
    Error: Could not connect to server

  • Issues with creating and sending BOM XML IDOC to SAP using 2010 WCF-SAP Adapter (without using Biztalk Server)

      I'm trying to replace an existing Biztalk 2006 Send BOM IDOC process, and completely remove Biztalk server from the equation.   The existing Bizatalk 2006 server receives an input BOM (Bill of Materials) flat file, and using a Biztalk Map (BM08),
    and Orchestration, generates an Idoc and sends it to SAP.
      In my replacement C# program, I'm using the 2010 WCF-SAP Adapter, and am trying to generate the BOMMAT03 XML IDOC it to SAP.  
      I generated the BOMMAT03 schema from SAP using the Add Adapter Service in VS 2010.  I was able to generate a BM08 XSLT from the existing BMO8 map in the current Biztalk 2006 process.  I am able to run a XSLT transform on the input BOM flat
    file, and generate an XML file from that.  
      However, I've run into a few issues.   First of which, is that the XML file that is generated from the XSLT transform is NOT the same schema as the BOMMAT03 schema expects.  It's somewhat similar, but different enough that I have to manually
    translate between the two in my code.  I've verified that both the original Bitztalk 2006 process and my replacement program use BOMMAT V3 from SAP.  Question--Is Biztalk 2006 server doing some other magic to turn that transormed XML into the BOMMAT03
    schema?    
     I ended writing code which translates the transformed XML into the BOMMAT03 schema (which is a strong typed XML IDOC at this point).
      However, when I try to send the BOMMAT03 XML IDOC, I get an exception "Object reference not set to an instance of an object."
                   idocClient.Send(idocData, ref sadapterTxGuid);
    idocData is of type BOMMAT03, and I've verified that the various fields are populated.  
      Any help is appreciated. 

    Well, putting in a MSDN subscription support ticket for Biztalk server actually helped with the issue.  They didn't find, or fix the issue directly.  But one of the examples (https://randypaulo.wordpress.com/tag/idoc/) they sent over, jogged my
    memory, and I realized in the code snippet below, I had accidentally deleted the 1st line.  Such a simple mistake, yet was easy to overlook.  The URL example is almost EXACTLY like my code, but without the transform and translation code to convert
    from input XML file to IDOC XML.  If someone is interested in that, let me know.    
    //Forgot the 1st line.  
    idocClient = new IdocBOMMAT03SIEIS_WED_BOMMAT03V3R700Client(binding, endpointAddress);
     idocClient.Send(idocData, ref sadapterTxGuid);
    For anyone else interested in knowing, you CAN send a strongly typed IDOC to SAP using C#.NET and the WCF SAP 2010 Adapter, using the IDOC Binding Client class you generated using the Add Adapter Service Reference in VS2010.  
    The one difference, which no one, not even the tech support from MS could tell me, was why the XSLT which I generated from the original map, did not transform the input BOM XML into the BOMMAT03 XML.  Instead, it transformed it into an intermediate
    XML, which resembled the BOMMAT03 IDOC XML, but still needed to be translated to the BOMMAT03 IDOC format.  
    The tech support person swore up and down that it should.  But I believe that something happens in Biztalk server, after the Mapping occurs, maybe in the Pipeline, which converts that
    intermediate XML into the final BOMMAT03 IDOC XML format.
    I do think that the examples are severely lacking in showing how to send a strong typed IDOC using C# and the WCF-SAP Adapter.  Even worse, the examples are completely lacking in how to actually generate a weakly typed IDOC.  They show how to send
    that weakly typed IDOC, but show me, or give me a class to be able to generate it.
    I realize that this is not quite the "recommended way" to do it, but in reality, not everyone wants or even needs a full Biztalk installation.   For some simple stuff like this, a C#.NET program and WCF-SAP adapter do the trick.  

  • How do I enable "Host-key" for my sftp server on ISE?

    Hello,
    I am having trouble copying my ISE 1.2 upgrade files to my local repositories.
    Here is a cut and paste from my CLI on one of my ISE nodes after attemtping to copy from my workstation (running an SFTP server) to one of my ISE nodes.
    XXX-ise-01/admin# Copy sftp://<My_SFTP_Server_IP_Address>/ise-upgradebundle-1.1.x-to-1.2.0.899.i386.tar.gz. disk:/
    Username: Admin
    Password:
    % ERROR : Backup failed due to one of the following reasons
    1. host-key option is not configured
    2. host key is removed because of re-image
    3. host key is removed from some other repository having same ip/hostname
    % Please reconfigure the host-key option
    % Error: Transfer failed
    I have not configured anything with the "Host-Key" option.
    I have googled and searched but can only find limited references to the "Host-key" command within Cisco. I have tried various forms of this on the ISE node with no luck.
    I tried an FTP transfer but that did not work.
    Any ideas?

    I was wondering why the last character is capitalized. Also are you able to copy files from the disk file over to the same repository. I havent had any problems and I see in a seperate thread that the user gave other directions on how to transfer the file.
    If you can open two ssh connection and try to run the following command to tail the logs:
    "show logging system ade/ADE.log tail"
    You should get some messaging behind the error you are receiving, for example I went to look for a file that did not exist (even though I am using ftp you should get the same error).
    Here is when the transfer fails:
    2014-01-02T13:41:22.506519-06:00 ise01 ADE-SERVICE[4786]: [30325]:[info] transfe
    r: cars_xfer.c[264] [tadmani]: ftp copy in of ftp://172.16.249.1/test requested
    2014-01-02T13:41:22.522470-06:00 ise01 ADE-SERVICE[4786]: [30325]:[error] transf
    er: cars_xfer_util.c[349] [tadmani]: curl error: FTP: couldn't retrieve (RETR fa
    iled) the specified file
    2014-01-02T13:41:22.523040-06:00 ise01 ADE-SERVICE[4786]: [30325]:[error] copy:
    cm_copy.c[1144] [tadmani]: local file disk:/ transfer from url ftp://172.16.249.
    1/test failed retcode=-302
    2014-01-02T13:41:22.527148-06:00 ise01 ADEOSShell[30325]: ADEAUDIT 3017, type=CO
    PY, name=COPY IN FILE FAILED, username=tadmani, cause=Error while copying file f
    rom remote system, adminipaddress=172.16.247.12, interface=CLI, detail=Disk file
    disk:/ transfer from url ftp://172.16.249.1/test failed
    Here is when login fails:
    curl error: FTP: login denied
    Here is some logging around a successful transfer -
    2014-01-02T13:44:46.897499-06:00 ise01 ADE-SERVICE[4786]: [30766]:[info] transfe
    r: cars_xfer.c[264] [tadmani]: ftp copy in of ftp://172.16.249.1/running-config
    requested
    2014-01-02T13:44:46.934972-06:00 ise01 ADEOSShell[30766]: ADEAUDIT 2042, type=CO
    PY, name=COPY FILE, username=tadmani, cause=Copied a file, adminipaddress=172.16
    .247.12, interface=CLI, detail=Copied disk file disk:/ from url ftp://172.16.249
    .1/running-config successfully
    Thanks,
    Tarik Admani
    *Please rate helpful posts*

  • How to delete zip file in sftp server

    Hi Gurus,
    I am having one .zip file with data files inside on the sftp server. Can you please how to delete the .zip files in the sftp server. I am able to delete normal files by using 'rm' on sftp.
    And one more request my sftp is prompting for the password everytime, then i need to enter the password manually. Can any one suggest how to write in shell script to accept that.
    Thanks in advance.
    Regards
    Nagendra

    You might want to look into user equivalence and configure a certificate for ssh so it does not prompt for a password.
    It will also allow you to use sftp without a prompt for a password.
    On the server side:
    Edit /etc/ssh/sshd_config and remove the # from the following:
    RSAAuthentication yes
    PubkeyAuthentication yes
    AuthorizedKeysFile .ssh/authorized_keys
    Then restart the ssh server:
    /etc/init.d/sshd restart
    Login as the user for whom this is for:
    su - <username>
    mkdir .ssh
    chmod 700 .ssh
    On the client side:
    Run the following command:
    ssh-keygen -t rsa (omit password)
    Then use the following to copy the public key from the client to the
    corresponding login .ssh directory on the server side;
    scp .ssh/id_rsa.pub username@remote_host:.ssh/authorized_keys

  • File upload to sftp server using apex

    We have an SFTP server on Linux and we want to provide users with web-based interface (Oracle APEX has been chosen for that purpose) so they can upload their flat files to our sftp server via secure transmission. is it possible to implement on APEX? What might be possible solution? or any workarouds?
    Thanks in advance.

    Hello Kevin,
    >
    if I got it right, in such a case files have to be stored in database directory, as far as I know APEX only allows to store files in database tables. is there any way to put files to a directory without storing them in tables? For instance, I want files to be placed in some oracle directory when users choose files with FILE BROWSE item and then submit the page.
    >
    Yes APEX stores files to tables, but there is a way to store them to OS directory.
    I don't know much about the plugin SaveToDisk:
    http://apex-plugin.com/oracle-apex-plugins/process-type-plugin/savetodisk_167.html
    but i have tried a blog solution by Håvard Kristiansen and it works fine:
    http://monkeyonoracle.blogspot.in/2009/10/storing-images-outside-oracle-xe-with.html
    He has given this solution to store images outside Oracle XE i.e. to a server directory.
    I had done this way:
    1) User uploads a file through file browse.
    2) The file is stored to APEX_APPLICATION_FILES or WWV_FLOW_FILES.
    3) The file is written to the OS directory using the write_to_file procedure mentioned in the blog.
    Hope it helps!
    Regards,
    Kiran

Maybe you are looking for

  • Premiere hangs when it cant find cache files

    Hi all, My question: How do I force premiere to open my projects without searching endlessly for cache files? If this cant be done: What is the best way to create a network based central cache folder from which multiple users can draw from. (the prob

  • Disk Repairs Please Help!

    I know there are many posts about this problem, but none of them have seemed to help me out.  My Imac runs fast and fine, but when i pull up safari pages take unusually long to load and sometimes dont completely load without saying something like "23

  • Java JTextField entry broken on 1.8.0_40 OS X Yosemite 10.10.2

    After upgrading to java 1.8.0_40 from java 1.8.0_31 jtextfields are no longer accepting any input. Environment OS X 10.2.2 java 1.8.0_40 (the current build). iMac 4 GHz Intel Core i7. I'm using webstart to launch the apps. To test I created a very si

  • Error in Account posting

    Hi Gurus, We have created billing for normal sales process while posting the document to accounting we are getting the below error. "Doc. type D1 and category A only allow following characters " ABCEM" Can you tell me the what is the cause for this e

  • I can't use "Find My Mac"

    I can't use "Find my Mac", because need a "Recovery Partition" How can i repair that? And i find a Files with tha old versions of iLife (iMovie & iWork), can i erase the files? No puedo utilisar "Find my Mac", porque necesita una "Particion de Recupe