<?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: TMongoDBOutput cannot update document in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TMongoDBOutput-cannot-update-document/m-p/2244840#M30869</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt; 
&lt;P&gt;I found it, just an wierd require from MongoDB syntax, let it here for other to refference&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The problem here is cause by using Object ID (which is auto generated by Mongodb when you insert new document into the database). Just try to avoid using it as you key, but if you really want to use, please add ObjectID('[your document id here]').&lt;/P&gt; 
&lt;P&gt;That is all the story which take me out more than 1 week.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 942px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9IR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155673i01AF4FCFA4A3B168/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9IR.png" alt="0683p000009M9IR.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2020 06:51:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-10T06:51:23Z</dc:date>
    <item>
      <title>TMongoDBOutput cannot update document</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMongoDBOutput-cannot-update-document/m-p/2244837#M30866</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I think this is very simple, but i have posted 3 times and no one can help.&lt;/P&gt; 
&lt;P&gt;I just find a way to update data from a Mongodb collection and then save it back to the right place.&lt;/P&gt; 
&lt;P&gt;So that, I use a tMongoDBInput to read data, and use tMap to change the data and finally use a tMongoDBOutput to save data&lt;/P&gt; 
&lt;P&gt;All the schemas have _id as key field already, and currently I set the Action on Data to Update&lt;/P&gt; 
&lt;P&gt;The job is running successfully, but there is no update in database.&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="Capture1.PNG" style="width: 688px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9If.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146549i1B23996F4B69BF2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9If.png" alt="0683p000009M9If.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMongoDBOutput-cannot-update-document/m-p/2244837#M30866</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: TMongoDBOutput cannot update document</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMongoDBOutput-cannot-update-document/m-p/2244838#M30867</link>
      <description>did you set a key value for the update?</description>
      <pubDate>Thu, 09 Jan 2020 09:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMongoDBOutput-cannot-update-document/m-p/2244838#M30867</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2020-01-09T09:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: TMongoDBOutput cannot update document</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMongoDBOutput-cannot-update-document/m-p/2244839#M30868</link>
      <description>&lt;P&gt;Hi fdenis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, sure. I also change the type of the _ID into OBJECT to map the data type in database&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 04:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMongoDBOutput-cannot-update-document/m-p/2244839#M30868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-10T04:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: TMongoDBOutput cannot update document</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMongoDBOutput-cannot-update-document/m-p/2244840#M30869</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt; 
&lt;P&gt;I found it, just an wierd require from MongoDB syntax, let it here for other to refference&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The problem here is cause by using Object ID (which is auto generated by Mongodb when you insert new document into the database). Just try to avoid using it as you key, but if you really want to use, please add ObjectID('[your document id here]').&lt;/P&gt; 
&lt;P&gt;That is all the story which take me out more than 1 week.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 942px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9IR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155673i01AF4FCFA4A3B168/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9IR.png" alt="0683p000009M9IR.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 06:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMongoDBOutput-cannot-update-document/m-p/2244840#M30869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-10T06:51:23Z</dc:date>
    </item>
  </channel>
</rss>

