<?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 and ObjectId in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/MongoDB-and-ObjectId/m-p/2275398#M51789</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I try the solution proposed in the help page of the "tWriteJSONField" : "&lt;SPAN&gt;For an &lt;/SPAN&gt;&lt;SPAN class="emphasis"&gt;&lt;EM&gt;object&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt; element, you need to add an attribute named &lt;/SPAN&gt;&lt;SPAN class="emphasis"&gt;&lt;STRONG&gt;class&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; and set its static value to &lt;/SPAN&gt;&lt;SPAN class="emphasis"&gt;&lt;STRONG&gt;object&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;. But it doesn't work, neither with &lt;EM&gt;object&lt;/EM&gt; nor &lt;EM&gt;ObjectId&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2017 08:06:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-16T08:06:24Z</dc:date>
    <item>
      <title>MongoDB and ObjectId</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MongoDB-and-ObjectId/m-p/2275397#M51788</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;I have a job in which I get documents from a collection with their _id (ObjectId), and I wish to realise a SET action on the collection with this _id as a key.&lt;/P&gt; 
&lt;P&gt;I try to use the Object field type for the _id field, but the set action doesn't work, and then I try upsert with set, it create me a new document with the same _id, but Integer format.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can I do to declare the _id as ObjectId in my query ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture3.JPG" style="width: 939px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuIq.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139486iE285C3C9D4E517C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuIq.jpg" alt="0683p000009LuIq.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 15:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MongoDB-and-ObjectId/m-p/2275397#M51788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-12T15:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: MongoDB and ObjectId</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MongoDB-and-ObjectId/m-p/2275398#M51789</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I try the solution proposed in the help page of the "tWriteJSONField" : "&lt;SPAN&gt;For an &lt;/SPAN&gt;&lt;SPAN class="emphasis"&gt;&lt;EM&gt;object&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt; element, you need to add an attribute named &lt;/SPAN&gt;&lt;SPAN class="emphasis"&gt;&lt;STRONG&gt;class&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; and set its static value to &lt;/SPAN&gt;&lt;SPAN class="emphasis"&gt;&lt;STRONG&gt;object&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;. But it doesn't work, neither with &lt;EM&gt;object&lt;/EM&gt; nor &lt;EM&gt;ObjectId&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 08:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MongoDB-and-ObjectId/m-p/2275398#M51789</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-16T08:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: MongoDB and ObjectId</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MongoDB-and-ObjectId/m-p/2275399#M51790</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you fetch the documents, "_id" is coming as type string not ObjectId. So while upserting documents it will add a new docoument instead of updating existing one as&lt;/P&gt;
&lt;P&gt;_id(str) != _id(ObjectId).&lt;/P&gt;
&lt;P&gt;I tried to find solutions, but talend doesn't have any datatype as ObjectID. I hope they bring this datatype in future versions.&lt;/P&gt;
&lt;P&gt;I upsert documents on some composite keys (not objectID) defined in query node in xml tree.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Ravinder&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 14:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MongoDB-and-ObjectId/m-p/2275399#M51790</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-08T14:24:12Z</dc:date>
    </item>
  </channel>
</rss>

