<?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 Export CSV each column of data row in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Export-CSV-each-column-of-data-row/m-p/2298079#M70586</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a sample data:&lt;BR /&gt;Id, col1, col2 col3&lt;/P&gt;&lt;P&gt;1, value1, value2, value3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to check if any value of any column is matched with an other DB table shema by tSchemaComplianceCheck.&lt;/P&gt;&lt;P&gt;And I want to export the id, the name and the value of error column and error message.&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;"value1" is an invalid value because it's not an integer (the target schema is integer type), i want export a CSV row:&lt;/P&gt;&lt;P&gt;id, colName, value, errorMessage&lt;/P&gt;&lt;P&gt;1, col1, value1, Not an integer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if value of col2 is invalid too, then export a new CSV row append to the row exported before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give some suggestion. Thanks all.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2017 04:33:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-14T04:33:26Z</dc:date>
    <item>
      <title>Export CSV each column of data row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Export-CSV-each-column-of-data-row/m-p/2298079#M70586</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a sample data:&lt;BR /&gt;Id, col1, col2 col3&lt;/P&gt;&lt;P&gt;1, value1, value2, value3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to check if any value of any column is matched with an other DB table shema by tSchemaComplianceCheck.&lt;/P&gt;&lt;P&gt;And I want to export the id, the name and the value of error column and error message.&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;"value1" is an invalid value because it's not an integer (the target schema is integer type), i want export a CSV row:&lt;/P&gt;&lt;P&gt;id, colName, value, errorMessage&lt;/P&gt;&lt;P&gt;1, col1, value1, Not an integer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if value of col2 is invalid too, then export a new CSV row append to the row exported before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give some suggestion. Thanks all.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 04:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Export-CSV-each-column-of-data-row/m-p/2298079#M70586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-14T04:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Export CSV each column of data row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Export-CSV-each-column-of-data-row/m-p/2298080#M70587</link>
      <description>&lt;P&gt;Hello &lt;BR /&gt;The reject link of tSchemaComplianceCheck will has the output like&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 764px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvUQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146774i92E1EE158E249861/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvUQ.png" alt="0683p000009LvUQ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;after&amp;nbsp;&lt;SPAN&gt;tSchemaComplianceCheck, you can use a tExtractDelimitedFields to extract column name and error message from the errorMessage column, eg:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;tfileinputdelimited-main-tSchemaComplianceCheck--reject--tExtractDelimitedFields-row2-tMap--&amp;gt;tfileoutputdelimited&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;on tMap: set the expression of column_value column as:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;column_name.equals("c1")?row2.c1: (column_name.equals("c2")?row2.c2: (column_name.equals("c3")?row2.c3:row2.id))&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Shong&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 03:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Export-CSV-each-column-of-data-row/m-p/2298080#M70587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-15T03:02:50Z</dc:date>
    </item>
  </channel>
</rss>

