<?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: Management of processing file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Management-of-processing-file/m-p/2345977#M113429</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand the usage of the component tFixedFlow because it haven't directory, so I used this solution :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFileList_1 :&lt;/P&gt;&lt;P&gt;Directory : "D:/_users/BMI/test"&lt;/P&gt;&lt;P&gt;Files : "*.dat"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFileInputDelimitedt_1 :&lt;/P&gt;&lt;P&gt;Flow's name :&lt;/P&gt;&lt;PRE&gt;((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFilterRow_1 :&lt;/P&gt;&lt;P&gt;column0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vide&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vaut&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Climat = Froid"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF :&lt;/P&gt;&lt;P&gt;Condition :&lt;/P&gt;&lt;PRE&gt;((Interger)globalMap.get("tFilterRow_1_NB_LINE_OK")) &amp;gt; 0&lt;/PRE&gt;&lt;P&gt;tFileCopy_1 :&lt;/P&gt;&lt;P&gt;File's name :&lt;/P&gt;&lt;PRE&gt;((String)globalMap.get("tFileDelimited_1_CURRENT_FILEPATH"))&lt;/PRE&gt;&lt;P&gt;Directory : "D:/_users/BMI/test2"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I execute my job, I have the message :&lt;/P&gt;&lt;PRE&gt;Démarrage du job experience a 13:25 24/07/2017.
[statistics] connecting to socket on port 3545
[statistics] connected
Exception in component tFileCopy_1
java.lang.NullPointerException
	at java.io.File.&amp;lt;init&amp;gt;(Unknown Source)
	at freqnum_bm.experience_0_1.experience.tFileCopy_1Process(experience.java:1491)
	at freqnum_bm.experience_0_1.experience.tFileList_1Process(experience.java:1355)
	at freqnum_bm.experience_0_1.experience.runJobInTOS(experience.java:1776)
	at freqnum_bm.experience_0_1.experience.main(experience.java:1633)
[statistics] disconnected
Job experience terminé à 13:25 24/07/2017. [Code sortie=1]&lt;/PRE&gt;&lt;P&gt;PS: my Talend Open Studio is in French.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;BastienM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2017 12:38:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-24T12:38:38Z</dc:date>
    <item>
      <title>Management of processing file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Management-of-processing-file/m-p/2345973#M113425</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an issue of a technical process and I don't find a solution on the web.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a folder including numerous DAT files in the format CSV, however all are not useful for me. For that purpose, I wish to read a case (cell) of these (all have the same formatting) then according to the result. I decide or not to copy this file somewhere else with the same name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;File example :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Name: 2015-07-06 Seq_001&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Date=06072015_174419&lt;/P&gt;
&lt;P&gt;Plage= 1000Hz à 10000Hz&lt;/P&gt;
&lt;P&gt;Climat = Froid&lt;/P&gt;
&lt;P&gt;Commentaire = Commentaire&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Information…&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They are 3 types of climat : Climat &amp;nbsp;= Chaud or Climat = Ambiant, and it's this case that I want to see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Solution&amp;nbsp; :&lt;/P&gt;
&lt;P&gt;tFileList&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Directory: «&amp;nbsp;D:/_users/BMI/Test&amp;nbsp;»&lt;/P&gt;
&lt;P&gt;&amp;nbsp; «&amp;nbsp;*.csv&amp;nbsp;»&lt;/P&gt;
&lt;P&gt;tFileDelimited&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Flow's name : ((String)globalMap.get(“tFile_CURRENT_FILEPATH&amp;nbsp;»)).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't find any idea for the contuation, can you help me ?&lt;/P&gt;
&lt;P&gt;While waiting, I continue to search.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;BastienM&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 09:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Management-of-processing-file/m-p/2345973#M113425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-24T09:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Management of processing file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Management-of-processing-file/m-p/2345974#M113426</link>
      <description>&lt;P&gt;Hi Bastien,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Configure the tFileInputDelimited like this to&amp;nbsp;read only the 3rd line:&lt;/P&gt; 
&lt;P&gt;- Field separator = "="&lt;/P&gt; 
&lt;P&gt;- Header = 2&lt;/P&gt; 
&lt;P&gt;- Limit = 1&lt;/P&gt; 
&lt;P&gt;Set the schema as FieldName string and FieldValue string.&lt;/P&gt; 
&lt;P&gt;Add a tFilterRow after&amp;nbsp;&lt;SPAN&gt;tFileInputDelimited&amp;nbsp;and configure it like this:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvZF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145317iF38C53E1BCCFA960/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvZF.png" alt="0683p000009LvZF.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Connect tFilterRow to tLogRow to see the result, you should receive only the desired records.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 10:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Management-of-processing-file/m-p/2345974#M113426</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-07-24T10:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Management of processing file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Management-of-processing-file/m-p/2345975#M113427</link>
      <description>&lt;P&gt;Hi TRF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, I want to check this result, but my final aim is to copy this file with the same name with tFileCopy or an another component.&lt;/P&gt;&lt;P&gt;So, how I can access at this achievement with the result of tFilterRow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;BastienM&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 10:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Management-of-processing-file/m-p/2345975#M113427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-24T10:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Management of processing file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Management-of-processing-file/m-p/2345976#M113428</link>
      <description>&lt;P&gt;Connect tFileCopy to tFilterRow using a "If" trigger like this:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 426px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lveh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130349iCF31C276BE6D15FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lveh.png" alt="0683p000009Lveh.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;and write the condition like this:&lt;/P&gt; 
&lt;PRE&gt;((Integer)globalMap.get("tFilterRow_1_NB_LINE_OK")) &amp;gt; 0&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;The copy will apply only if 1 record is equal to "Ambiant".&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Management-of-processing-file/m-p/2345976#M113428</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-07-24T11:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Management of processing file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Management-of-processing-file/m-p/2345977#M113429</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand the usage of the component tFixedFlow because it haven't directory, so I used this solution :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFileList_1 :&lt;/P&gt;&lt;P&gt;Directory : "D:/_users/BMI/test"&lt;/P&gt;&lt;P&gt;Files : "*.dat"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFileInputDelimitedt_1 :&lt;/P&gt;&lt;P&gt;Flow's name :&lt;/P&gt;&lt;PRE&gt;((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFilterRow_1 :&lt;/P&gt;&lt;P&gt;column0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vide&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vaut&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Climat = Froid"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF :&lt;/P&gt;&lt;P&gt;Condition :&lt;/P&gt;&lt;PRE&gt;((Interger)globalMap.get("tFilterRow_1_NB_LINE_OK")) &amp;gt; 0&lt;/PRE&gt;&lt;P&gt;tFileCopy_1 :&lt;/P&gt;&lt;P&gt;File's name :&lt;/P&gt;&lt;PRE&gt;((String)globalMap.get("tFileDelimited_1_CURRENT_FILEPATH"))&lt;/PRE&gt;&lt;P&gt;Directory : "D:/_users/BMI/test2"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I execute my job, I have the message :&lt;/P&gt;&lt;PRE&gt;Démarrage du job experience a 13:25 24/07/2017.
[statistics] connecting to socket on port 3545
[statistics] connected
Exception in component tFileCopy_1
java.lang.NullPointerException
	at java.io.File.&amp;lt;init&amp;gt;(Unknown Source)
	at freqnum_bm.experience_0_1.experience.tFileCopy_1Process(experience.java:1491)
	at freqnum_bm.experience_0_1.experience.tFileList_1Process(experience.java:1355)
	at freqnum_bm.experience_0_1.experience.runJobInTOS(experience.java:1776)
	at freqnum_bm.experience_0_1.experience.main(experience.java:1633)
[statistics] disconnected
Job experience terminé à 13:25 24/07/2017. [Code sortie=1]&lt;/PRE&gt;&lt;P&gt;PS: my Talend Open Studio is in French.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;BastienM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 12:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Management-of-processing-file/m-p/2345977#M113429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-24T12:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Management of processing file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Management-of-processing-file/m-p/2345978#M113430</link>
      <description>&lt;P&gt;I find my issue, now I test for 2 results. I contact you if I have an another issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;BastienM&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 12:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Management-of-processing-file/m-p/2345978#M113430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-24T12:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Management of processing file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Management-of-processing-file/m-p/2345979#M113431</link>
      <description>You're welcome.&lt;BR /&gt;Don't forget to mark the topic as solved if it is (for people searching for the same subject).&lt;BR /&gt;Kudos also accepted!</description>
      <pubDate>Mon, 24 Jul 2017 13:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Management-of-processing-file/m-p/2345979#M113431</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-07-24T13:15:01Z</dc:date>
    </item>
  </channel>
</rss>

