Symptoms:

  • Target directory for the FTP communication channel is root (“/”)

  • File transfer ends up with the message “Access is denied

12.07.2010 14:37:17    Success    Connecting to FTP server “1??.1??.1?.9?”
12.07.2010 14:37:17    Success    Write to FTP server “1??.1??.1?.9?”, directory “/”, -> file “???????_??????_20100707.csv”
12.07.2010 14:37:17    Success    Transfer: “BIN” mode, size 16670137 bytes, character encoding –
12.07.2010 14:37:17    Error    Attempt to process file failed with com.sap.aii.adapter.file.ftp.FTPEx: 550 XI_ftp_b37a5eed-7298-4405-1bcd-9cdf36fccb9e.tmp: Access is denied.
12.07.2010 14:37:17    Error    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: XI_ftp_b37a5eed-7298-4405-1bcd-9cdf36fccb9e.tmp: Access is denied. : com.sap.aii.adapter.file.ftp.FTPEx: 550 XI_ftp_b37a5eed-7298-4405-1bcd-9cdf36fccb9e.tmp: Access is denied.
12.07.2010 14:37:17    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: XI_ftp_b37a5eed-7298-4405-1bcd-9cdf36fccb9e.tmp: Access is denied. : com.sap.aii.adapter.file.ftp.FTPEx: 550 XI_ftp_b37a5eed-7298-4405-1bcd-9cdf36fccb9e.tmp: Access is denied..
12.07.2010 14:37:17    Error    Exception caught by adapter framework: XI_ftp_b37a5eed-7298-4405-1bcd-9cdf36fccb9e.tmp: Access is denied.

Reason:

Error causes some authorization settings on the FTP server (exactly change working directory command):

03:35:56 131.177.83.170 [364]USER ????\???_??????????? 331 0

03:35:56 131.177.83.170 [364]PASS – 230 0

03:35:56 131.177.83.170 [364]CWD / 250 0

03:35:56 131.177.83.170 [364]created XI_ftp_d1e2e39e-a38f-4a81-0f3b-a307552a6a1f.tmp 550 5

03:35:56 131.177.83.170 [364]QUIT – 550 0

Solution:

In the XI FTP communication channel is not possible to left “Target Directory” field empty. Command CWD will be called and it is not possible to skip it. Instead of the root directory symbol “/” it is possible to put current directory symbol “.” to the “Target Directory” field. In such way file will be uploaded / downloaded from the default directory and there is no call to the root directory of FTP server. Command “CWD .” doesn’t raise an error.

12.07.2010 14:37:17 Error