You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "RAVINARAYAN SINGH (Jira)" <ji...@apache.org> on 2022/04/09 23:39:00 UTC

[jira] [Updated] (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:all-tabpanel ]

RAVINARAYAN SINGH updated NIFI-9899:
------------------------------------
    Description: 
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!

 

  was:
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

 

!image-2022-04-09-18-33-52-116.png!

!image-2022-04-09-18-34-32-324.png!

 


> 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
>
>
> 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)