# Probelm while redaing data file

**URL:** <https://forum.cloverdx.com/t/probelm-while-redaing-data-file/396>\
**Category:** CloverDX Platform\
**Created:** [September 27, 2008, 12:00am UTC](https://forum.cloverdx.com/t/probelm-while-redaing-data-file/396 "2008-09-27T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mishrahanuyahoocoin](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mishrahanuyahoocoin](https://forum.cloverdx.com/u/mishrahanuyahoocoin)\
**Post date:** [September 27, 2008, 12:00am UTC](https://forum.cloverdx.com/t/probelm-while-redaing-data-file/396/1 "2008-09-27T00:00:00Z")

</div>

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](https://deLimitedReader.addLogPort)(OutputPort.class);

Here [//deLimitedReader.addLogPort](https://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

---

<div class="post-metadata">

**Author:** ![avackova](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@avackova](https://forum.cloverdx.com/u/avackova)\
**Post date:** [December 17, 2009, 9:51am UTC](https://forum.cloverdx.com/t/probelm-while-redaing-data-file/396/2 "2009-12-17T09:51:06Z")

</div>

Hello,  
Delimited Data Reader doesn’t have log port. Use [Universal Data Reader](http://wiki.clovergui.net/doku.php?id=components:readers#datareader), that can send invalid data to port 1.  
It doesn’t exist universal parser, that could parse any delimited data. For such special data you have to write your own parser.
