<?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: Bigdecimal converted data failing to load after using the tMSSqlConnection component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Bigdecimal-converted-data-failing-to-load-after-using-the/m-p/2308720#M80014</link>
    <description>&lt;P&gt;I am not sure what is the problem at the time of converting the decimal point. I did a quick fix just change the data type from Bigdecimal to Float in database ([real] null&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; side. So instead&amp;nbsp;of Bigdecimal, I have to change the type to Float in talend. It is solved but should not have taken this alternative root. Bigdecimal in SQL database side failed to handle any value &amp;gt; .99.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Aug 2018 18:33:36 GMT</pubDate>
    <dc:creator>Tasfiahm</dc:creator>
    <dc:date>2018-08-23T18:33:36Z</dc:date>
    <item>
      <title>Bigdecimal converted data failing to load after using the tMSSqlConnection component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Bigdecimal-converted-data-failing-to-load-after-using-the/m-p/2308718#M80012</link>
      <description>&lt;P&gt;I am having a issue at the time of load Bigdecimal data in the tMSSqlConnection component. It is not able to process all the data.&lt;/P&gt; 
&lt;P&gt;At input My Schema setup is :&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;&lt;STRONG&gt;Description of schema setup&lt;/STRONG&gt;&lt;/TD&gt; 
   &lt;TD&gt;Column&lt;/TD&gt; 
   &lt;TD&gt;key&lt;/TD&gt; 
   &lt;TD&gt;Type&lt;/TD&gt; 
   &lt;TD&gt;Null&lt;/TD&gt; 
   &lt;TD&gt;Date Pattern&lt;/TD&gt; 
   &lt;TD&gt;Length&lt;/TD&gt; 
   &lt;TD&gt;Pricision&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;&lt;STRONG&gt;Input&lt;/STRONG&gt;&lt;/TD&gt; 
   &lt;TD&gt;Hours&lt;/TD&gt; 
   &lt;TD&gt;&amp;nbsp;&lt;/TD&gt; 
   &lt;TD&gt;String&lt;/TD&gt; 
   &lt;TD&gt;*&lt;/TD&gt; 
   &lt;TD&gt;&amp;nbsp;&lt;/TD&gt; 
   &lt;TD&gt;5&lt;/TD&gt; 
   &lt;TD&gt;&amp;nbsp;&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;&lt;STRONG&gt;output&lt;/STRONG&gt;&lt;/TD&gt; 
   &lt;TD&gt;Hrs&lt;/TD&gt; 
   &lt;TD&gt;&amp;nbsp;&lt;/TD&gt; 
   &lt;TD&gt;BigDecimal&lt;/TD&gt; 
   &lt;TD&gt;*&lt;/TD&gt; 
   &lt;TD&gt;*&lt;/TD&gt; 
   &lt;TD&gt;4&lt;/TD&gt; 
   &lt;TD&gt;4&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;&lt;BR /&gt;Bigdecimal Conversion logic is:&lt;BR /&gt;Relational.ISNULL(row1.Hours) ? new BigDecimal("0"):&lt;BR /&gt;StringHandling.LEN(row1.Hours) == 0 ? new BigDecimal("0"):&lt;BR /&gt;new BigDecimal(StringHandling.TRIM(row1.Hours))&lt;/P&gt; 
&lt;P&gt;The conversion logic is working perfectly as I am able to write data in a CSV file without issue.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;Input data:&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;Input Data as string&lt;/TD&gt; 
   &lt;TD&gt;Processed as BegDecimal&lt;/TD&gt; 
   &lt;TD&gt;Rejected In SQLInput&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;0.3&lt;/TD&gt; 
   &lt;TD&gt;0.3000&lt;/TD&gt; 
   &lt;TD&gt;&amp;nbsp;&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;0.8&lt;/TD&gt; 
   &lt;TD&gt;.8000&lt;/TD&gt; 
   &lt;TD&gt;&amp;nbsp;&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;1&lt;/TD&gt; 
   &lt;TD&gt;&amp;nbsp;&lt;/TD&gt; 
   &lt;TD&gt;rejected&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;4.3&lt;/TD&gt; 
   &lt;TD&gt;&amp;nbsp;&lt;/TD&gt; 
   &lt;TD&gt;rejected&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As per my understanding the isuue may be with the input schema setup for Hrs column or I have to&lt;BR /&gt;convert string to BigDecimal in a different way. It is able to process data incase of decimal values(0.3)&lt;/P&gt; 
&lt;P&gt;but failing to load data(1 or 4.3).&lt;/P&gt; 
&lt;P&gt;The error I am getting is in below at the time of writing to database:&lt;BR /&gt;Please advice:&lt;/P&gt; 
&lt;P&gt;[statistics] connected&lt;BR /&gt;Data truncation&lt;BR /&gt;[ERROR]: talend_default.t_input_file_0_1.t_input_file - tMSSqlOutput_1 - Data truncation&lt;BR /&gt;Data truncation&lt;BR /&gt;[ERROR]: talend_default.t_input_file_0_1.t_input_file - tMSSqlOutput_1 - Data truncation&lt;BR /&gt;Data truncation&lt;BR /&gt;Data truncation&lt;BR /&gt;[ERROR]: talend_default.t_input_file_0_1.t_input_file - tMSSqlOutput_1 - Data truncation&lt;BR /&gt;[ERROR]: talend_default.t_input_file_0_1.t_input_file - tMSSqlOutput_1 - Data truncation&lt;BR /&gt;Data truncation&lt;BR /&gt;Data truncation&lt;BR /&gt;[ERROR]: talend_default.t_input_file_0_1.t_input_file - tMSSqlOutput_1 - Data truncation&lt;BR /&gt;[ERROR]: talend_default.t_input_file_0_1.t_input_file - tMSSqlOutput_1 - Data truncation&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:48:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Bigdecimal-converted-data-failing-to-load-after-using-the/m-p/2308718#M80012</guid>
      <dc:creator>Tasfiahm</dc:creator>
      <dc:date>2024-11-16T07:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Bigdecimal converted data failing to load after using the tMSSqlConnection component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Bigdecimal-converted-data-failing-to-load-after-using-the/m-p/2308719#M80013</link>
      <description>what is your talend vession?&lt;BR /&gt;What is the sql format (SQL Table definition)!&lt;BR /&gt;&lt;BR /&gt;To solve your problem you can cast all your Bigdecimal as String. your database is going to cast from string to numeric.&lt;BR /&gt;&lt;BR /&gt;Regrads</description>
      <pubDate>Mon, 20 Aug 2018 15:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Bigdecimal-converted-data-failing-to-load-after-using-the/m-p/2308719#M80013</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-08-20T15:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Bigdecimal converted data failing to load after using the tMSSqlConnection component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Bigdecimal-converted-data-failing-to-load-after-using-the/m-p/2308720#M80014</link>
      <description>&lt;P&gt;I am not sure what is the problem at the time of converting the decimal point. I did a quick fix just change the data type from Bigdecimal to Float in database ([real] null&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; side. So instead&amp;nbsp;of Bigdecimal, I have to change the type to Float in talend. It is solved but should not have taken this alternative root. Bigdecimal in SQL database side failed to handle any value &amp;gt; .99.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 18:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Bigdecimal-converted-data-failing-to-load-after-using-the/m-p/2308720#M80014</guid>
      <dc:creator>Tasfiahm</dc:creator>
      <dc:date>2018-08-23T18:33:36Z</dc:date>
    </item>
  </channel>
</rss>

