[ https://issues.apache.org/jira/browse/NIFI-5382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16537461#comment-16537461 ]
ASF GitHub Bot commented on NIFI-5382: -------------------------------------- Github user patricker commented on a diff in the pull request: https://github.com/apache/nifi/pull/2853#discussion_r201124899 --- Diff: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestConvertRecord.java --- @@ -62,6 +62,44 @@ public void testSuccessfulConversion() throws InitializationException { out.assertContentEquals("header\nJohn Doe,48\nJane Doe,47\nJimmy Doe,14\n"); } + @Test + public void testDropEmpty() throws InitializationException { --- End diff -- This is probably possible with the write record reader configuration. I tried building a test using Json Row Record Reader, but even if none of the elements in your schema match the schema of the source record it just outputs a NULL for you... ```Successfully converted 2 records for FlowFile[0,627269493239800.mockFlowFile,119B] valuated JSONPath Expression com.jayway.jsonpath.JsonPath@5b8d184c but the path was not found; will use a null value Evaluated JSONPath Expression com.jayway.jsonpath.JsonPath@5b8d184c but the path was not found; will use a null value Successfully converted 2 records for FlowFile[1,627271185518617.mockFlowFile,23B]``` > ConvertRecord 1.7.0 - Creates emtpy Flow File > --------------------------------------------- > > Key: NIFI-5382 > URL: https://issues.apache.org/jira/browse/NIFI-5382 > Project: Apache NiFi > Issue Type: New Feature > Components: Extensions > Affects Versions: 1.7.0 > Reporter: Stefan Goldener > Assignee: Peter Wicks > Priority: Minor > Attachments: ConvertRecordBUG.xml > > > The Nifi ConvertRecord Processor does create an empty flow file in case the > input is a CSV with Header but no content. If no content is available the > flow file should be ignored or at least there should be an option to ignore > empty files. -- This message was sent by Atlassian JIRA (v7.6.3#76005)