I am reading a CSV file from a remote location(ftp) and file has an invalid number of columns.
Steam is not progressing when such rows encountered in the file. I need to skip them with an error message and proceed.
Here is what I have tried, Supervision strategy is not working.
source.via(CsvParsing.lineScanner() .withAttributes(ActorAttributes.supervisionStrategy(throwable -> Supervision.resume())))
I need to skip invalid row with an error message and proceed.
Sample Data: My Csv has 5 fields in each row.
1281,Export - Product Search Tags,0,Id,20
1282,Export - Product Search Tags,1,Id,10
1283,Export - Product Search Tags,2,Value,100
If I remove the last field in the 2nd row (i.e. 10). Then the stream will fail, it won't read the next line.