[ 
https://issues.apache.org/jira/browse/NIFI-11077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17781478#comment-17781478
 ] 

Daniel Stieglitz edited comment on NIFI-11077 at 10/31/23 5:40 PM:
-------------------------------------------------------------------

This ticket was created based on the conversation had 
[here|https://lists.apache.org/thread/2rpdpslxcc40dmc5po9p3w77h1o89ksg]


was (Author: JIRAUSER294662):
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)

Reply via email to