<?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: [resolved] tMongoDBOutput inserts only String fields in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMongoDBOutput-inserts-only-String-fields/m-p/2228713#M19892</link>
    <description>Hi Shong, 
&lt;BR /&gt;Is there a way we can do this without using the " 
&lt;I&gt;Generate JSON Document" option and still having the loop elements structure maintained in the tMongoDBOutput component. &lt;BR /&gt;&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;I am able to create a Date field in MongoDB WITHOUT using the "&lt;/I&gt; 
&lt;I&gt;Generate JSON Document" but I dont know how to group by a certain field and have repeating child elements in the tMongoDBOutput &lt;/I&gt;component. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;-Bharat</description>
    <pubDate>Thu, 09 Apr 2015 00:55:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-09T00:55:29Z</dc:date>
    <item>
      <title>[resolved] tMongoDBOutput inserts only String fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMongoDBOutput-inserts-only-String-fields/m-p/2228709#M19888</link>
      <description>Hello,
&lt;BR /&gt;When I try to load data in a MongoDB database, all fields are loaded as String, even if, in the schema, the fields are Integer, BigDecimal, Boolean, Date...
&lt;BR /&gt;
&lt;B&gt;Is there a way to insert data in MongoDB with correct types with tMongoDBOutput component ?&lt;/B&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;My job :&lt;/U&gt;
&lt;BR /&gt;tFileInputXML --&amp;gt; tMap --&amp;gt; tMongoDBOutput
&lt;BR /&gt;The fields are Integer (or Date or Boolean...) in all the components.
&lt;BR /&gt;tMongoDBOutput component is used with "
&lt;I&gt;Generate JSON Document" option.&lt;BR /&gt;&lt;/I&gt;
&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Sat, 16 Nov 2024 11:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMongoDBOutput-inserts-only-String-fields/m-p/2228709#M19888</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMongoDBOutput inserts only String fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMongoDBOutput-inserts-only-String-fields/m-p/2228710#M19889</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;MongoDB supports the following types: array, string, integer, float etc.. see&amp;nbsp; 
&lt;BR /&gt; 
&lt;A href="http://json-lib.sourceforge.net/apidocs/jdk15/constant-values.html#net.sf.json.xml.JSONTypes.ARRAY" rel="nofollow noopener noreferrer"&gt;http://json-lib.sourceforge.net/apidocs/jdk15/constant-values.html#net.sf.json.xml.JSONTypes.ARRAY&lt;/A&gt; 
&lt;BR /&gt;On tMongoDBOutput component, you need to add an attribute called 'type' to the element, and then right click on the attribute, select 'set a fixed value' to set the type name such as "float" which you want to declare the type of this element. 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/674/1_20150327-0135.png" target="_blank"&gt;&lt;IMG src="https://community.talend.com/legacyfs/online/membersTempo/674/1_20150327-0135.png" /&gt; &lt;/A&gt; 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 27 Mar 2015 00:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMongoDBOutput-inserts-only-String-fields/m-p/2228710#M19889</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-27T00:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMongoDBOutput inserts only String fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMongoDBOutput-inserts-only-String-fields/m-p/2228711#M19890</link>
      <description>Hi Shong,
&lt;BR /&gt;Thanks for your answer.
&lt;BR /&gt;Yes, I have succeeded to create Integer or Boolean fields with this method.
&lt;BR /&gt;But no solution to create Date fields with the "
&lt;I&gt;Generate JSON Document" option.&lt;/I&gt;
&lt;BR /&gt;I've contacted the Support to help me on this case, but no solution found with them.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Tangi</description>
      <pubDate>Fri, 27 Mar 2015 11:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMongoDBOutput-inserts-only-String-fields/m-p/2228711#M19890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-27T11:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMongoDBOutput inserts only String fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMongoDBOutput-inserts-only-String-fields/m-p/2228712#M19891</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;Date is not a supported type by json, uses the default String type for it or generates each part of the year. For example: 
&lt;BR /&gt;{"year":2015,"month":03,"day":27} 
&lt;BR /&gt;BR 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 27 Mar 2015 11:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMongoDBOutput-inserts-only-String-fields/m-p/2228712#M19891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-27T11:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMongoDBOutput inserts only String fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMongoDBOutput-inserts-only-String-fields/m-p/2228713#M19892</link>
      <description>Hi Shong, 
&lt;BR /&gt;Is there a way we can do this without using the " 
&lt;I&gt;Generate JSON Document" option and still having the loop elements structure maintained in the tMongoDBOutput component. &lt;BR /&gt;&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;I am able to create a Date field in MongoDB WITHOUT using the "&lt;/I&gt; 
&lt;I&gt;Generate JSON Document" but I dont know how to group by a certain field and have repeating child elements in the tMongoDBOutput &lt;/I&gt;component. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;-Bharat</description>
      <pubDate>Thu, 09 Apr 2015 00:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMongoDBOutput-inserts-only-String-fields/m-p/2228713#M19892</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T00:55:29Z</dc:date>
    </item>
  </channel>
</rss>

