[ 
https://issues.apache.org/jira/browse/NIFI-10171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Villard resolved NIFI-10171.
-----------------------------------
    Resolution: Feedback Received

Apache NiFi 1.x is no longer maintained and no new release is planned on the 
1.x release line. Marking as resolved as part of a cleanup operation. Please 
open a new one with an updated description if this is still relevant for NiFi 
2.x.

> LookupRecord Fails when No Match
> --------------------------------
>
>                 Key: NIFI-10171
>                 URL: https://issues.apache.org/jira/browse/NIFI-10171
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.16.2
>            Reporter: Jacek Trocinski
>            Priority: Minor
>
> When there is no match for a key in the DatabaseRecordLookupService it 
> returns an error:
> !https://community.cloudera.com/t5/image/serverpage/image-id/34689i23235965854C2D7D/image-size/medium?v=v2&px=400!
> The lookup processor config:
> !https://community.cloudera.com/t5/image/serverpage/image-id/34690i03D3A63AD902480E/image-size/medium?v=v2&px=400!
> The input JSON has the following structure:
> {code:java}
> [
>   {
>     "id": 1,
>     "name": "Bitcoin",
>     "symbol": "BTC"
>   },
>   {
>     "id": 2,
>     "name": "Apecoin",
>     "symbol": "Ape"
>   }
> ] {code}
>  
> I expected the attribute value to be updated when there is a lookup match.
> E.g., if there is a lookup match on symbol {{BTC}} then replace {{BTC}} with 
> the lookup value.
> I expected the attribute value to not be updated when there is no lookup 
> match.
> E.g., if there is no lookup match on symbol {{APE}} then *do not* replace 
> {{APE}} with a lookup value.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to