Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

While bulk editing the csv file is processed by mod-data-export-worker with spring batch. Spring batch provides exception IncorrectTokenCountException if line of the file has comma as separator. The reason is usage DelimitedLineTokenizer , it tries to convert line to object using comma as object fields separator. To Ways to resolve the issue it is possible toissues with parsing csv files:

  1. Update documentation with certain rules for the file with identifier to process it correctly. So the users will be notify about expectations for the initial file with identifiers.

  2. Process initial csv file with identifiers before retrieving records by identifiers. Identify the separator for the identifiers - is it comma or new line. Create a new file with with new line as separator for identifiers if previously identifiers were spitted by comma, process it with mod-data-export-worker to get records.

...