<?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 [resolved] how to replace in a field when the row separator is also in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321193#M91253</link>
    <description>Hello, 
&lt;BR /&gt;I have a delimited file (field separator "\t", row separator "\n") looking like : 
&lt;BR /&gt;1 
&lt;B&gt;\t&lt;/B&gt;blue 
&lt;B&gt;\t&lt;/B&gt;apple 
&lt;B&gt;\n&lt;/B&gt; 
&lt;BR /&gt;2 
&lt;B&gt;\t&lt;/B&gt;red 
&lt;B&gt;\n&lt;/B&gt; 
&lt;BR /&gt; 
&lt;B&gt;\t&lt;/B&gt;peer 
&lt;B&gt;\n&lt;/B&gt; 
&lt;BR /&gt;tFileInputDelimited will fail on line 2 ... 
&lt;BR /&gt;So my idea was to replace the row separator so I will be able to replace \n by "" in the field. Bbut I didn't found a component for that 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;regards</description>
    <pubDate>Sat, 16 Nov 2024 12:33:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:33:57Z</dc:date>
    <item>
      <title>[resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321193#M91253</link>
      <description>Hello, 
&lt;BR /&gt;I have a delimited file (field separator "\t", row separator "\n") looking like : 
&lt;BR /&gt;1 
&lt;B&gt;\t&lt;/B&gt;blue 
&lt;B&gt;\t&lt;/B&gt;apple 
&lt;B&gt;\n&lt;/B&gt; 
&lt;BR /&gt;2 
&lt;B&gt;\t&lt;/B&gt;red 
&lt;B&gt;\n&lt;/B&gt; 
&lt;BR /&gt; 
&lt;B&gt;\t&lt;/B&gt;peer 
&lt;B&gt;\n&lt;/B&gt; 
&lt;BR /&gt;tFileInputDelimited will fail on line 2 ... 
&lt;BR /&gt;So my idea was to replace the row separator so I will be able to replace \n by "" in the field. Bbut I didn't found a component for that 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;regards</description>
      <pubDate>Sat, 16 Nov 2024 12:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321193#M91253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321194#M91254</link>
      <description>You want to replace the \n of the second line, the one in the middle?</description>
      <pubDate>Thu, 17 Nov 2011 15:39:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321194#M91254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-17T15:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321195#M91255</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;You want to replace the \n of the second line, the one in the middle?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;I have modified line 2 in my post to reflect what's real</description>
      <pubDate>Thu, 17 Nov 2011 15:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321195#M91255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-17T15:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321196#M91256</link>
      <description>So actually it's not really a tFileDelimited. Do you have only 2 columns?</description>
      <pubDate>Thu, 17 Nov 2011 15:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321196#M91256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-17T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321197#M91257</link>
      <description>no the file have 15 columns</description>
      <pubDate>Thu, 17 Nov 2011 16:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321197#M91257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-17T16:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321198#M91258</link>
      <description>But I don't really get it. Could you post a part of what you have and what you want?</description>
      <pubDate>Thu, 17 Nov 2011 16:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321198#M91258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-17T16:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321199#M91259</link>
      <description>in my example the expected result will be :&lt;BR /&gt;1&lt;B&gt;\t&lt;/B&gt;blue&lt;B&gt;\t&lt;/B&gt;apple&lt;B&gt;\n&lt;/B&gt;&lt;BR /&gt;2&lt;B&gt;\t&lt;/B&gt;red&lt;B&gt;\t&lt;/B&gt;peer&lt;B&gt;\n&lt;/B&gt;</description>
      <pubDate>Thu, 17 Nov 2011 16:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321199#M91259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-17T16:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321200#M91260</link>
      <description>But why the first line has the right format?</description>
      <pubDate>Thu, 17 Nov 2011 16:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321200#M91260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-17T16:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321201#M91261</link>
      <description>Because it has been entered correctly in the frontend application I guess
&lt;BR /&gt;In line 2 the operator hit the return key by accident</description>
      <pubDate>Thu, 17 Nov 2011 16:30:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321201#M91261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-17T16:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321202#M91262</link>
      <description>So sometimes you want to replace the \n, sometimes not?</description>
      <pubDate>Thu, 17 Nov 2011 16:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321202#M91262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-17T16:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321203#M91263</link>
      <description>You neet to replace \n\t with \t anywhere in the file.</description>
      <pubDate>Thu, 17 Nov 2011 16:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321203#M91263</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2011-11-17T16:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321204#M91264</link>
      <description>there's no \n\t in the file. Only "string\t..." and "...string\n"
&lt;BR /&gt;and BTW there could be more than one \n (...string\n\n\n) at a time because the field has been designed as multi line in the front end app ... 
&lt;BR /&gt;Regards
&lt;BR /&gt;Didier</description>
      <pubDate>Thu, 17 Nov 2011 19:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321204#M91264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-17T19:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321205#M91265</link>
      <description>There's a \n\t in your example.</description>
      <pubDate>Fri, 18 Nov 2011 09:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321205#M91265</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2011-11-18T09:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321206#M91266</link>
      <description>janhess, 
&lt;BR /&gt;I agree with you. 
&lt;BR /&gt;I think I haven't gave enough explanations to understand my problem. 
&lt;BR /&gt;So : 
&lt;BR /&gt;actually the file I'm trying to load is handled by Microsoft bcp utility. bcp doesn't care of misplaced CRLF. What I have understood is bcp seams to ignore the row separator so a row can be on several lines in the file, bcp loads the data using the field delimiter until the en of the file. 
&lt;BR /&gt; 
&lt;BR /&gt;What I need is to reproduce this with Talend 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 18 Nov 2011 09:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321206#M91266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-18T09:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321207#M91267</link>
      <description>Upload somewhere the file and post http link to it. Would be best option look at the real data.&lt;BR /&gt;Ladislav</description>
      <pubDate>Fri, 18 Nov 2011 09:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321207#M91267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-18T09:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321208#M91268</link>
      <description>See screenshot.&lt;BR /&gt;At line 34543 the field 10 (3 - Tchaïkovski: Lac des cygnes...) contains multiple CRLF. the real row separator is at line 34549. The schema contains 16 columns.&lt;BR /&gt;&lt;BR /&gt;Hope that helps</description>
      <pubDate>Fri, 18 Nov 2011 10:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321208#M91268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-18T10:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321209#M91269</link>
      <description>Can you make your line break the NULCRLF?</description>
      <pubDate>Fri, 18 Nov 2011 11:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321209#M91269</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2011-11-18T11:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321210#M91270</link>
      <description>I see.. there is also the NULL character. So in content of file it seems there is always only CRLF, but end of line is always defined as NULCRLF sequence. You schould first read whole file to a String variable and do something like in tJavaRow:
&lt;BR /&gt;
&lt;PRE&gt;// Make custom end of lines with char sequence "~$"&lt;BR /&gt;context.sWholeFile = context.sWholeFile.replace("\0\r\n","~$" );&lt;BR /&gt;// Remove CRLF from content of file&lt;BR /&gt;context.sWholeFile = context.sWholeFile.replace("\r\n","" );&lt;BR /&gt;// Create Windows standard end of line&lt;BR /&gt;context.sWholeFile = context.sWholeFile.replace("~$","\r\n" );&lt;/PRE&gt;
&lt;BR /&gt;Ladislav</description>
      <pubDate>Fri, 18 Nov 2011 11:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321210#M91270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-18T11:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321211#M91271</link>
      <description>Or you could make the separator \0\r\n and replace the \r\n in a tMap on the field.</description>
      <pubDate>Fri, 18 Nov 2011 11:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321211#M91271</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2011-11-18T11:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to replace in a field when the row separator is also</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321212#M91272</link>
      <description>sorry but the end of row is not still NULL CR LF</description>
      <pubDate>Fri, 18 Nov 2011 12:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-replace-in-a-field-when-the-row-separator-is/m-p/2321212#M91272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-18T12:34:57Z</dc:date>
    </item>
  </channel>
</rss>

