<?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 set Operation not working as expected in tMongoDBOutput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/set-Operation-not-working-as-expected-in-tMongoDBOutput/m-p/2531603#M148035</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This is regarding a data migration project, where we have to update data in Mongo DB.&lt;/P&gt;
&lt;P&gt;We have a collection in Mongo with multiple arrays and objects. The total count of documents in that collection is 600 million. In that there is a particular object with 5 fields inside it. The objective is to build a pipeline to integrate data from multiple source tables and then update that particular object (2 existing fields and add a new field).&lt;/P&gt;
&lt;P&gt;In Mongo, we use the $set operation to update values of specific fields without disturbing the other fields.&lt;/P&gt;
&lt;P&gt;Similarly, in Talend, we tried using the set operation and it completely overwrites the object. The fields inside the object that are not part of the update are getting removed. The object is left with the new field and the 2 fields which were updated.&lt;/P&gt;
&lt;P&gt;Is this expected behavior in Talend? Or is there any other way to perform update operation on Mongo through Talend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Sep 2025 11:11:14 GMT</pubDate>
    <dc:creator>rafterDaisonJacob</dc:creator>
    <dc:date>2025-09-23T11:11:14Z</dc:date>
    <item>
      <title>set Operation not working as expected in tMongoDBOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-Operation-not-working-as-expected-in-tMongoDBOutput/m-p/2531603#M148035</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This is regarding a data migration project, where we have to update data in Mongo DB.&lt;/P&gt;
&lt;P&gt;We have a collection in Mongo with multiple arrays and objects. The total count of documents in that collection is 600 million. In that there is a particular object with 5 fields inside it. The objective is to build a pipeline to integrate data from multiple source tables and then update that particular object (2 existing fields and add a new field).&lt;/P&gt;
&lt;P&gt;In Mongo, we use the $set operation to update values of specific fields without disturbing the other fields.&lt;/P&gt;
&lt;P&gt;Similarly, in Talend, we tried using the set operation and it completely overwrites the object. The fields inside the object that are not part of the update are getting removed. The object is left with the new field and the 2 fields which were updated.&lt;/P&gt;
&lt;P&gt;Is this expected behavior in Talend? Or is there any other way to perform update operation on Mongo through Talend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 11:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-Operation-not-working-as-expected-in-tMongoDBOutput/m-p/2531603#M148035</guid>
      <dc:creator>rafterDaisonJacob</dc:creator>
      <dc:date>2025-09-23T11:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: set Operation not working as expected in tMongoDBOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-Operation-not-working-as-expected-in-tMongoDBOutput/m-p/2541380#M149327</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Yes, this behavior is expected when updating MongoDB documents through Talend if the update is performed at the nested object level.&lt;BR /&gt;&lt;BR /&gt;MongoDB natively supports partial updates using $set with dot notation to update individual fields within an object. However, in Talend, if a nested object is mapped and updated as a single structure, the object is treated as a full replacement, and any fields not included in the update are removed.&lt;BR /&gt;&lt;BR /&gt;Recommended approaches:&lt;BR /&gt;&lt;BR /&gt;Use dot notation to update individual fields (for example: object.field1, object.field2, object.newField) instead of updating the full object.&lt;BR /&gt;&lt;BR /&gt;Avoid mapping the complete nested object in the update schema unless a full replacement is intended.&lt;BR /&gt;&lt;BR /&gt;For complex or large-scale updates, consider using tMongoDBRow with a native MongoDB $set statement for precise field-level control.&lt;BR /&gt;&lt;BR /&gt;Best practice:&lt;BR /&gt;Always perform field-level updates for nested objects to prevent unintended data loss.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Gourav</description>
      <pubDate>Fri, 23 Jan 2026 09:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-Operation-not-working-as-expected-in-tMongoDBOutput/m-p/2541380#M149327</guid>
      <dc:creator>gouravdubey5</dc:creator>
      <dc:date>2026-01-23T09:14:45Z</dc:date>
    </item>
  </channel>
</rss>

