<?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: MongoDB - component gives error on an OK query in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/MongoDB-component-gives-error-on-an-OK-query/m-p/2375711#M138067</link>
    <description>Hi
&lt;BR /&gt;As tMongoDBInput is a custom component, we hope Adrien-mogenet can offer a solution.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
    <pubDate>Mon, 21 May 2012 08:19:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-05-21T08:19:02Z</dc:date>
    <item>
      <title>MongoDB - component gives error on an OK query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MongoDB-component-gives-error-on-an-OK-query/m-p/2375710#M138066</link>
      <description>I'm trying to extend my job to update logged activities with a higher timestamp. 
&lt;BR /&gt;So I've extended my query in the tMongoDBInput-component, but it gives me errors. 
&lt;BR /&gt; 
&lt;BR /&gt;From the database that holds: 
&lt;BR /&gt;{ "_id" : ObjectId("4fb19c90ae20889fb54f999d"), "ty" : "auth", "u" : "7224621ef1de421c8d3529cd85a89b4a", "ts" : "May 15, 2012 12:00:16 AM", "c" : "US", "ag" : "product x", "ip" : "23.20.8.225", "tsr" : { "floatApprox" : 1337040016204 } } 
&lt;BR /&gt;Am I trying to get all documents with an higher tsr than e.g. 1337040014785 
&lt;BR /&gt;When I run this query in console: db.logins.find({'tsr' : {$gt : 1337040014785}}) 
&lt;BR /&gt;it works fine! 
&lt;BR /&gt; 
&lt;BR /&gt;BUT When put {'tsr' : {$gt : 1337040014785}} in the query-filed of the tMongoDBInput-component it gives me error: 
&lt;BR /&gt;Exception in component tMongoDBInput_1 
&lt;BR /&gt;com.mongodb.util.JSONParseException: 
&lt;BR /&gt;{'tsr' : {$gt : 1337040014785}} 
&lt;BR /&gt; ^ 
&lt;BR /&gt;Arrow pointing at dollar-sign. 
&lt;BR /&gt; 
&lt;BR /&gt;AND If I simplify the query to only: "{'tsr' : 1337040014785}" 
&lt;BR /&gt;It gives me another error: 
&lt;BR /&gt;Exception in component tMongoDBInput_1 
&lt;BR /&gt;java.lang.NumberFormatException: For input string: "1337040014785" 
&lt;BR /&gt; at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 
&lt;BR /&gt; at java.lang.Integer.parseInt(Integer.java:484) 
&lt;BR /&gt; at java.lang.Integer.&amp;lt;init&amp;gt;(Integer.java:636) 
&lt;BR /&gt; 
&lt;BR /&gt;What makes the error happen in Talend when it works fine from terminal? 
&lt;BR /&gt;(and how do I get this condition in the talend mongo component query field &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;- - Edit - - 
&lt;BR /&gt;When I remove all conditions (no query), I also get an error: 
&lt;BR /&gt;Exception in component tMongoDBInput_1 
&lt;BR /&gt;java.lang.NullPointerException 
&lt;BR /&gt;Could this be related to the fact that the document has an embedded document and that I define the schema unsatisfactory? 
&lt;BR /&gt; 
&lt;BR /&gt;- - - Edit2 - - - 
&lt;BR /&gt; 
&lt;A href="https://github.com/adrien-mogenet/tMongoDBInput/issues/2" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/adrien-mogenet/tMongoDBInput/issues/2&lt;/A&gt;</description>
      <pubDate>Fri, 18 May 2012 13:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MongoDB-component-gives-error-on-an-OK-query/m-p/2375710#M138066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-18T13:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: MongoDB - component gives error on an OK query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MongoDB-component-gives-error-on-an-OK-query/m-p/2375711#M138067</link>
      <description>Hi
&lt;BR /&gt;As tMongoDBInput is a custom component, we hope Adrien-mogenet can offer a solution.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Mon, 21 May 2012 08:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MongoDB-component-gives-error-on-an-OK-query/m-p/2375711#M138067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-21T08:19:02Z</dc:date>
    </item>
  </channel>
</rss>

