cancel
Showing results for 
Search instead for 
Did you mean: 

com.sap.aii.adapter.file.ftp.FTPEx: 520 Unexpected reply codeControl connection prematurely closed by server

Former Member
0 Kudos

Hi Team,

I am having a simple file to file scenario where I am fetching a file from FTP server and putting it on a local file system. We are able to retrieve the file from the FTP server. But the sender file adapter continuously gives the above error when there is no file available at the FTP server.

The file if available is picked up properly but in case of no file the sender file adapter goes into this error.

Is this something which we can handle at PI end?

Thanks

Husain

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Guys,

Has anyone faced this issue ?

Former Member
0 Kudos

Also the vendor is sending a return code when there is no new file available.

Is there a way to handle this return code at the file adapter level?

former_member186851
Active Contributor
0 Kudos

Hello Husain,

Check this note-801926 and see if any additional parameter can  help you out.

Former Member
0 Kudos

HI Raghuraman,

I checked the above note but could not find a suitable parameter for my issue.

former_member186851
Active Contributor
0 Kudos

Hello Husain,

I dont think there is a standard way of doing it in SAP PI.

Your vendor should stop sending the return code.

Former Member
0 Kudos

Hi Raghu,

The vendor is saying the return code is part of the standard FTP solution and they cannot stop the sending it.

Is there any other way possibly we can handle this?

former_member186851
Active Contributor
0 Kudos

Hello Hussain,

If you good in Java a custom module bean could help you.

former_member182412
Active Contributor
0 Kudos

Change the connection type from permanent to per file transfer in the sender file adapter configuration 

Former Member
0 Kudos

HI Praveen,

The connection type is per file transfer in the sender file adapter.