Github user JPercivall commented on a diff in the pull request: https://github.com/apache/nifi/pull/476#discussion_r71247145 --- Diff: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ValidateCsv.java --- @@ -408,9 +407,12 @@ public void process(final InputStream in) throws IOException { listReader.read(); } while(listReader.read(cellProcs) != null) {} - } catch (final IOException | SuperCsvCellProcessorException e) { + } catch (final IOException e) { valid.set(false); logger.error("Failed to validate {} against schema due to {}", new Object[]{flowFile}, e); + } catch (final SuperCsvCellProcessorException e) { + valid.set(false); + logger.info("Failed to validate {} against schema due to {}; routing to 'invalid'", new Object[]{flowFile}, e); --- End diff -- Actually some form of this should be made into an attribute to be added to invalid FlowFiles. That way users can know what is actually invalid.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---