cancel
Showing results for 
Search instead for 
Did you mean: 

used variable substitution to substiture the field 'date' in file name

Former Member
0 Kudos

Hi gurus

I have used variable substitution to substiture the field 'date' (dd/MM/yyyy/hh/mm/ss) in the file name so when empty payload (a valid xml ) is generated by Message mapping then the communication channel is failing by showing the following error

File processing failed with 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

: date

As of now the business is not getting effected as the business scenarion needs only customer master data at the reciever side But when ever there is no custmer master data in the sourse side the message mapping is generating an empty payload and the communication channel is failing ( so it is an internal issue and is there any way which could solve the both (ie the business must not get effected and as well the communication channel must not fail)

any coments on this will be higly apreciated

thanks and regards

sandeep

Accepted Solutions (0)

Answers (2)

Answers (2)

Jitendra_Jeswan
Contributor
0 Kudos

Hi Sandeep -

Yes If you use the Variable substitution from the payload , that perticular field has to be generated in the target structure.

To handle this You can do the following:

Sourcefield --->exists -> IfThenElse-->TargetField

Where SourceField>exists(node function)-> If

SourceField -


>Then

CurrentDate(Date Function)----->Else

Hope this will help !!

Regards.

Jeet.

Former Member
0 Kudos

Hi,

You could use Do Not Process Empty Payload parameter in File adapter.

Empty-Message Handling --> Ignore.

And another thing the error DynamicConfigurationException: caused due to

the date field only. You should pass atleast default value as its one of the mandatory field.

If in case the date filed is blank then pass it as 00/00/0000/00/00/00 instead of blank.

Thanks

Swarup