Skip to Content
author's profile photo Former Member
Former Member

Strange error with new SAP SFTP adapter "Exception received: 4: cd to ... failed"

Dear all,

we are currently migrating an interface for file transfer from another product to the local PI 7.11 system.

For this we have to rely on the new SAP SFTP adapter and the PGP module.

Now as we're in the testing stage of the interface configuration we experience a strange error which is not documented in the official documentation.

Connection is configured as sender sftp channel by using an http proxy (which is offically supported and works fine when using the SFTP adapter in a receiver channel configuration with the same hostname/IP address and host ssh key and user credentials).

Server key is correct as we can establish a connection by itself, but immediately afterwards we get the following error:

"Exception received: 4: cd to /Accounting/ failed".

Source directory is configured as "/Accounting" as this is shown in WinSCP as the complete path after logging in with the same credentials and the same proxy settings as the remote path.

We even tried some different settings like "~/Accounting/", "Accounting/" and "\Accounting", but to no avail.

As it is working correctly in WinSCP we don't think that the error is with the SFTP server as we don't have problems with other systems connecting to the SFTP server via the local http proxy.

Does anyone know what the error message means, despite the fact that the system cannot change to the specified directory?

Any idea for what we could look for in our configuration?

Writing to the specified directory is possible via the SFTP adapter in a receiver channel configuration btw., so we are a bit lost at the moment.

Best regards,

Peter Hermanns

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Nov 14, 2012 at 02:02 PM

    Just a thought. If it is unix it should be /Accounting only... Plus when you navigate to the path please check where your are currently located first... otherwise go to root directory and navigate to the Accounting directory path and use that path as change directory command.

    Note: Also check whether you have user priviledge to access that directory .

    Hope that helps.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      As i said... the configured source directory is "/Accounting" (without the quotation marks of course).

      Access rights for the configured user are correct as far as i can tell, as we don't have any problems accessing the directory by using WinSCP and the exact same user.

      When changing to /Accounting in WinSCP the path is shown above the directory/file-window, it's just showing "/" after login and "/Accounting" after changing the directory. That's why we configured /Accounting in the adapter configuration. With a receiver channel and using SFTP we can write into /Accouting, we just get the error when using the SFTP adapter as sender channel and /Accounting as source directory.

      Best regards,

      Peter

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2012 at 03:22 PM

    Have done a bit testing with sftp on the command line.

    SFTP adapter still shows the error as described and this is what's showing on the command line:

    I've masked sensitive data, but the important parts are still visible. The channel is configured like this:

    Best regards,

    Peter


    terminal_sftp.png (187.4 kB)
    IB_config.png (8.6 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2013 at 07:47 AM

    Just to let you know...

    There is an update to the SFTP adapter which solves our problems with older releases of the WS-FTPs server by adding some advanced adapter options.

    Best regards,

    Peter

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 03, 2013 at 02:50 PM

    Hi Peter,

    I have experienced same error in the past. Issue was with incorrect naming of file.

    Try providing exact name of file and it will work.

    Note: *.* will not work for SFTP Adapter, instead use regular expression format

    Thanks

    Rakesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Rakesh,

      as you can see in my screenshot we use java regular expressions as expected and documented for the adapter. SAP support was able to verify it was a problem with the server version of WS-FTPs and not with the configuration of filename and/or path.

      Best regards,

      Peter

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.