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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to capture _id from Mongodb Document

Hello,
i am trying to get _id from Mongodb document using talend component. My document looks as follows in mongodb:
{
"_id": ObjectId("5637ac7a19f404804350410cb"),
"Name":"test123"
}
when i view/extract data using tMongodbInput component, i am getting different _id (example: "1234ac7a19f40480435041299").
any help is greatly appreciated.

Thanks
Shiva

Labels (2)
3 Replies
Anonymous
Not applicable
Author

Hi 
The same _id value should be retrieved from the document, I did a simple testing and i got the same _id, see. 
0683p000009MGpM.png

Which version of Talend Studio are you using? Can you please provide more details about your problem?

Best regards
Shong
Anonymous
Not applicable
Author

Hi Shong,
Thanks for your reply. This issue resolved after closing and opening of my robomongo client. For some reason robomongo was showing the _id incorrectly.

Shiva
Anonymous
Not applicable
Author

OK, thanks for your feedback!
Best regards
Shong