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

Mark Payne commented on NIFI-6497:
----------------------------------

FreeFormTextRecordSetWriter provides access to the Record fields, not FlowFile 
attributes. I can see the advantage, however, of allowing access to FlowFile 
attributes. At present, though, this is not possible. Changing type of this 
Jira from Bug to Improvement and updating title to more accurately represent 
the feature request.

> FreeFormTextRecordSetWriter: get Flowfile attribute returns null
> ----------------------------------------------------------------
>
>                 Key: NIFI-6497
>                 URL: https://issues.apache.org/jira/browse/NIFI-6497
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>            Reporter: DamienDEOM
>            Priority: Critical
>
>  
> I'm trying to convert json records to database insert statements using the 
> Splitrecords processor
> To do so, I use FreeFormTextRecordSetWriter controller with following text:
> {{INSERT INTO p17128.bookmark_users values ('${username}', 
> '${firstname:urlEncode()}', '${user_id}', '${accountnumber}', 
> '${lastname:urlEncode()}', '${nominal_time}'}})
> The resulting statement values are valid for all fields contained in Record 
> reader.
> Now I'd like to add a field that is a flowfile attribute ( ${nominal_time} ), 
> but I always get an empty string in the output.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to