Skip to Content

Dynamic Naming does not work

Dear All,

I have a scenario where i have to change the file name. Scenario is NFS to sFTP via Java Mapping, but it is not working. not sure what am I doing wrong here..

I am working on 7.5 PO.

please help me..

Thanks and Regards,
Rohit Verma

public void transform(TransformationInput arg0, TransformationOutput arg1) throws StreamTransformationException {

try {

DynamicConfiguration conf = (DynamicConfiguration)param.get("DynamicConfiguration");

KEY_FILENAME = DynamicConfigurationKey.create("", "FileName"); KEY_NEWFILENAME = DynamicConfigurationKey.create("", "FileName");

String valueOld = conf.get(KEY_FILENAME), s;

trace.addInfo("File name :" + valueOld);

DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyMMdd-HHmm");

s= valueOld+dtf.toString()+".PMT"; trace.addInfo(s);

conf.put(KEY_NEWFILENAME, s); byte[] b = new byte[arg0.getInputPayload().getInputStream().available()];




catch (Exception e) { e.printStackTrace(); }

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Jul 19, 2018 at 09:12 AM


    Check the SFTP documentation, it is possible it is using a different technical name for FileName.



    Add comment
    10|10000 characters needed characters exceeded

  • Jul 19, 2018 at 10:19 AM


    Can you check by passing same filename from Dynamic configuration to SFTP, I guess in the initial sftp addon there is no functionality for Dynamic filename so we have used variable substitution to meet this.



    Add comment
    10|10000 characters needed characters exceeded