Skip to Content

Filename not built with variables substituted in SFTP receiver adpater

Nov 24, 2016 at 06:58 AM


avatar image
Former Member

Hi All,

I have configured a Receiver sFTP adapter with variable substitution enabled. Variables are getting substituted from the payload which is being observed from the log, but at the successive message logs, the file name is not getting built with the substituted values rather the file name contains the variable name only () while being sent to the sFTP destination.

As you can see, the values are getting substituted for variables %mestyp% and %rcvprn% in first two lines of the log, but the file name is actually not getting substituted. This results in getting the filename written with the variable by itself in the destination sFTP location.

I'm unable to figure out the problem as the same scenario works well and good with the same variable names and the values to be substituted while using those in File adapter.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Evgeniy Kolmakov Nov 24, 2016 at 07:55 AM

Hi Aananda!

Just remove the trailing spaces after variable names in your Variable Substitution settings :-).

Regards, Evgeniy.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thanks Evgeniy!

That worked. Was a copy paste issue.