<?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: Reading new line in excel files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Reading-new-line-in-excel-files/m-p/2242140#M29058</link>
    <description>I think taht ther is no way to remove new lines characters in tfileinput.
&lt;BR /&gt;but you can remove new lines in a tjavaFlex (high level) or set coma in csv.</description>
    <pubDate>Tue, 28 Aug 2018 09:32:41 GMT</pubDate>
    <dc:creator>fdenis</dc:creator>
    <dc:date>2018-08-28T09:32:41Z</dc:date>
    <item>
      <title>Reading new line in excel files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-new-line-in-excel-files/m-p/2242139#M29057</link>
      <description>&lt;P&gt;I have created an ETL job that reads an excel file sheet and writes the content of the sheet to a CSV file. As I don't know the schema of the sheet at the time of reading the file, I use "Dynamic" schema.&lt;/P&gt;
&lt;P&gt;The excel file I read has newline characters in some&amp;nbsp;columns which is causing an issue while reading later in the job the generated CSV file from it.&lt;/P&gt;
&lt;P&gt;Is there a way to remove/replace new line characters while reading an excel file using tFileInputExcel component with schema specified as "Dynamic"?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-new-line-in-excel-files/m-p/2242139#M29057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reading new line in excel files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-new-line-in-excel-files/m-p/2242140#M29058</link>
      <description>I think taht ther is no way to remove new lines characters in tfileinput.
&lt;BR /&gt;but you can remove new lines in a tjavaFlex (high level) or set coma in csv.</description>
      <pubDate>Tue, 28 Aug 2018 09:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-new-line-in-excel-files/m-p/2242140#M29058</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-08-28T09:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reading new line in excel files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-new-line-in-excel-files/m-p/2242141#M29059</link>
      <description>&lt;P&gt;Got a way to do it!&lt;/P&gt;&lt;P&gt;I simply put a tJavaRow component between the input and output components.&lt;/P&gt;&lt;P&gt;And in the java component put the following code:&lt;/P&gt;&lt;PRE&gt;routines.system.Dynamic dynamic = input_row.newColumn;

for (int colIdx = 0; colIdx &amp;lt; dynamic.getColumnCount(); colIdx++) {
	Object dynamicValue = dynamic.getColumnValue(colIdx);
	if (dynamicValue instanceof String) {
	String stringValue = (String)dynamicValue ;
	stringValue = stringValue.replaceAll("\\n", "|");
	dynamic.setColumnValue(colIdx, stringValue);
	}
}

output_row.newColumn = dynamic;&lt;/PRE&gt;&lt;P&gt;And it's done!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 12:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-new-line-in-excel-files/m-p/2242141#M29059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-28T12:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reading new line in excel files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-new-line-in-excel-files/m-p/2242142#M29060</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKpMAAW"&gt;@fdenis&lt;/A&gt;&amp;nbsp;Iused tJavaRow instead of tJavaFlex.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 12:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-new-line-in-excel-files/m-p/2242142#M29060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-28T12:28:36Z</dc:date>
    </item>
  </channel>
</rss>

