<?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: tSalesforceConnection retry mechanism in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceConnection-retry-mechanism/m-p/2340685#M108697</link>
    <description>&lt;P&gt;Hello @Lorenzo Lucioni​&amp;nbsp;&lt;/P&gt;&lt;P&gt;We replied to your another topic about: Joblet does not actually share a Salesforce Connection with its parent Job.&lt;/P&gt;&lt;P&gt;Could you please have a look at it to see if it helps?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.talend.com/s/question/0D55b00008dI0aLCAS/joblet-does-not-actually-share-a-salesforce-connection-with-its-parent-job" alt="https://community.talend.com/s/question/0D55b00008dI0aLCAS/joblet-does-not-actually-share-a-salesforce-connection-with-its-parent-job" target="_blank"&gt;https://community.talend.com/s/question/0D55b00008dI0aLCAS/joblet-does-not-actually-share-a-salesforce-connection-with-its-parent-job&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2023 04:22:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-18T04:22:09Z</dc:date>
    <item>
      <title>tSalesforceConnection retry mechanism</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceConnection-retry-mechanism/m-p/2340682#M108694</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm looking for implementing a retry mechanism for the tSalesforceConnection component, instead of having it failing (e.g. in case of Salesforce Remote Server temporary unavailable) and the Job going to terminate. &lt;/P&gt;&lt;P&gt;As the component raises an exception which breaks any outer loop, I was not able to develop and retry loop solution. Nevertheless, I might have missing something.&lt;/P&gt;&lt;P&gt;Any idea about a possible retry loop design for the tSalesforceConnection component?&lt;/P&gt;&lt;P&gt;A simple design as test:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fJzBWAA0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140684i451AFD42DB0B23C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fJzBWAA0.png" alt="0695b00000fJzBWAA0.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fJzBgAAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131894i3046C1795B3EDA5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fJzBgAAK.png" alt="0695b00000fJzBgAAK.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSalesforceConnection-retry-mechanism/m-p/2340682#M108694</guid>
      <dc:creator>Lorenzo5</dc:creator>
      <dc:date>2024-11-15T21:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: tSalesforceConnection retry mechanism</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceConnection-retry-mechanism/m-p/2340683#M108695</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We could use the tJavaflex component with the following code to enable the retry option for tsalesforcexxx component.&lt;/P&gt;&lt;P&gt;//begin&lt;/P&gt;&lt;P&gt;Exception lastException = null;&lt;/P&gt;&lt;P&gt;int i = 0;&lt;/P&gt;&lt;P&gt;for( ; i &amp;lt; 5 ;i++) {&lt;/P&gt;&lt;P&gt;try {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//main&lt;/P&gt;&lt;P&gt;//intentionally empty&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//end&lt;/P&gt;&lt;P&gt;i = 10;&lt;/P&gt;&lt;P&gt;} catch (Exception e) {&lt;/P&gt;&lt;P&gt;lastException = e;&lt;/P&gt;&lt;P&gt;log.warn("Failed to connect, will retry after " + (i*2) + "seconds. Exception: " + e.getMessage() );&lt;/P&gt;&lt;P&gt;Thread.sleep(i*2*1000);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;//we had an exception&lt;/P&gt;&lt;P&gt;if(i != 10) throw lastException;&lt;/P&gt;&lt;P&gt;Feel free to let us know if it helps.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 07:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSalesforceConnection-retry-mechanism/m-p/2340683#M108695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-14T07:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: tSalesforceConnection retry mechanism</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceConnection-retry-mechanism/m-p/2340684#M108696</link>
      <description>&lt;P&gt;Hi @Xiaodi Shi​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! The solution works very well, and I was succesfully able to catch the tSalesforceConnection exception and retry the connection multiple time. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I have another issue. &lt;/P&gt;&lt;P&gt;I included the "Retrying Connection design" in a Joblet, in order to share it with several Jobs, but when I include the Joblet in a Job, that Job is aware and knows the connection, but it's unable to use it, which is quite weird to me.&lt;/P&gt;&lt;P&gt;For that reason, I'm creating a new post, here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.talend.com/s/question/0D55b00008dI0aLCAS/joblet-does-not-actually-share-a-salesforce-connection-with-its-parent-job" alt="https://community.talend.com/s/question/0D55b00008dI0aLCAS/joblet-does-not-actually-share-a-salesforce-connection-with-its-parent-job" target="_blank"&gt;Joblet does not actually share a Salesforce Connection with its parent Job (talend.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lorenzo&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 13:54:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSalesforceConnection-retry-mechanism/m-p/2340684#M108696</guid>
      <dc:creator>Lorenzo5</dc:creator>
      <dc:date>2023-04-17T13:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: tSalesforceConnection retry mechanism</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceConnection-retry-mechanism/m-p/2340685#M108697</link>
      <description>&lt;P&gt;Hello @Lorenzo Lucioni​&amp;nbsp;&lt;/P&gt;&lt;P&gt;We replied to your another topic about: Joblet does not actually share a Salesforce Connection with its parent Job.&lt;/P&gt;&lt;P&gt;Could you please have a look at it to see if it helps?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.talend.com/s/question/0D55b00008dI0aLCAS/joblet-does-not-actually-share-a-salesforce-connection-with-its-parent-job" alt="https://community.talend.com/s/question/0D55b00008dI0aLCAS/joblet-does-not-actually-share-a-salesforce-connection-with-its-parent-job" target="_blank"&gt;https://community.talend.com/s/question/0D55b00008dI0aLCAS/joblet-does-not-actually-share-a-salesforce-connection-with-its-parent-job&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 04:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSalesforceConnection-retry-mechanism/m-p/2340685#M108697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-18T04:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: tSalesforceConnection retry mechanism</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceConnection-retry-mechanism/m-p/2340686#M108698</link>
      <description>&lt;P&gt;Hi Sabrina,&lt;/P&gt;&lt;P&gt;saw your answer there, unfortunately it was not helpful, as it seems to me we are here facing a bug. That thread continues. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks anyway for your support for this specific thread, the try/catch solution with the tJavaFlex component works very well. &lt;/P&gt;&lt;P&gt;The try/catch topic has been a critical topic on some of my Jobs... and wrapping everything valley of the tJavaFlex with that try/catch is very helpful. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lorenzo&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 08:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSalesforceConnection-retry-mechanism/m-p/2340686#M108698</guid>
      <dc:creator>Lorenzo5</dc:creator>
      <dc:date>2023-04-18T08:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: tSalesforceConnection retry mechanism</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceConnection-retry-mechanism/m-p/2340687#M108699</link>
      <description>&lt;P&gt;Just for the records, my solution (with a wider use of Components, instead of Java code into the tJavaFlex Component):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fKNkuAAG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138357iC26A658760B71977/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fKNkuAAG.png" alt="0695b00000fKNkuAAG.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 08:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSalesforceConnection-retry-mechanism/m-p/2340687#M108699</guid>
      <dc:creator>Lorenzo5</dc:creator>
      <dc:date>2023-04-18T08:55:29Z</dc:date>
    </item>
  </channel>
</rss>

