How to Merge Multiple Flow Files - "ExecuteSQL"
Good morning everybody,
I have the following scenario of returning an API through two streams =
Flow 1 (
{"cod": 1}
{"cod": 2}
{"cod": 3})
Flow 2 (
{"error": "error 1"}
{"error": "error 2"}
{"error": "error 3"})
Each error has its cod and I need to send it to my database in this way through a procedure through "ExecuteSQL" =
procedure (cod => '$ {cod}',
error => '$ {error}');
I am trying to do this through "MergeContent" but it is not working.
What Nifi is doing is as follows =
{"cod": 1} {"cod": 2} {"cod": 3} {"error": "error 1"} {"error": "error 2"} {"error": "error 3" }
Not dividing the shipments by code, let's say and passing to "ExecuteSQL" all at once, when Cod + Error would have to be sent one at a time.
Follow all my flow =

This is my "MergeContent" =

This is my "ExecuteSQL" =

Can someone help me?

