Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
jyeragi
Contributor III
Contributor III

select 100 rows from Mongo

How do I replicate 100 top or latest records from mongo to snowflake using QLIKreplicate.

Labels (1)
2 Solutions

Accepted Solutions
john_wang
Support
Support

Hello @jyeragi , copy @Heinvandenheuvel  @Dana_Baldwin ,

In Qlik Replicate MongoDB access is thru APIs (not thru SQL) and it's different than Relational DBs so the common filter does not work for MongoDB source Endpoint, eg "Fullload Passthru Filter" expression is totally ignored in MongoDB source task, no way to add the filter there for example ".limit(100)" - it does not work at all.

The available option in filter is using "_id" field. for common usage I create an dedicated article How to filter records by unique identifier "_id" in MongoDB source  .

Hope it helps.

Regards,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!

View solution in original post

5 Replies
Heinvandenheuvel
Specialist III
Specialist III

Is this a repeating (daily? hourly?) activity, or a when-requested job?

Anyway, it seems to me that Replicate is too big a hammer for this job.

Hein

 

john_wang
Support
Support

Hello @jyeragi , copy @Heinvandenheuvel  @Dana_Baldwin ,

In Qlik Replicate MongoDB access is thru APIs (not thru SQL) and it's different than Relational DBs so the common filter does not work for MongoDB source Endpoint, eg "Fullload Passthru Filter" expression is totally ignored in MongoDB source task, no way to add the filter there for example ".limit(100)" - it does not work at all.

The available option in filter is using "_id" field. for common usage I create an dedicated article How to filter records by unique identifier "_id" in MongoDB source  .

Hope it helps.

Regards,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
jyeragi
Contributor III
Contributor III
Author

Thanks John. That was the perfect example.

You are right the expression builder does not like the condition instead the filter condition works fine.

 

john_wang
Support
Support

Hello @jyeragi ,

I got a better way for replicate 100 top or latest records from MongoDB: you may create a view in the same database which will map to the 100 top or latest records so far it's much easier for you to use the view in Replicate.

Hope this helps.

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!