cancel
Showing results for 
Search instead for 
Did you mean: 

com.sap.aii.adapter.file.ftp.FTPEx: 502 Command not supported

vijayabaskaranj
Explorer
0 Kudos

What would be root cause of the following error ?

We are sending XML file to FTP server ?

"An error occurred while connecting to the FTP server '150.105.62.15:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 502 Command not supported.'. For details, contact your FTP server vendor."

Thanks

VJ

Accepted Solutions (1)

Accepted Solutions (1)

dharamveer_gaur2
Active Contributor
0 Kudos

Hi

This Type of Error occurrs due to many reasons such as

1 if your XML message format is not correct, so check your generate XML payload in SXMB_MONI

2 Make sure that the FTP sever does not have issues with Firewall or a Proxy server access

3 Also verify that the specified FTP user ID has the necessary WRITE or overwrite authorization

vijayabaskaranj
Explorer
0 Kudos

Thank you all for your quick response.

Here is some more info on the problem.

PI gets a file from our side FTP server and PUT the file in the 3rd Party FTP server.

PI is successfully getting the file. PI receives error(com.sap.aii.adapter.file.ftp.FTPEx: 502 Command not supported) when Putting the file in the 3rd Party server. Pl see the audit log below

does the file need to have 777 permission on the getting side or putting side or both ? Our FTP server and files are Windows based.

I changed the scenario to get and put the file at the same location (our location). it works fine.

thanks

VJ

Audit Log for Message: aaa84923-55e4-45bd-11d0-da7c956cd971

Time Stamp Status Description

2008-11-24 11:10:47 Success The message was successfully retrieved from the receive queue.

2008-11-24 11:10:48 Success Write to FTP server "150.105.62.15", directory "\tovan", -> file "LeprinoFoods20081124-111048-365.xml"

2008-11-24 11:10:48 Success Transfer: "BIN" mode, size 988 bytes, character encoding -

2008-11-24 11:10:51 Error Attempt to process file failed with com.sap.aii.adapter.file.ftp.FTPEx: 502 Command not supported.

2008-11-24 11:10:51 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Command not supported.: com.sap.aii.adapter.file.ftp.FTPEx: 502 Command not supported.

2008-11-24 11:10:51 Error Exception caught by adapter framework: Command not supported.

2008-11-24 11:10:51 Error Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Command not supported.: com.sap.aii.adapter.file.ftp.FTPEx: 502 Command not supported..

2008-11-24 11:10:51 Error The message status set to NDLV.

agasthuri_doss
Active Contributor
0 Kudos

VJ,

The FTP user ID you used in the Receiver File Adapter need to have the access to Write the File in the 3rd Party FTP.

Cheers

Agasthuri Doss

Former Member
0 Kudos

HI Vijay

The User used in configuring FTP receiver adapter need to have Read, Write and modify permissions on the 3rd party FTP server.

Thanks

Gaurav

Answers (3)

Answers (3)

vijayabaskaranj
Explorer
0 Kudos

All,

Thanks for your response. We have finally resolved the problem . Here is the root cuase.

We were trying to put the file in a wrong directory. Once that was changed, the file was put in the destination directory but the Communication channel monitoring still returns the same 502 error.

After a lots of research,We found that it was to due to a set up in the communication channel. We set the processing parameters PUT FILE to "Use Temporary File". When we changed it to "DIRECTORY",It started to work fine.

Thanks for all you help

VJ

SudhirT
Active Contributor
0 Kudos

Hi,

as said above, plz check for the file permission or it will be better to keep all the files in a directory with 777 permission.

thanks

Former Member
0 Kudos

HI Vijaya

This is a file permission issue. Check if the file has 777 as permission to be processed through PI. Even PI user has permission to read file from the directory.

Thanks

Gaurav