search cancel

java.nio.charset.MalformedInputException Error while masking the file with Special characters '£' in FDM


Article ID: 215030


Updated On:


CA Test Data Manager (Data Finder / Grid Tools)


Working on data masking of files which has special characters. Masking is being failed specifically for character  '£. java.nio.charset.MalformedInputException: Input length = 1
 at$1.hasNext(Unknown Source)
 at java.util.Iterator.forEachRemaining(Unknown Source)
 at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source)
 at Source)
 at Source)
 at$ReduceOp.evaluateSequential(Unknown Source)
 at Source)
 at Source)
 at Source)
 at Source)
 at com.grid_tools.products.datamasker.Datamasker.getNumberOfLines(
 at com.grid_tools.products.datamasker.Datamasker.doFileMasking(
 at com.grid_tools.products.datamasker.Datamasker.main(
Caused by: java.nio.charset.MalformedInputException: Input length = 1



Release : 4.9

Component : CA Test Data Manager - Others


This error may be caused due to incorrect file encoding. For example the file encoding could be ANSI.


We found that the issue was with the file encoding being "ANSI".

To check. open the source file in a text editor like Notepad++ and check the encoding menu.

If it is anything other than UTF-8, then convert the source file to UTF-8 encoding and save.

Using this converted file, masking would be successful.