You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Anna Nys (Jira)" <ji...@apache.org> on 2024/02/14 14:28:00 UTC
[jira] [Assigned] (NIFI-11077) Provide a record number in a error log message when a RecordReader fails
[ 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)