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

Sean Hunter commented on NIFI-11784:
------------------------------------

XML Reader config:
!image-2023-07-06-15-04-04-992.png!

JSON writer config (IIRC, only change from default is writing JSON per-line 
instead of per-flowfile):
!image-2023-07-06-15-04-53-194.png!

Do feel free to reach out if you need any help or additional context!

> XML to JSON conversion loses data (ConvertRecord processor - XMLReader and 
> JSONRecordSetWriter)
> -----------------------------------------------------------------------------------------------
>
>                 Key: NIFI-11784
>                 URL: https://issues.apache.org/jira/browse/NIFI-11784
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.22.0
>         Environment: Tested on Windows with ConsumeWindowsEventLog, 
> particularly obvious (100% failure rate) on ForwardedEvents channel in a 
> WEF/WEC setup
>            Reporter: Sean Hunter
>            Priority: Major
>         Attachments: image-2023-07-06-14-42-46-700.png, 
> image-2023-07-06-14-45-15-939.png, image-2023-07-06-15-04-04-992.png, 
> image-2023-07-06-15-04-53-194.png
>
>
> Screenshot of event going into ConvertRecord processor in XML with valid data 
> in SubjectUserName field (one example of data that's lost):
> !image-2023-07-06-14-42-46-700.png!
> Screenshot of the same flowfile once processed, showing that SubjectUserName 
> field has lost information:
> !image-2023-07-06-14-45-15-939.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to