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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to get mongodb sysdate in talend using mongodb connector

I have talend and mongodb on two different servers and two different zones ( these timezones may change in future). I am trying to set context variable in taled to mongodb sysdate. I have tried few ways using tMongodbInput and tMongodbRow with new Date(), new ISODate() and $currentDate methods. But it is either a JSON parse exception or Bad Command. I am looking for mongodb query for select sysdate from dual. Is there any way to get sysdate like this in taled using mongodb

Labels (3)
4 Replies
Anonymous
Not applicable
Author

Try with Date() or new Date() functions

Anonymous
Not applicable
Author

Thank you for suggestion. As mentioned in my question description i have tried these two methods, but it is throwing an exception. I appreciate if you can share any screenshot if you have tried/implemented.
Chandru
Contributor
Contributor

Hi

Can you please let me know TALEND VERSION?

 

is this 6.4.1 or 7.1.1 ?

 

there is some issue in 6.4.1 and 7.0.1 mongodb connector .

 

 

Thanks

Chandru

Anonymous
Not applicable
Author

I am using talend 7.1.1 with mongo db 3.2.x