<?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: Send an e-mail when a job is started with rows count in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316179#M86752</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000AccdxAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136797i563370F5012DCFDE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000AccdxAAB.png" alt="0693p00000AccdxAAB.png" /&gt;&lt;/span&gt;@Stefano Milziadi​&amp;nbsp;yes i tried it by myself also and facing the same issue when using a java component in the flow not with other output components.&lt;/P&gt;&lt;P&gt;I don't know if you like the new solution or not but what you can do,&lt;/P&gt;&lt;P&gt;after JavaFlex use tBufferOutput, then create a onSubJobOk link from tWebService and then use tBufferInput and then attach the next flow from tBufferInput.&lt;/P&gt;&lt;P&gt; just like I did and in place of tJava_1 there will be the email component.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2020 13:13:56 GMT</pubDate>
    <dc:creator>Prakhar1</dc:creator>
    <dc:date>2020-12-30T13:13:56Z</dc:date>
    <item>
      <title>Send an e-mail when a job is started with rows count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316174#M86747</link>
      <description>&lt;P&gt;Hi everybody!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created my first pipeline with Talend Studio. This is a really simple flow, where I get some data from a web service, i transform that data before making an upsert to a Microsoft SQL database.&lt;/P&gt;&lt;P&gt;The image below is my current pipeline:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000AcWMMAA3.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152286iFA44E67CB942EA78/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000AcWMMAA3.jpg" alt="0693p00000AcWMMAA3.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've highlighted the &lt;B&gt;tNormalize_1&lt;/B&gt; step because this is the step where I transform my data from a unique string to a proper object with about 93k rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I've seen that the flow takes about 1h30m to be completed with the final &lt;B&gt;tDBOutput_1&lt;/B&gt; step which makes the upsert to a database, I thought to add a &lt;B&gt;tSendMail &lt;/B&gt;component when the data is normalized because I would like to receive an e-mail that is telling me the process is started (with date time) and how many records are going to be processed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clearly, what I've done doesn't work because component tNormalize returns "ok status" when the whole process is completed. The tNormalize doesn't transform and pass massively the object to the next step, but it passes about 30 rows per second.It is probably a very silly question and problem, but how can I send an e-mail containing the data I explained before when a job is started?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also add below an image of the running process:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000AcWNFAA3.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135189iDB93FD8CA1D4865A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000AcWNFAA3.jpg" alt="0693p00000AcWNFAA3.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:53:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316174#M86747</guid>
      <dc:creator>s_mil</dc:creator>
      <dc:date>2024-11-16T00:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Send an e-mail when a job is started with rows count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316175#M86748</link>
      <description>&lt;P&gt;Can you add one more tJavaFlex after the tNormalize.&lt;/P&gt;&lt;P&gt;If yes then in the main code of javaflex write &lt;/P&gt;&lt;P&gt;context.count++;&lt;/P&gt;&lt;P&gt;and then create a link of onComponentOK to the tSendEmail.&lt;/P&gt;&lt;P&gt;Then use the count context to send the count of the rows generate by tNormalize.&lt;/P&gt;&lt;P&gt;Also in the context declaration tab, initialize count to 0 as Integer data type.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 14:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316175#M86748</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2020-12-29T14:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Send an e-mail when a job is started with rows count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316176#M86749</link>
      <description>&lt;P&gt;Hi @prakhar dubey​&amp;nbsp;! Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've modified the pipeline as you can see in the image below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000Acc9sAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153055i083E306CA1694D5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000Acc9sAAB.png" alt="0693p00000Acc9sAAB.png" /&gt;&lt;/span&gt;I receive an e-mail with the correct number of rows, but this happens when the flow is completed and not when the process has started. &lt;/P&gt;&lt;P&gt;I would like to receive this e-mail when the job starts because the insert on MS SQL database takes some time, and I'll receive another e-mail when the insert process is over.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 08:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316176#M86749</guid>
      <dc:creator>s_mil</dc:creator>
      <dc:date>2020-12-30T08:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Send an e-mail when a job is started with rows count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316177#M86750</link>
      <description>&lt;P&gt;@Stefano Milziadi​&amp;nbsp; you mean you receive the count  email when the rows are inserted into the MsSQL, right ?&lt;/P&gt;&lt;P&gt;This should not happen ideally because as soon as Java Flex count the rows it will send and email before the insertion operation, but if this is not happening please let me i will thing of something else.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 09:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316177#M86750</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2020-12-30T09:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Send an e-mail when a job is started with rows count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316178#M86751</link>
      <description>&lt;P&gt;@prakhar dubey​&amp;nbsp;With the pipeline above, I receive one e-mail (from &lt;B&gt;tSendMail_4&lt;/B&gt;) when all inserts made by &lt;B&gt;tDBOutput_1&lt;/B&gt; are completed. So this is not useful because I receive at the same time the e-mail from &lt;B&gt;tSendMail_4&lt;/B&gt; and the one from &lt;B&gt;tSendMail_1/3&lt;/B&gt;. I don't know if I'm doing something wrong in configuration (sorry, this is my first pipeline) or your suggested solution is not working in this case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, I tried what you suggested before because this is the same way I thought it has to work, but I've noticed that not all rows are passed from &lt;B&gt;tNormalize_1&lt;/B&gt; to the next step in one time, but the rows are passed in chunks based on SQL inserts made (look at the second image in the first post, 495 rows on 93k total).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have something else in mind. Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 09:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316178#M86751</guid>
      <dc:creator>s_mil</dc:creator>
      <dc:date>2020-12-30T09:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Send an e-mail when a job is started with rows count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316179#M86752</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000AccdxAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136797i563370F5012DCFDE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000AccdxAAB.png" alt="0693p00000AccdxAAB.png" /&gt;&lt;/span&gt;@Stefano Milziadi​&amp;nbsp;yes i tried it by myself also and facing the same issue when using a java component in the flow not with other output components.&lt;/P&gt;&lt;P&gt;I don't know if you like the new solution or not but what you can do,&lt;/P&gt;&lt;P&gt;after JavaFlex use tBufferOutput, then create a onSubJobOk link from tWebService and then use tBufferInput and then attach the next flow from tBufferInput.&lt;/P&gt;&lt;P&gt; just like I did and in place of tJava_1 there will be the email component.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 13:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316179#M86752</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2020-12-30T13:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Send an e-mail when a job is started with rows count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316180#M86753</link>
      <description>&lt;P&gt;Hi @prakhar dubey​&amp;nbsp;, I've changed a bit your flow to meet my needs, and it seems working fine. In my case I've attached the "&lt;B&gt;onComponentOk&lt;/B&gt;" of &lt;B&gt;tBufferOutput_1 &lt;/B&gt;to the &lt;B&gt;tBufferInput_1&lt;/B&gt;, in this way I don't have to replicate the &lt;B&gt;tNormalize &lt;/B&gt;component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the "final" result (so far):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000AchkZAAR.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143282i0B2B4360C3B53E47/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000AchkZAAR.jpg" alt="0693p00000AchkZAAR.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help, really appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 08:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316180#M86753</guid>
      <dc:creator>s_mil</dc:creator>
      <dc:date>2020-12-31T08:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Send an e-mail when a job is started with rows count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316181#M86754</link>
      <description>&lt;P&gt;@Stefano Milziadi​&amp;nbsp;thank you too, i m glad to help you here.&lt;/P&gt;&lt;P&gt;Please select it as a solution and a kudos will be really appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 08:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-an-e-mail-when-a-job-is-started-with-rows-count/m-p/2316181#M86754</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2020-12-31T08:24:39Z</dc:date>
    </item>
  </channel>
</rss>

