<?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: No data in file CSV in mail in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367879#M131209</link>
    <description>&lt;P&gt;Hello Bgunics,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works fine with the trigger 'OnComponentOk'. So what is the best practice in Talend so what is the difference between Main and the trigger ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However the job send mail the mail even I have 0 row in file error. &lt;/P&gt;&lt;P&gt;Do you know how to not send mail if no data in the tFileOutPutDelimited with the trigger 'IF'?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Sep 2021 07:54:39 GMT</pubDate>
    <dc:creator>Roman01</dc:creator>
    <dc:date>2021-09-21T07:54:39Z</dc:date>
    <item>
      <title>No data in file CSV in mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367877#M131207</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I develop a job talend for the invoices. I have an issue about to send a mail to inform the team that there are no invoice in the tMap with an inner join reject.&lt;/P&gt;&lt;P&gt;When I use the component TSendMail after a tfileOutPutDelimited, there are no data in my CSV file in the mail. ( pictures 01 and 02)&lt;/P&gt;&lt;P&gt;However, when I use a tFileInputDelimited and the tSendMail in an another job to test the csv file data in mail, I get the data in my CSV file in the mail... Do you know where is the problem ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, when I use the second job to only send mail, I received twice... (picture 05) Are there an option to send only one mail ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Romain.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367877#M131207</guid>
      <dc:creator>Roman01</dc:creator>
      <dc:date>2024-11-15T23:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: No data in file CSV in mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367878#M131208</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason for this behavior is because your CSV data isn't flushed to the disk when the e-mail is sent.&lt;/P&gt;&lt;P&gt;Are you trying to send 1 e-mail at the end of the workflow? Try to use OnComponentOK from the CSV output. Or even better use OnSubjobOK from the wf_FactureEnvoye input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you received 2 e-mails I think that is because you had 2 lines in your data flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A third behavior could be achieved by enabling "Output in row mode" under the Advanced settings of CSV. I think this will give you N e-mails, and the attachments would have 0,1,2...N records. &lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 07:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367878#M131208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-21T07:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: No data in file CSV in mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367879#M131209</link>
      <description>&lt;P&gt;Hello Bgunics,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works fine with the trigger 'OnComponentOk'. So what is the best practice in Talend so what is the difference between Main and the trigger ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However the job send mail the mail even I have 0 row in file error. &lt;/P&gt;&lt;P&gt;Do you know how to not send mail if no data in the tFileOutPutDelimited with the trigger 'IF'?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 07:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367879#M131209</guid>
      <dc:creator>Roman01</dc:creator>
      <dc:date>2021-09-21T07:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: No data in file CSV in mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367880#M131210</link>
      <description>&lt;P&gt;@Romain ADICEOM​&amp;nbsp;, there is a global variable that counts the total number processed rows, &lt;/P&gt;&lt;P&gt;((Integer)globalMap.get("tFileOutputDelimited_1_NB_LINE"))&lt;/P&gt;&lt;P&gt;You can use this variable to determine if sending the email or not. &lt;/P&gt;&lt;P&gt;....tFileOutputDelimited---runIf--tSendmail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set the condition of runIf as:&lt;/P&gt;&lt;P&gt;((Integer)globalMap.get("tFileOutputDelimited_1_NB_LINE"))&amp;gt;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 05:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367880#M131210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-22T05:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: No data in file CSV in mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367881#M131211</link>
      <description>&lt;P&gt;Thanks a lot @Shicong Hong​&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works fine. However, to understand this condition, is it include header count in global variable ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because I use also this another method to not send mail with a tFileRowCount and tJava :&lt;/P&gt;&lt;P&gt;Here, I have one row and when I do :&lt;/P&gt;&lt;P&gt;&amp;nbsp;((Integer)globalMap.get("tFileRowCount_1_COUNT"))==1 , it's written False and when I do this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;((Integer)globalMap.get("tFileRowCount_1_COUNT"))==2, it works fine, so I deduce this way include the header&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I right ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000JM4CQAA1.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146209iB655B5EF33CB2E45/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000JM4CQAA1.jpg" alt="0695b00000JM4CQAA1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 09:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367881#M131211</guid>
      <dc:creator>Roman01</dc:creator>
      <dc:date>2021-09-22T09:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: No data in file CSV in mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367882#M131212</link>
      <description>&lt;P&gt;yes, you can also use tFileRowCount to populate the number of lines after generating the output file, the global variable ((Integer)globalMap.get("tFileOutputDelimited_1_NB_LINE")) counts the number of processed rows (not includes header rows) are written into output file, I would like to use the global variable, as it is more convenient and understandable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 09:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367882#M131212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-22T09:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: No data in file CSV in mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367883#M131213</link>
      <description>&lt;P&gt;@Shicong Hong​&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this way works when the file is already written and use a tFileInputDelimited but in my job the flush is not finished. So I have still a false, I will try with a tJava and tFilterRowCount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000JM4JqAAL.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146910i027898E05A24E12F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000JM4JqAAL.jpg" alt="0695b00000JM4JqAAL.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 09:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367883#M131213</guid>
      <dc:creator>Roman01</dc:creator>
      <dc:date>2021-09-22T09:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: No data in file CSV in mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367884#M131214</link>
      <description>&lt;P&gt;Anyway, Thanks for your tips @Shicong Hong​&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 09:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367884#M131214</guid>
      <dc:creator>Roman01</dc:creator>
      <dc:date>2021-09-22T09:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: No data in file CSV in mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367885#M131215</link>
      <description>&lt;P&gt;Do you have any idea about this false ? I do not understand why is it not working... I have 2 rows in my file csv&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000JM4TqAAL.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140874iC3D8B98878A93F76/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000JM4TqAAL.jpg" alt="0695b00000JM4TqAAL.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 10:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367885#M131215</guid>
      <dc:creator>Roman01</dc:creator>
      <dc:date>2021-09-22T10:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: No data in file CSV in mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367886#M131216</link>
      <description>&lt;P&gt;For debugging, print the value of the global variable on tJava to see how many rows are processed? &lt;/P&gt;&lt;P&gt;It is a new file created or you append records to an existing file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 06:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367886#M131216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-23T06:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: No data in file CSV in mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367887#M131217</link>
      <description>&lt;P&gt;it is always in the same existing file but what is weird is the tJava return 0 line in the file instead of 2 lines...&lt;/P&gt;&lt;P&gt;I have the same problem when I want to modify tMap with new schema, I have null pointer exeception java...&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 09:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367887#M131217</guid>
      <dc:creator>Roman01</dc:creator>
      <dc:date>2021-10-05T09:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: No data in file CSV in mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367888#M131218</link>
      <description>&lt;P&gt;Make sure you use the right global variable on tJava_1. Can you share a screenshot of basic settings of tFileOutputDelimited?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 03:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/No-data-in-file-CSV-in-mail/m-p/2367888#M131218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-09T03:17:36Z</dc:date>
    </item>
  </channel>
</rss>

