<?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: tMap not preserving field lengths in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-not-preserving-field-lengths/m-p/2372811#M135604</link>
    <description>You will need to do the truncation as part of the map rule. Use the LEFT function.</description>
    <pubDate>Fri, 14 Oct 2011 09:06:40 GMT</pubDate>
    <dc:creator>janhess</dc:creator>
    <dc:date>2011-10-14T09:06:40Z</dc:date>
    <item>
      <title>tMap not preserving field lengths</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-not-preserving-field-lengths/m-p/2372809#M135602</link>
      <description>Running in TOS v4.2.2
&lt;BR /&gt;OS = Windows Server Enterprise 2007
&lt;BR /&gt;I have a tFileInputDelimited on the left, and a tFileOutputPositional on the right. When the data length in a (delimited) field from the input exceeds the destination field length, it is not truncated (as it should be), it's brought over intact, which mis-aligns everything else in the output record from that point onward.
&lt;BR /&gt;I've tried defining field lengths in the delimited (input) side of the tMap, to match field lengths on the output, to no avail.</description>
      <pubDate>Sat, 16 Nov 2024 12:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-not-preserving-field-lengths/m-p/2372809#M135602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: tMap not preserving field lengths</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-not-preserving-field-lengths/m-p/2372810#M135603</link>
      <description>I haven't gotten any response on this, it's affecting our production.  Could I please get any helpful suggestions on this?  Am I missing something obvious as to why this is/might be happening?&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 13 Oct 2011 20:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-not-preserving-field-lengths/m-p/2372810#M135603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-13T20:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: tMap not preserving field lengths</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-not-preserving-field-lengths/m-p/2372811#M135604</link>
      <description>You will need to do the truncation as part of the map rule. Use the LEFT function.</description>
      <pubDate>Fri, 14 Oct 2011 09:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-not-preserving-field-lengths/m-p/2372811#M135604</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2011-10-14T09:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: tMap not preserving field lengths</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-not-preserving-field-lengths/m-p/2372812#M135605</link>
      <description>That means, to safeguard my output, I'll have to manually truncate the input for every target field when using a tMap like this. That seems like a pretty serious TOS design flaw. Why bother specifying field lengths for tFileOutputPositional schemas if the runtime is going to ignore them by default when populating the fields? It's not exactly an improvement in developer productivity.
&lt;BR /&gt;Not to mention, will using the LEFT function like that cause StringIndexOutOfBoundsExceptions when the data is less than the maximum target length?</description>
      <pubDate>Fri, 14 Oct 2011 13:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-not-preserving-field-lengths/m-p/2372812#M135605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-14T13:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: tMap not preserving field lengths</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-not-preserving-field-lengths/m-p/2372813#M135606</link>
      <description>In tFileOutputPosition you should have the option "keep" for columns, you should change it to "left".&lt;BR /&gt;Or you could use a tSchemaComplianceCheck component. No need to do it all for yourself in a tMap, except if you have many columns - a tSchemaComplianceCheck then easy busts the 65k byte of a method.</description>
      <pubDate>Fri, 14 Oct 2011 13:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-not-preserving-field-lengths/m-p/2372813#M135606</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-10-14T13:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: tMap not preserving field lengths</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-not-preserving-field-lengths/m-p/2372814#M135607</link>
      <description>Sorry forgot about that. I was thinking around tFileOutputDelimited</description>
      <pubDate>Fri, 14 Oct 2011 14:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-not-preserving-field-lengths/m-p/2372814#M135607</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2011-10-14T14:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: tMap not preserving field lengths</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-not-preserving-field-lengths/m-p/2372815#M135608</link>
      <description>OK, so it was right under my nose, which explains why I missed it.  Changing the Keep setting for every target column from All to Left did the trick.&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 14 Oct 2011 15:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-not-preserving-field-lengths/m-p/2372815#M135608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-14T15:49:24Z</dc:date>
    </item>
  </channel>
</rss>

