Skip to Content
0
Former Member
May 14, 2008 at 02:16 PM

Error-Receiver File Adapter using Variable substitution when file is empty

33 Views

XI Experts,

We are on PI 7.0, SP14.

We are using variable subtitution to get the filename from source message. This works fine as long as we have data in the payload for filename element. But we have a scenario where we don't have to create file when certain condition does not exists in source message so in the message payload filename element will not exists in such condition and file will be empty and we should not create file.

Parameter in the communication channel for Handling empty message is "Ignore".

Does anyone knows how to handle this scneario. We don't want to default any file name in the message mapping if source file name element does not exists.

We are following getting error in the Adapter engine.

MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: file: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: file

Thanks

MP