In a NiFi flow, I want to read a JSON structure, split it, use the payload to execute a SQL query, and finally output each result in a JSON file.
However I am having problems retrieving the value of the splitted FlowFile's attribute in the ExecuteSQL processor.
GenerateFlowFileprocessor, with a JSON structure asCustom Text
SplitJSON, with data as the attribute to be splitted
ExecuteSQL, with the query I am trying to execute, using theSplitJSON'spayload attribute${id}
At this point I am getting a log error of a SQL syntax error. Apparently the ExecuteQuery processor is not parsing the expression on its SQL select query property.
Is there any intermediate processing left to be done after splitting the JSON? What am I missing?



