Below is my source structure:
If using variable substitution for the filed FILE NAME which is in the source structure.
This is the declaration I used in channel:
But i am getting this error in channel monitoring
DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: var
Can anyone help me here