<?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 MongoDB Output Not able to update existing Fields using _id(Object_ID) as key in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/MongoDB-Output-Not-able-to-update-existing-Fields-using-id/m-p/2250067#M148794</link>
    <description>&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Talend Job has InputFile--&amp;gt;Tmap--&amp;gt;MongoDBOutput. As part of the job i am trying to update existing Subelement Field level values with new values using _id(ObjectID) as key.&lt;/P&gt;&lt;P&gt;Could you please let me know what option do i need to use. &lt;/P&gt;&lt;P&gt;i tried option 'set' or 'Upsert with Set'. But no records got updated.&lt;/P&gt;&lt;P&gt;I can't use 'Update' or upsert:since this will replaces the existing document and source and target layout is not same Source has only 10 Fields But Target collection as 50. Out of 50 Fields i need to update only 10 fields so i had to use 'set' or 'Upsert with Set'.&lt;/P&gt;&lt;P&gt;I appricate all the help if you could help me in this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Settings inside the MongoDBOoutput that i am currently using.&lt;/P&gt;&lt;P&gt;Basic Settings : Bulk write &amp;amp; Bulk Write Size " 1000" &amp;amp; Action on data 'Set'&lt;/P&gt;&lt;P&gt;Advanced settings : GenerateJSON Document &amp;amp;&lt;/P&gt;&lt;P&gt;Ignore Service attributes for empty elements&lt;/P&gt;&lt;P&gt;Remove root nod.&lt;/P&gt;&lt;P&gt;Data node as "data" &amp;amp; Query node as "query"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i have Configure Json Tree similar to below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000mR8LSAA0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155934iA32CF0387D863006/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000mR8LSAA0.png" alt="0695b00000mR8LSAA0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jan 2026 14:45:42 GMT</pubDate>
    <dc:creator>KKBS</dc:creator>
    <dc:date>2026-01-02T14:45:42Z</dc:date>
    <item>
      <title>MongoDB Output Not able to update existing Fields using _id(Object_ID) as key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MongoDB-Output-Not-able-to-update-existing-Fields-using-id/m-p/2250067#M148794</link>
      <description>&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Talend Job has InputFile--&amp;gt;Tmap--&amp;gt;MongoDBOutput. As part of the job i am trying to update existing Subelement Field level values with new values using _id(ObjectID) as key.&lt;/P&gt;&lt;P&gt;Could you please let me know what option do i need to use. &lt;/P&gt;&lt;P&gt;i tried option 'set' or 'Upsert with Set'. But no records got updated.&lt;/P&gt;&lt;P&gt;I can't use 'Update' or upsert:since this will replaces the existing document and source and target layout is not same Source has only 10 Fields But Target collection as 50. Out of 50 Fields i need to update only 10 fields so i had to use 'set' or 'Upsert with Set'.&lt;/P&gt;&lt;P&gt;I appricate all the help if you could help me in this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Settings inside the MongoDBOoutput that i am currently using.&lt;/P&gt;&lt;P&gt;Basic Settings : Bulk write &amp;amp; Bulk Write Size " 1000" &amp;amp; Action on data 'Set'&lt;/P&gt;&lt;P&gt;Advanced settings : GenerateJSON Document &amp;amp;&lt;/P&gt;&lt;P&gt;Ignore Service attributes for empty elements&lt;/P&gt;&lt;P&gt;Remove root nod.&lt;/P&gt;&lt;P&gt;Data node as "data" &amp;amp; Query node as "query"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i have Configure Json Tree similar to below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000mR8LSAA0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155934iA32CF0387D863006/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000mR8LSAA0.png" alt="0695b00000mR8LSAA0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 14:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MongoDB-Output-Not-able-to-update-existing-Fields-using-id/m-p/2250067#M148794</guid>
      <dc:creator>KKBS</dc:creator>
      <dc:date>2026-01-02T14:45:42Z</dc:date>
    </item>
  </channel>
</rss>

