Written by

Question Ting Wang · Oct 2, 2019

SFTP ERROR #7511: SFTP Error '4': SFTP Error [80102004]: Operation Failed [80102004]

Hi all,

We are delivering files to SFTP server using EnsLib.FTP.PassthroughOperation class and EnsLib.FTP.OutboundAdapter. But we are facing error below:

ERROR <Ens>ErrFTPPutFailed: FTP: Failed to Put file '' (msg='Error in SFTP Put('/cachesys/mgr/Temp/HC4IZVmI6w9gEw.sftp','/directory1/directory2/directory3/') ERROR #7511: SFTP Error '4': SFTP Error [80102004]: Operation Failed [80102004] at SFTP.cpp:750,0',code=0).

The SFTP settings is as follows:

Basic settings:

External Registry ID

FTP Server
FTP Port
Credentials

File Path File Name

 

 SFTP Settings

SFTP Append Mode
SFTP Public Key File SFTP Private Key File SFTP File Access Mode

 Connection Settings

SSL Configuration

UsePASV

 

Stay Connected Connect Timeout

 

Please advise. Thanks so much

Comments

Michel Bruyère · Oct 3, 2019

Maybe a "stupid" answer

But 

You need perhaps to specify "/directorya/directoryb" without the slash.

I have checked where I am working with have around 10 ftp connections and all specifications without the slash.

0
Ting Wang  Oct 8, 2019 to Michel Bruyère

Thanks Michel,

The reason is that the directory permission is not setup correctly. Will close the post.

0
Zach McKinney · Mar 21, 2024

I know this is old and doesn't quite apply to your situation, but you can also get this error if you use the File Name setting: %f. I ran into an issue where the DTL 'copy' function wasn't working so the Ens.StreamContainer's OriginalFilename property wasn't copied and it would give this error because the File Name was blank/null.

0