[
https://issues.apache.org/jira/browse/NIFI-9899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17524420#comment-17524420
]
ASF subversion and git services commented on NIFI-9899:
-------------------------------------------------------
Commit d6176fea41c3b703443c5d77ca19b20aac7ef04a in nifi's branch
refs/heads/support/nifi-1.16 from ravinarayansingh
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=d6176fea41 ]
NIFI-9899 Corrected MongoDBLookupService attribute handling
- Corrected collection and database name properties to handle FlowFile
attributes
This closes #5966
Signed-off-by: David Handermann <[email protected]>
> Correct MongoDBLookupService handling of FlowFile attribute properties
> ----------------------------------------------------------------------
>
> Key: NIFI-9899
> URL: https://issues.apache.org/jira/browse/NIFI-9899
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.16.0, 1.15.3
> Reporter: RAVINARAYAN SINGH
> Priority: Major
> Labels: ControllerService, MongoDB, lookup
> Fix For: 1.17.0, 1.16.1
>
> 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.7#820007)