Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic configuration for Filepath using Javamapping for Passthrough

Hello Experts,

I am trying to create a dynamic filepath through java mapping .
I am using a FTP receiver adapter .

I have written the follwoing java code

private static final DynamicConfigurationKey KEY_FILEPATH =

   private static final DynamicConfigurationKey KEY_FILENAME =

String FileName = conf.get(KEY_FILENAME);

String dir = "XXXX"+"/"+FileName.substring(2,5)+"/"+"/XXX/"+"/";

conf.put(KEY_FILEPATH, dir);

FTP receiver adapter will have the connection details.

I am getting the below error :

"FTPEx: 550 Unexpected reply codeCreate directory operation failed.. For details, contact your FTP server vendor".

However, I find there is no issue connecting to FTP server, when I tried connecting without dynamic configuration, it works good.

thanks for your inputs and help

Former Member


Using FTP receiver channel we can not create hierarchy of folders at run-time. We can create only one level deep hierarchy dynamically. This is FTP limitation. Solution: - Use one level deep dynamic hierarchy.

FYI. When you restart failed message multiple times, it will be successfully. It will create one level deep hierarchy for each restart. We can create dynamic deep hierarchy folders on NFS (not on FTP).

2 View this answer in context
Not what you were looking for? View more on this topic or Ask a question