<?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: Output form various components ignores field length in schema in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Output-form-various-components-ignores-field-length-in-schema/m-p/2315088#M85786</link>
    <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;When it gets to the tMSSQLOutput, I get:&lt;BR /&gt;Exception in component tMSSqlOutput_1&lt;BR /&gt;java.sql.BatchUpdateException: Data truncation&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi 
&lt;BR /&gt;Is the table created on tMysqlOutput component or it is created out of Talend studio. To fix the problem, 
&lt;BR /&gt;I. Trim the incoming data in job if you want to keep the table structure. 
&lt;BR /&gt;II. Alter the table to increase the length of column. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Thu, 19 Apr 2012 05:58:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-04-19T05:58:52Z</dc:date>
    <item>
      <title>Output form various components ignores field length in schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Output-form-various-components-ignores-field-length-in-schema/m-p/2315086#M85784</link>
      <description>I have several components that pass data through - tLogrow, tFileOutputDelimited, tFilterColumns, etc. I have the schema set such that the fields have a specific length. One of the fields has a length of 120 at the beginning of the data flow, and in the schema I set the length to 40. However, the data passing through the component ignores this data length.
&lt;BR /&gt;Example, I have a tSalesForceInput that grabs data from salesforce.com. One of the fields has a length of about 120. I run it through a tLogRow to log to console, through a tFilterColumns to filter out some of the columns, through another tLogRow, and finally into a tMSSQLOutput to load the data into a MSSQL table. In every one of these components, I specify a length of 40 in the schema.
&lt;BR /&gt;When it gets to the tMSSQLOutput, I get:
&lt;BR /&gt;Exception in component tMSSqlOutput_1
&lt;BR /&gt;java.sql.BatchUpdateException: Data truncation
&lt;BR /&gt;I look at the data being logged to console, and I find that the data is ignoring the length specified in the schema, but is going through with the original length that it has when retrieved from the data source.
&lt;BR /&gt;Is it supposed to do this? Why can we specify data lengths in the schema, if not to enforce the length of the field?
&lt;BR /&gt;I know how to trim the data to prevent this, but I'm not understanding the purpose of being able to specify a field length in the schema.</description>
      <pubDate>Sat, 16 Nov 2024 12:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Output-form-various-components-ignores-field-length-in-schema/m-p/2315086#M85784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Output form various components ignores field length in schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Output-form-various-components-ignores-field-length-in-schema/m-p/2315087#M85785</link>
      <description>Hi&lt;BR /&gt;The usage of column length is to trim the excess content by tSchemaComplianceCheck or to create a new DB table when using tXXXDBOutput components.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 19 Apr 2012 04:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Output-form-various-components-ignores-field-length-in-schema/m-p/2315087#M85785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-19T04:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Output form various components ignores field length in schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Output-form-various-components-ignores-field-length-in-schema/m-p/2315088#M85786</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;When it gets to the tMSSQLOutput, I get:&lt;BR /&gt;Exception in component tMSSqlOutput_1&lt;BR /&gt;java.sql.BatchUpdateException: Data truncation&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi 
&lt;BR /&gt;Is the table created on tMysqlOutput component or it is created out of Talend studio. To fix the problem, 
&lt;BR /&gt;I. Trim the incoming data in job if you want to keep the table structure. 
&lt;BR /&gt;II. Alter the table to increase the length of column. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 19 Apr 2012 05:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Output-form-various-components-ignores-field-length-in-schema/m-p/2315088#M85786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-19T05:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Output form various components ignores field length in schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Output-form-various-components-ignores-field-length-in-schema/m-p/2315089#M85787</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Hi&lt;BR /&gt;The usage of column length is to trim the excess content by tSchemaComplianceCheck or to create a new DB table when using tXXXDBOutput components.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;So would it to be correct to say that many components simply ignore this?</description>
      <pubDate>Thu, 19 Apr 2012 17:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Output-form-various-components-ignores-field-length-in-schema/m-p/2315089#M85787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-19T17:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Output form various components ignores field length in schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Output-form-various-components-ignores-field-length-in-schema/m-p/2315090#M85788</link>
      <description>Hi&lt;BR /&gt;Yes. Usually column length in schema won't truncate data automatically. &lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 20 Apr 2012 02:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Output-form-various-components-ignores-field-length-in-schema/m-p/2315090#M85788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-20T02:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Output form various components ignores field length in schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Output-form-various-components-ignores-field-length-in-schema/m-p/2315091#M85789</link>
      <description>I raised this issue as an enhancement request but never heard anything from it. 
&lt;BR /&gt;I think the data length should be automaticvcally checked against the schema field length and truncated if too large. A warning could be issued.</description>
      <pubDate>Fri, 20 Apr 2012 09:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Output-form-various-components-ignores-field-length-in-schema/m-p/2315091#M85789</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-04-20T09:21:05Z</dc:date>
    </item>
  </channel>
</rss>

