[ 
https://issues.apache.org/jira/browse/NIFI-4278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16121038#comment-16121038
 ] 

ASF GitHub Bot commented on NIFI-4278:
--------------------------------------

Github user alopresto commented on the issue:

    https://github.com/apache/nifi/pull/2069
  
    I ran this with a simple `GenFF/ValidateXML/LogAttr` flow and it looks 
great. Ran `contrib-check` and all tests pass. +1, merging. 
    
    ```
    --------------------------------------------------
    Standard FlowFile Attributes
    Key: 'entryDate'
        Value: 'Wed Aug 09 21:04:20 PDT 2017'
    Key: 'lineageStartDate'
        Value: 'Wed Aug 09 21:04:20 PDT 2017'
    Key: 'fileSize'
        Value: '24'
    FlowFile Attribute Map Content
    Key: 'filename'
        Value: '204498845083507'
    Key: 'path'
        Value: './'
    Key: 'uuid'
        Value: 'de5ad824-cea7-442e-8f01-ca01b9aa6e06'
    Key: 'validatexml.invalid.error'
        Value: 'cvc-elt.1: Cannot find the declaration of element 'this'.'
    --------------------------------------------------
    <this>is not valid</xml>
    ```


> ValidateXml - add validation error as an attribute of invalid flow files
> ------------------------------------------------------------------------
>
>                 Key: NIFI-4278
>                 URL: https://issues.apache.org/jira/browse/NIFI-4278
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Pierre Villard
>            Assignee: Pierre Villard
>            Priority: Minor
>
> The idea is to have an attribute containing the validation error message for 
> flow files routed to the invalid relationship.
> I initially added a specific property allowing the user to decide if this 
> attribute should be added or not... but in the end I removed it as I think 
> this is a desired behaviour in any situation.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to