Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9545

LookUpRecord's Record Update Strategy example is not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.15.0
    • 1.16.0
    • Extensions
    • None
    • apache/nifi:1.15.0 official docker image

    Description

      I tried to use LookUpRecord as described in the "Record Update Strategy - Replace Existing Values" section 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

      I created a SImpleKeyValue Lookup service with the following values:

      • FR => France
      • CA => Canada

      I created a generate flow file processor with the mentioned JSON input.

      I configured LookUpRecord as follows:

      Once LookUpRecord is executed, I see the following error message:

       

      Practically it looks to me that most of the LookUpServices provided with NiFi uses hard coded "key" as the name of the key. I am not sure how a key called "region" is supposed to work with Simple Key Value Lookup Service.

       

      Please find enclosed a template for reproducing the problem.

      Attachments

        1. image-2022-01-06-15-56-49-217.png
          57 kB
          Peter Molnar
        2. image-2022-01-06-15-58-08-315.png
          132 kB
          Peter Molnar
        3. LookUpRecord_empty_array_data_issue.xml
          37 kB
          Peter Molnar
        4. LookUpRecord_key_name_issue.xml
          35 kB
          Peter Molnar
        5. screenshot_4647.png
          13 kB
          Peter Molnar
        6. screenshot_4648.png
          23 kB
          Peter Molnar
        7. screenshot_4649.png
          12 kB
          Peter Molnar
        8. screenshot_4650.png
          38 kB
          Peter Molnar
        9. screenshot_4651.png
          28 kB
          Peter Molnar

        Issue Links

          Activity

            People

              pvillard Pierre Villard
              pem Peter Molnar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h