cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sender Channel SFTP - Exception received: java.lang.StringIndexOutOfBoundsException: String index out of range: -1

Former Member
0 Likes
2,648

Hi, Experts

We have an issue in our SFTP to RFC scenario. The sender communication channel is showing an error when the option "Arquiving on SFTP Server" is selected (Exception received: java.lang.StringIndexOutOfBoundsException: String index out of range: -1). Below the print of configuration and the log error. We have checked the connection and it is ok, the user has full access to the directory and the file content was tested. We try to send an empty file as well but the same error occour.

Is there a module problem? Do someone have passed by the same problem?

P.S. If the option "Archive Files on SFTP Server" is unchecked the file is processed with success. 

Error log:

Thanks,

Halsen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi All,

We've decided to open an Incident on SAP Service.

They answer was to install the sap note below.

2049494 - Renaming archived files with proper nomenclature in SFTP adapter


The basis team will deploy it.


Thanks all for the support.


Regards,

Halsen



Answers (3)

Answers (3)

Former Member
0 Likes

We verified that is not necessary a extension in the file but just a "." (dot) in any place of

the file name the channel process the file with success.

We are using the mask .*._cb_.*.

Former Member
0 Likes

Hi Halsen,

Please check the file naming convention also. The file extension is missing in the file name. You cannot create a file without an extension. Change it and then try. It will work.

Regards,

-Partha

Former Member
0 Likes

Hi Partha,

We tryed changing the extension file name as .txt and it worked.

But why the file is processed even without the file extension when the arquive flag is unchecked?

Theoretically, it wans't to work as well...

Do you think there are other solution because we can't change the extension file.

Regards,

Halsen

Former Member
0 Likes

Hi Halsen,

Please check the "path" (location) that you have provided to archieve. It seems that either the path is incorrect or the user needs authorization to write a file there.

Regards,

-Partha

Former Member
0 Likes

Hi Partha,

The "path"  location on "Arquive Name" for arquiving files is correct. We have checked and the user has full access to the directory.

We try to use de same directory as Source and Arquive. If the Arquive flag is unchecked the file is processed succefully.

Below you can see the source path:

Regards,

Halsen

Former Member
0 Likes

Is it an empty file that you are trying to process?

>>>We try to use de same directory as Source and Arquive. If the Arquive flag is unchecked the file is processed succefully.


May be that could be the issue. Try configuring some other directory as archive folder on the SFTP server.

Former Member
0 Likes

Hi Hareesh,

We already try to use a different directory in the arquive folder but the same error occour.

Thanks,

Halsen