WE are getting mapping error due to the field bukars mapped with userdefind function to bukars field
error i got in queue process at mapping of the userdefind funtion we used as setfilename.
Runtime Exception when executing application mapping
program com/sap/xi/tf/_MI_Treasury_Deals_OB_To_FTR_COUNTERCONFIRM
_FTR_COUNTERCONFIRM01_; Details: com.sap.aii.mappingtool.tf7.
MessageMappingException; Runtime exception when processing
target-field mapping /FTR_COUNTERCONFIRM01/IDOC/E1FTR_COUNTERCONFIRM/TRANSACTION;
root message: Exception:[java.lang.StringIndexOutOfBoundsException:
String index out of range: -1] in class
public String setFileName(String variablePart, Container container) throws
{
StreamTransformationException{
String filename = new String("");
DynamicConfiguration conf1 = (DynamicConfiguration)
container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
filename = "SAGE_" + variablePart + ".txt";
conf1.put(key1,filename);
return variablePart;
The scenario is having sender as proxy and the receiver as file and the sender side when the empty file is coming the mapping got failed here due to empty payload . i know it to be fixed either in mapping or proxy of writing code for ignoreing empty files . pls let me know any idea.
can Please guide me this how to resolve the mapping error.