You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/04/18 15:34:00 UTC
[jira] [Commented] (NIFI-9899) As per documentation MongoDBLookupService properties database and collection name suppose to accept the values from flowfile attribute but when i tried its giving IllegalArgumentException Exception
[ https://issues.apache.org/jira/browse/NIFI-9899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17523756#comment-17523756 ]
ASF subversion and git services commented on NIFI-9899:
-------------------------------------------------------
Commit ce95097aee562430281a7b7a23de9c9879896d78 in nifi's branch refs/heads/main from ravinarayansingh
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=ce95097aee ]
NIFI-9899 Corrected MongoDBLookupService attribute handling
- Corrected collection and database name properties to handle FlowFile attributes
This closes #5966
Signed-off-by: David Handermann <ex...@apache.org>
> As per documentation MongoDBLookupService properties database and collection name suppose to accept the values from flowfile attribute but when i tried its giving IllegalArgumentException Exception
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-9899
> URL: https://issues.apache.org/jira/browse/NIFI-9899
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.15.3, 1.16.1
> Reporter: RAVINARAYAN SINGH
> Priority: Major
> Labels: ControllerService, MongoDB, lookup
> Attachments: image-2022-04-09-18-32-36-846.png, image-2022-04-09-18-34-32-324.png
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> I am using MongoDBLookupService , as documentation says that it supports expression language and flowfile attributes for mongo database name and collection name properties , so I was trying to pass those values as a attribute of the flow file but it not able to recognize
> I am getting following exception
> MongoDBLookupService[id=f6b246ef-017f-1000-fc40-a74d9160ed1a] Error during lookup \{"division_name": "Indore"}: java.lang.IllegalArgumentException: state should be: databaseName is not empty
>
> !image-2022-04-09-18-34-32-324.png!
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)