cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You can implement this by writing the module to throw an exception or whatever method you want to execute.

If you don't want to receive an error message then module is suitable for you.

Gaurav Jain