[
https://issues.apache.org/jira/browse/NIFI-5264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16503001#comment-16503001
]
Pierre Villard commented on NIFI-5264:
--------------------------------------
[~mnr] - not sure we can really add attributes as you suggest. Even with
line-by-line validation, all the invalid lines will go into the same flow file
and each line of the "invalid" flow file could have a different validation
error.
What we could do is to add a "validation.error.message" attribute to the
invalid flow file with the first error message raised during the validation.
Not sure that would be super useful though but that's the best we can do I
think.
Thoughts?
> Add parsing failure message in ValidateCSV
> -------------------------------------------
>
> Key: NIFI-5264
> URL: https://issues.apache.org/jira/browse/NIFI-5264
> Project: Apache NiFi
> Issue Type: Improvement
> Affects Versions: 1.6.0
> Reporter: bsf
> Assignee: Pierre Villard
> Priority: Major
>
> As a developer I would like to see an improvement on the ValidateCSV
> component when using the line by line validation strategy. It will be nice to
> have an option to append into the flowfile on the invalid relationship 1 or 2
> new fields:
> * field_name : the name of the field failed in the schema validation
> * field_description : the description of the validation error
> This will help a lot the user to understand the validation issue on each line.
> If too complex, anything that provides information on the fail validation of
> the line against the schema will be more than welcome :)
> Pentaho DI do something like this by enabling error handling.
> Thanks a lot!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)