You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "DamienDEOM (JIRA)" <ji...@apache.org> on 2019/07/29 08:00:00 UTC

[jira] [Created] (NIFI-6497) FreeFormTextRecordSetWriter: get Flowfile attribute returns null

DamienDEOM created NIFI-6497:
--------------------------------

             Summary: 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


 
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
(v7.6.14#76016)