Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
fcolagiacomo
Contributor III
Contributor III

tMongoDBInput doesn't read DocumentDB collection

My job uses MongoDB components to connect and read DocumentDB connection but when I run the job I receive an error from DocumentDB about noCursorTimeout feature not available. DocumentDB installed with MongoDB compatibility.

Labels (3)
1 Solution

Accepted Solutions
fcolagiacomo
Contributor III
Contributor III
Author

I found the solution!

Whether you receive this kind of error you have to check item file of the job. You should to find this elementParameter "QUERYOPTION_NOTIMEOUT" set "true", this setting cause into the Java code the statement <mongodb_client>.find(...).noCursorTimeout(true).... (the feature is not supported by Amazon DocumentDB).

So you can change the value of  "QUERYOPTION_NOTIMEOUT" to "false" and your job will work like a charm.

N.B.: you have to set the tMongoDBConnection component by connection string and you have to add the parameter "retryWrites=false", in example: 

mongodb://<DocumentDB_ARN>:27017/?replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false

View solution in original post

1 Reply
fcolagiacomo
Contributor III
Contributor III
Author

I found the solution!

Whether you receive this kind of error you have to check item file of the job. You should to find this elementParameter "QUERYOPTION_NOTIMEOUT" set "true", this setting cause into the Java code the statement <mongodb_client>.find(...).noCursorTimeout(true).... (the feature is not supported by Amazon DocumentDB).

So you can change the value of  "QUERYOPTION_NOTIMEOUT" to "false" and your job will work like a charm.

N.B.: you have to set the tMongoDBConnection component by connection string and you have to add the parameter "retryWrites=false", in example: 

mongodb://<DocumentDB_ARN>:27017/?replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false