<?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 Data Truncated Error During Insert in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Data-Truncated-Error-During-Insert/m-p/2226000#M18068</link>
    <description>I have a MySQL DB table with a variety of data types, but I am having trouble in particular with currency. I have tried changing the data type at the DB level and in Talend scripting to Float, Int, Decimal and most recently, Double. All data types have produced errors. Double is producing a "Data truncated for column 'Charges' at row 1". 
&lt;BR /&gt;What is the best data type to use for currency (need for sorting) and how can I get talend to insert the data? 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Jeff</description>
    <pubDate>Wed, 10 Oct 2012 00:09:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-10-10T00:09:36Z</dc:date>
    <item>
      <title>Data Truncated Error During Insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Truncated-Error-During-Insert/m-p/2226000#M18068</link>
      <description>I have a MySQL DB table with a variety of data types, but I am having trouble in particular with currency. I have tried changing the data type at the DB level and in Talend scripting to Float, Int, Decimal and most recently, Double. All data types have produced errors. Double is producing a "Data truncated for column 'Charges' at row 1". 
&lt;BR /&gt;What is the best data type to use for currency (need for sorting) and how can I get talend to insert the data? 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 10 Oct 2012 00:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Truncated-Error-During-Insert/m-p/2226000#M18068</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-10T00:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data Truncated Error During Insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Truncated-Error-During-Insert/m-p/2226001#M18069</link>
      <description>Hi,
&lt;BR /&gt;We have designed a demo job, you can take it into consideration. We set the data type of currency as "String" . see the pic to get the details.
&lt;BR /&gt;
&lt;BR /&gt;Best Regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 10 Oct 2012 03:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Truncated-Error-During-Insert/m-p/2226001#M18069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-10T03:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data Truncated Error During Insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Truncated-Error-During-Insert/m-p/2226002#M18070</link>
      <description>String works for the insert, but if you intend to sort your results by currency at the application side, it will sort as:&lt;BR /&gt;0.67&lt;BR /&gt;1.24&lt;BR /&gt;10.23&lt;BR /&gt;107.76&lt;BR /&gt;2.54&lt;BR /&gt;20.45&lt;BR /&gt;200.45&lt;BR /&gt;3.76&lt;BR /&gt;and on and on. Setting as an integer, float, double, decimal will allow sorting by true numeric value.</description>
      <pubDate>Wed, 10 Oct 2012 20:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Truncated-Error-During-Insert/m-p/2226002#M18070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-10T20:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Data Truncated Error During Insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Truncated-Error-During-Insert/m-p/2226003#M18071</link>
      <description>Hi, &lt;BR /&gt;Set the data type as Float and give a length to it.&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;What is the best data type to use for currency (need for sorting)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;See pics&lt;BR /&gt;Best Regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 11 Oct 2012 03:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Truncated-Error-During-Insert/m-p/2226003#M18071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-11T03:28:23Z</dc:date>
    </item>
  </channel>
</rss>

