<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tDbMongoInput ParseError for Query in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tDbMongoInput-ParseError-for-Query/m-p/2236926#M25512</link>
    <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LPEUAA4"&gt;@maheep6776&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;I want to find record from mongo by date , So i write one query&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;"{\"date\":{\"$gte\":\"ISODate(\"" + globalMap.get("max_QueryUpdatedAt") + "\")\"}}"&lt;/P&gt; 
 &lt;P&gt;it giving the parseError&amp;nbsp;&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;what the full error text?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;btw, try this:&lt;/P&gt; 
&lt;PRE&gt;"{\"date\":{\"$gte\":\"ISODate(\"" + (String)globalMap.get("max_QueryUpdatedAt") + "\")\"}}"&lt;/PRE&gt;</description>
    <pubDate>Sat, 02 Feb 2019 08:43:43 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2019-02-02T08:43:43Z</dc:date>
    <item>
      <title>tDbMongoInput ParseError for Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDbMongoInput-ParseError-for-Query/m-p/2236925#M25511</link>
      <description>&lt;P&gt;I want to find record from mongo by date , So i write one query&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"{\"date\":{\"$gte\":\"ISODate(\"" + globalMap.get("max_QueryUpdatedAt") + "\")\"}}"&lt;/P&gt; 
&lt;P&gt;it giving the parseError&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 14:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDbMongoInput-ParseError-for-Query/m-p/2236925#M25511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-01T14:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: tDbMongoInput ParseError for Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDbMongoInput-ParseError-for-Query/m-p/2236926#M25512</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LPEUAA4"&gt;@maheep6776&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;I want to find record from mongo by date , So i write one query&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;"{\"date\":{\"$gte\":\"ISODate(\"" + globalMap.get("max_QueryUpdatedAt") + "\")\"}}"&lt;/P&gt; 
 &lt;P&gt;it giving the parseError&amp;nbsp;&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;what the full error text?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;btw, try this:&lt;/P&gt; 
&lt;PRE&gt;"{\"date\":{\"$gte\":\"ISODate(\"" + (String)globalMap.get("max_QueryUpdatedAt") + "\")\"}}"&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 Feb 2019 08:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDbMongoInput-ParseError-for-Query/m-p/2236926#M25512</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-02-02T08:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: tDbMongoInput ParseError for Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDbMongoInput-ParseError-for-Query/m-p/2236927#M25513</link>
      <description>I want this mongo query in TalendEtl tmongoDbInput, 
&lt;BR /&gt;{"date" : {$gte:ISODate("2019-01-03T09:56:11.244Z")}}) 
&lt;BR /&gt; 
&lt;BR /&gt;I used globalMap.get("max_QueryUpdatedAt") for storing date 
&lt;BR /&gt;and i m getting following error , I have tried your Query 
&lt;BR /&gt;"{\"date\":{\"$gte\":\"ISODate(\"" + 
&lt;BR /&gt;(String)globalMap.get("max_QueryUpdatedAt") + "\")\"}}" 
&lt;BR /&gt; 
&lt;BR /&gt;I am attaching error Screen Shot 
&lt;BR /&gt;Code generated by Talend 
&lt;BR /&gt;com.mongodb.DBObject myQuery = (com.mongodb.DBObject) com.mongodb.util.JSON 
&lt;BR /&gt;.parse("{\"date\":{\"$gte\":\"ISODate(\"" 
&lt;BR /&gt;+ (String) globalMap.get("max_QueryUpdatedAt") 
&lt;BR /&gt;+ "\")\"}}");</description>
      <pubDate>Sat, 02 Feb 2019 15:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDbMongoInput-ParseError-for-Query/m-p/2236927#M25513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-02T15:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: tDbMongoInput ParseError for Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDbMongoInput-ParseError-for-Query/m-p/2236928#M25514</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I want this mongo query in TalendEtl tmongoDbInput,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"date" : {$gte:ISODate("2019-01-03T09:56:11.244Z")}})&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used globalMap.get("max_QueryUpdatedAt") for storing date&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and i m getting following error , I have tried your Query&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"{\"date\":{\"$gte\":\"ISODate(\"" +&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(String)globalMap.get("max_QueryUpdatedAt") + "\")\"}}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attaching error Screen Shot&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Code generated by Talend&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.mongodb.DBObject myQuery = (com.mongodb.DBObject) com.mongodb.util.JSON&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.parse("{\"date\":{\"$gte\":\"ISODate(\""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;+ (String) globalMap.get("max_QueryUpdatedAt")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;+ "\")\"}}");&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Luae"&gt;Screenshot from 2019-02-02 20-57-08.png&lt;/A&gt;</description>
      <pubDate>Tue, 05 Feb 2019 06:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDbMongoInput-ParseError-for-Query/m-p/2236928#M25514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-05T06:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: tDbMongoInput ParseError for Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDbMongoInput-ParseError-for-Query/m-p/2236929#M25515</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LPEUAA4"&gt;@maheep6776&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;&lt;SPAN&gt;I want this mongo query in TalendEtl tmongoDbInput,&lt;/SPAN&gt;&lt;BR /&gt;{"date" : {&lt;STRONG&gt;$gte:ISODate&lt;/STRONG&gt;("2019-01-03T09:56:11.244Z")}})&lt;BR /&gt;&lt;SPAN&gt;and i m getting following error , I have tried your Query&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"{\"date\":{&lt;STRONG&gt;\"$gte\":\"ISODate(\""&lt;/STRONG&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;(String)globalMap.get("max_QueryUpdatedAt") + "\")\"}}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;as you could see you have a difference&amp;nbsp;in query code, &lt;STRONG&gt;what you want and what you send&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;try this&lt;/P&gt; 
&lt;PRE&gt;"{\"date\":{$gte:ISODate(\""+(String)globalMap.get("max_QueryUpdatedAt") + "\")}}"&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;P.S. keep in mind - here not a mongodb forum, and I not a MongoDB queries expert &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;so, I could only suggest proper check Java syntax&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 06:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDbMongoInput-ParseError-for-Query/m-p/2236929#M25515</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-02-05T06:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: tDbMongoInput ParseError for Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDbMongoInput-ParseError-for-Query/m-p/2236930#M25516</link>
      <description>&lt;P&gt;Thanks For your Reply. It is working fine now . I m really sorry for typos mistake.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 07:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDbMongoInput-ParseError-for-Query/m-p/2236930#M25516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-05T07:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: tDbMongoInput ParseError for Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDbMongoInput-ParseError-for-Query/m-p/2236931#M25517</link>
      <description>&lt;P&gt;it not a problem at all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;welcome to community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 07:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDbMongoInput-ParseError-for-Query/m-p/2236931#M25517</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-02-05T07:08:15Z</dc:date>
    </item>
  </channel>
</rss>

