Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Apache NiFi custom built from Github repo.
Description
Input JSON generated by GenerateFlowFile processor looks like this (actually I just added a currencies array under each record in addition to the "Record Update Strategy - Replace Existing Values" example here https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.15.0/org.apache.nifi.processors.standard.LookupRecord/additionalDetails.html).
Note: for the first record currencies array is empty.
[ { "locales": [ { "region": "FR", "language": "fr" }, { "region": "US", "language": "en" } ], "currencies": [] }, { "locales": [ { "region": "CA", "language": "fr" }, { "region": "JP", "language": "ja" } ], "currencies": [ { "currency": "CAD" }, { "currency": "JPY" } ] } ]
SimpleKeyValueLookUp service contains the following values:
LookUpRecord processor is configured as follows:
Once I execute the LookUpRecord processor for the flow file, language look up works fine, but the look up for currencies and regions do not work.
Note: in case the 1st currencies array is not empty but contains { "currency": "EUR" }, { "currency": "USD" }, all look up works fine. But a missing data seems to break the next evaluation of the record path.
Please find the template for reproducing the issue enclosed as "LookUpRecord_empty_array_data_issue.xml".
Thank you.
Attachments
Attachments
Issue Links
- links to