You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Luis M Calderon (JIRA)" <ji...@apache.org> on 2018/06/13 13:20:00 UTC

[jira] [Created] (NIFI-5305) Parameterized collection name fails with dynamic params

Luis M Calderon created NIFI-5305:
-------------------------------------

             Summary: Parameterized collection name fails with dynamic params
                 Key: NIFI-5305
                 URL: https://issues.apache.org/jira/browse/NIFI-5305
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 1.6.0
            Reporter: Luis M Calderon
         Attachments: getmongo_error.txt

When using a dynamic property for collection name, the creation of the full query reference name is not working as expected. The reference name seems to be the concatenation of the namespace and collection name. i.e. _<namespace>.<collection_name>)_ 

The following parameters are those which are provided to the GetMongo Processor:

Param Definitions:
    my_schema = 'my_schema'
    collection_name = <dynamic value from a FlowFile attribute>
{code:java}
Mongo Database Name: ${my_schema}
Mongo Collection Name: ${collection_name}{code}
 

Attached is a text file containing the NiFi log for this error.

 

_There is no namespace error when the same values are hard coded._

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)