I am parsing a CSV file using Apache commons CSV using the following code:
CSVFormat csvFileFormat = CSVFormat.EXCEL.withHeader().withQuoteMode(QuoteMode.MINIMAL);
On some of the CSV files I am getting the following error:
java.lang.IllegalArgumentException:
Mapping for Phone number not found,
expected one of [Address, City, State, Zip, Phone Number, Product, Comments/Description, Final Status, Date Closed]
I checked the file, it contains a"Phone Number" column, column exist and all the values present.
what am I doing wrong?