cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hello Peter,

We face the same problem which update have you deployed?

Thanks

Best Regards

Bernhard

Former Member
0 Kudos

We got the package from

         http://service.sap.com/swdc

               --> Support Packages and Patches

                    --> Browse our Download Catalog

                         --> SAP NetWeaver and complementary products

                              --> PI SFTP PGP ADDON

                                   --> PI SFTP PGP ADDON 1.0

                                   --> Comprised Software Component Versions

                                   --> SFTP ADAPTER 1.0

                                   --> #OS independent

                                   --> PIB2BSFTP01_6-20009365.SCA dating from May 16th, 2013

Then you can add the following advanced parameters:

ignore.error.cd - true

ignore.error.ls - true

Best regards

Peter

Former Member
0 Kudos

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

Former Member
0 Kudos

hello Peter,

have you found any solution for this. We have the same problem.

regards,

Stein

Former Member
0 Kudos

No, but we have a ticket open with SAP. They have already confirmed that it might be an incompatibility between the SAP SFTP adapter implementation and WS-FTPs server.

Best regards,

Peter

baskar_gopalakrishnan2
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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