<?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: Include line number in a csv rejects in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Include-line-number-in-a-csv-rejects/m-p/2198713#M1928</link>
    <description>You have to do the same tMap for your error stream:
&lt;BR /&gt;The first parameter of "Numeric.Sequence", in your example "s1" defines the sequence itself. So the numer would be incremented on the main and the reject stream.
&lt;BR /&gt;Bye
&lt;BR /&gt;Volker</description>
    <pubDate>Tue, 01 Apr 2008 22:10:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-04-01T22:10:03Z</dc:date>
    <item>
      <title>Include line number in a csv rejects</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Include-line-number-in-a-csv-rejects/m-p/2198711#M1926</link>
      <description>Hi, 
&lt;BR /&gt;I'm working on a simple job (i attached a screenshot) : 
&lt;BR /&gt; - I've got a csv file with a schema composed of only string fields except one which is a Date. 
&lt;BR /&gt; - Then, a Tmap convert this csv file into an xml file. As you can see on the second picture below showing the mapping, the inputs fields are just transfered to the output fields. There are only two actions made in the mapping : 
&lt;BR /&gt; 1) Convert the date format of the date field. 
&lt;BR /&gt; 2) Create a new output field using the numeric sequence function in order to add a line number to each input row. 
&lt;BR /&gt; - To finish, i've got a Tlogrow that receives the rows rejected by the csv file. In this case, the rejects can only come from an unparseble date in my date field (cause every other fields are Strings). 
&lt;BR /&gt; 
&lt;BR /&gt;I would like to had an information to the rejects row : the line number. The point is that the line number is calculate or informed only if the row goes into the Tmap with the sequence function. But the row is rejected before the Tmap, so i don't have this information. 
&lt;BR /&gt;I guess that the rows are processed one by one, isn't it ? Thus, the iteration counter used by the sequence function may be saved in a global variable somewhere. Is it possible to manually read or increment the value of this variable ? 
&lt;BR /&gt;Actually the question is, how could i do to add the line number to the rejects rows if i don't have this information in my csv file ? 
&lt;BR /&gt;Regards, 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC0A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139890iEC88CE1A57C4D8EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC0A.png" alt="0683p000009MC0A.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC0F.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158230i1CE79BF125836513/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC0F.png" alt="0683p000009MC0F.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 14:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Include-line-number-in-a-csv-rejects/m-p/2198711#M1926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Include line number in a csv rejects</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Include-line-number-in-a-csv-rejects/m-p/2198712#M1927</link>
      <description>the easiest way is to create a temporary file which is a copy of your file with a new column.</description>
      <pubDate>Tue, 01 Apr 2008 11:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Include-line-number-in-a-csv-rejects/m-p/2198712#M1927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-01T11:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Include line number in a csv rejects</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Include-line-number-in-a-csv-rejects/m-p/2198713#M1928</link>
      <description>You have to do the same tMap for your error stream:
&lt;BR /&gt;The first parameter of "Numeric.Sequence", in your example "s1" defines the sequence itself. So the numer would be incremented on the main and the reject stream.
&lt;BR /&gt;Bye
&lt;BR /&gt;Volker</description>
      <pubDate>Tue, 01 Apr 2008 22:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Include-line-number-in-a-csv-rejects/m-p/2198713#M1928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-01T22:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Include line number in a csv rejects</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Include-line-number-in-a-csv-rejects/m-p/2198714#M1929</link>
      <description>Hi, 
&lt;BR /&gt;Thanks for your answers 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 02 Apr 2008 10:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Include-line-number-in-a-csv-rejects/m-p/2198714#M1929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-02T10:46:15Z</dc:date>
    </item>
  </channel>
</rss>

