<?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 How to insert an array type data into MongoDB by Talend tMongoDBOutput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-an-array-type-data-into-MongoDB-by-Talend/m-p/2268485#M47038</link>
    <description>Hello Guys, 
&lt;BR /&gt;when I insert a row in Mongo shell: 
&lt;BR /&gt;db.mycoll.insert( 
&lt;BR /&gt;&amp;nbsp; {&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; "column1": 
&lt;BR /&gt;} 
&lt;BR /&gt;) 
&lt;BR /&gt;result is: 
&lt;BR /&gt;{ "_id" : ObjectId("58b82d52957107b7c5d11062"), "column1" : } 
&lt;BR /&gt;but when I load data with Talend tMongoDBOutput component, even I choice column1's data type is "Object" in output side, Talend still load it as string, result like this: 
&lt;BR /&gt;{ "_id" : ObjectId("58b82d52957107b7c5d11062"), "column1" : "" } 
&lt;BR /&gt;Because input_row is from Oracle, it is string, so I tried to add a tJavaRow component convert the string to array, but I can not set the result value to ouput_row which is tMongoDBOutput component's input_row, so anybody know What the best way I can do to resolved this problem? By the way, I must use Talend tMongoDBOutput to do it. 
&lt;BR /&gt;Thanks</description>
    <pubDate>Sat, 16 Nov 2024 10:01:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T10:01:42Z</dc:date>
    <item>
      <title>How to insert an array type data into MongoDB by Talend tMongoDBOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-an-array-type-data-into-MongoDB-by-Talend/m-p/2268485#M47038</link>
      <description>Hello Guys, 
&lt;BR /&gt;when I insert a row in Mongo shell: 
&lt;BR /&gt;db.mycoll.insert( 
&lt;BR /&gt;&amp;nbsp; {&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; "column1": 
&lt;BR /&gt;} 
&lt;BR /&gt;) 
&lt;BR /&gt;result is: 
&lt;BR /&gt;{ "_id" : ObjectId("58b82d52957107b7c5d11062"), "column1" : } 
&lt;BR /&gt;but when I load data with Talend tMongoDBOutput component, even I choice column1's data type is "Object" in output side, Talend still load it as string, result like this: 
&lt;BR /&gt;{ "_id" : ObjectId("58b82d52957107b7c5d11062"), "column1" : "" } 
&lt;BR /&gt;Because input_row is from Oracle, it is string, so I tried to add a tJavaRow component convert the string to array, but I can not set the result value to ouput_row which is tMongoDBOutput component's input_row, so anybody know What the best way I can do to resolved this problem? By the way, I must use Talend tMongoDBOutput to do it. 
&lt;BR /&gt;Thanks</description>
      <pubDate>Sat, 16 Nov 2024 10:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-an-array-type-data-into-MongoDB-by-Talend/m-p/2268485#M47038</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert an array type data into MongoDB by Talend tMongoDBOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-an-array-type-data-into-MongoDB-by-Talend/m-p/2268486#M47039</link>
      <description>Hi, 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;You can perform this by passing an array of json documents to the insert method on a collection i&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;n the mongo shell?&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Have you tried this "function" in&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tMongoDBRow to see if it works?&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 07 Apr 2017 10:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-an-array-type-data-into-MongoDB-by-Talend/m-p/2268486#M47039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-07T10:13:45Z</dc:date>
    </item>
  </channel>
</rss>

