1

Closed

AnonymizeCSV empty last field

description

Hi Frank,

The last few weeks we worked a lot with the anonymization software. It works great, but we found what we think to be a bug when using the CSV functionality.

When anonymizing a CSV with the last field in a row empty, the anonymizer "forgets" about the field, leaving a row with 34 fields with only 33 in the created *_anonymous.xml-file. The tool doesn't give an error, but when processing the created file, the software (understandably) fails in the first field of the second row :).

We worked around bij regexing the last field back in, giving the empty rows it's last field back.

Maybe this is something to further investigate?

Groeten!
Rolf

file attachments

Closed Dec 9, 2015 at 6:59 PM by FrankvdnThillart

comments

FrankvdnThillart wrote Jul 9, 2015 at 1:10 PM

Agreed, this is a bug. It will be incorporated in release 1.0

FrankvdnThillart wrote Jul 28, 2015 at 10:42 AM

I've been able to reproduce this issue with the following call to anonymizeCSV.exe:
anonymizecsv.exe upsidedownquestionmark2.csv seperator="¿" headerrow=N

FrankvdnThillart wrote Jul 28, 2015 at 10:54 AM

It's only an issue when there's no text seperator

FrankvdnThillart wrote Jul 28, 2015 at 11:12 AM

Ok. Problem has been solved. I attached a 7z file with the new AnonymizeCSV.exe and included the patched source file with it.