File LookUp in the MM : FileNotFound Exception
I am trying to fetch a file during the message mapping. The code I have written in the UDF is as follows :
String company = "";
HashMap fileMap = new HashMap();
BufferedReader reader = new BufferedReader(new FileReader("C:
String line = "";
while((line = reader.readLine())!=null)
String lineArray = line.split(",");
company = (String) fileMap.get(a);
return company; </u>
But I am getting the FileNotFound Exception when I tried to run the interface mapping.
I have confirmed that file is there in the respective folder.
1. Can we use the above code to fetch the file ?
2. Do we need to put the file in the XI server ?
Thanks for your time.