[
https://issues.apache.org/jira/browse/NIFI-11077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17781478#comment-17781478
]
Daniel Stieglitz commented on NIFI-11077:
-----------------------------------------
This ticket was created based on the conversation had
[here|https://lists.apache.org/[email protected]:2023-1]
> Provide a record number in a error log message when a RecordReader fails
> ------------------------------------------------------------------------
>
> Key: NIFI-11077
> URL: https://issues.apache.org/jira/browse/NIFI-11077
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Daniel Stieglitz
> Priority: Major
>
> When a RecordReader fails for whatever reason, it would be helpful to include
> in the error log message, a record number to help easily identify which
> record failed.
> My particular use case was when using QueryRecord and ValidateRecord with
> CSVReader on a file which was mostly comma delimited except for one line
> which was pipe delimited. The error message logged did not include the line
> number where the parsing failed. There was an IlegalArgumentException thrown
> with the message
> {code:java}
> Index for header 'id' is 1 but CSVRecord only has 1 values!
> {code}
> This made it very difficult to identify which record in the CSV file was
> causing the CSVReader to fail.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)