[jira] [Assigned] (NIFI-11077) Provide a record number in a error log message when a RecordReader fails

2024-02-14 Thread Anna Nys (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-11077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anna Nys reassigned NIFI-11077:
---

Assignee: (was: Anna Nys)

> 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)


[jira] [Assigned] (NIFI-11077) Provide a record number in a error log message when a RecordReader fails

2023-11-29 Thread Anna Nys (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-11077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anna Nys reassigned NIFI-11077:
---

Assignee: Anna Nys

> 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
>Assignee: Anna Nys
>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)