<?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 Read string column as CSV file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Read-string-column-as-CSV-file/m-p/2485911#M141366</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm currently working on a job which calls an API that returns a String which is actually a CSV file. To read the CSV file properly the job currently creates a temporary file, writes the string in the temp file and then reads from it.&lt;/P&gt;
&lt;P&gt;I'd like to know if I can somehow convert the string to the CSV schema (more) directly.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2024 13:49:40 GMT</pubDate>
    <dc:creator>VictorFaure</dc:creator>
    <dc:date>2024-10-08T13:49:40Z</dc:date>
    <item>
      <title>Read string column as CSV file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-string-column-as-CSV-file/m-p/2485911#M141366</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm currently working on a job which calls an API that returns a String which is actually a CSV file. To read the CSV file properly the job currently creates a temporary file, writes the string in the temp file and then reads from it.&lt;/P&gt;
&lt;P&gt;I'd like to know if I can somehow convert the string to the CSV schema (more) directly.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 13:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-string-column-as-CSV-file/m-p/2485911#M141366</guid>
      <dc:creator>VictorFaure</dc:creator>
      <dc:date>2024-10-08T13:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Read string column as CSV file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-string-column-as-CSV-file/m-p/2486661#M141396</link>
      <description>&lt;P&gt;I thought the solution below (in attachment the screenshot:&lt;/P&gt;
&lt;P&gt;tJavaFlex: it simulates a file CSV as string&lt;/P&gt;
&lt;P&gt;tNormalize: it splits the tJavaFlex's output by LF character (\n). You get every single row of CSV.&lt;/P&gt;
&lt;P&gt;tExtractDelimitedFields: it splits each row by character ";" and you get every field of row&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eventually, you need to remove double quote from string but it will be easy to do.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Components configuration&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;tJavaFlex:&amp;nbsp;&lt;/STRONG&gt;row5.contentFile="headerCol1;headerCol2;headerCol3\n\"text11\";\"text12\";\"text13\"\n\"text21\";\"text22\";\"text23\"\n\"text31\";\"text32\";\"text33\"\n\"text41\";\"text42\";\"text43\"\n";&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;tNormalize: &lt;/STRONG&gt;set&amp;nbsp;delimiter as "\n" and you have to flag "Discard the trailing empty strings" in Advanced settings, this is useful whether your file close as "\n" character.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;tExtractDelimitedFields:&lt;/STRONG&gt;&amp;nbsp;set "fields separator" as ";", flag check every row structure of schema.&lt;/P&gt;
&lt;P&gt;The schema output have every single field.&lt;/P&gt;
&lt;P&gt;I hope this is useful.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 21:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-string-column-as-CSV-file/m-p/2486661#M141396</guid>
      <dc:creator>fcolagiacomo</dc:creator>
      <dc:date>2024-10-11T21:21:23Z</dc:date>
    </item>
  </channel>
</rss>

