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

Pierre Villard commented on NIFI-4916:
--------------------------------------

Thanks for reporting this [~fabio.coutinho].

I believe we just need to change L295:
{code:java}
        FlowFile ff = session.create();
{code}
With
{code:java}
        FlowFile ff = session.create(originalParentFF);
{code}
Do you want to submit a PR on your side with a unit test to confirm the change? 
If not I can have a look.

Thanks!

> Flowfiles created by ConvertExcelToCSVProcessor do not inherit attributes
> -------------------------------------------------------------------------
>
>                 Key: NIFI-4916
>                 URL: https://issues.apache.org/jira/browse/NIFI-4916
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.5.0
>         Environment: NiFi 1.5.0
>            Reporter: Fabio Coutinho
>            Priority: Major
>         Attachments: ProvenanceCsvFlowFile.png, ProvenanceXlsFlowFile.png
>
>
> When converting a flowfile containing an XLS file to CSV, the newly generated 
> flowfiles do not inherit the attributes from the original one.
> Without the original flowfile's attributes, important information retrieved 
> before conversion (for example, file metadata) cannot be used after the file 
> is converted. I have attached 2 image files showing the attributes before and 
> after conversion. Please note that the input file has a lot of metadata 
> retrieved from Amazon S3 that does not exist on the new flowfile.
> I believe that like most other NiFi processors, the original attributes 
> should be copied to new flowfiles.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to