Hi ,
i want to log all the bad data in a file…so how to implement log port…please suugest me…
my code is this…
DelimitedDataReader deLimitedReader= new DelimitedDataReader(“DataParser”,
feedController.inputFileName);
deLimitedReader.setSkipFirstLine(true);
deLimitedReader.setPolicyType(“Controlled”);
//deLimitedReader.addLogPort(OutputPort.class);
Here //deLimitedReader.addLogPort(OutputPort.class); u is not working…
Second thing is that…How to handle , (comma) coming in double quotes in the dat i.e
1234,“It is “universial, truth””,“xyz”,“hello”
but when i read this line my this line is considered as bad data because of bad data format…so please help me that how can i make it correct, if i use this data it is disturbed because of comma (,) coming in the data…
It is “universial, truth”.
Thanks,
Hanuman