<?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: Keep loop working on Sql Connection Error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Keep-loop-working-on-Sql-Connection-Error/m-p/2301099#M73249</link>
    <description>You need to create the context variables you want to use within your child job. Then you can select them to be populated when you call it in your parent job.&lt;BR /&gt;&lt;BR /&gt;I believe that simply copying and pasting the components into the child job should work.</description>
    <pubDate>Mon, 19 Oct 2015 13:04:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-19T13:04:16Z</dc:date>
    <item>
      <title>Keep loop working on Sql Connection Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Keep-loop-working-on-Sql-Connection-Error/m-p/2301096#M73246</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;I started a little time ago working with talend and im still getting used to so im sorry if this is a dumb question.&lt;BR /&gt;The problem is simple i think, i have a bunch of different MSSql databases with different ips but, with the same schema and tables.&lt;BR /&gt;I need to connect to each one of them, execute one select sentence (i already have it and works fine) and then retrieve the info it gets to an excel file.&lt;BR /&gt;I tried at first with more than 50 tMSSql inputs, and connections, was the easy way, and it stopped working with memory problems due to the high amount of components.&lt;BR /&gt;Then i changed it all to the actual model that is quite simple and efficient.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/321031/blob.png" target="_blank" rel="noopener"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGfP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134541i0D8EEDAB2285EE35/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGfP.png" alt="0683p000009MGfP.png" /&gt;&lt;/span&gt; &lt;/A&gt;&lt;BR /&gt;On the first excel input i have a list of all ips, passwords, and all the config parameters the component MSSqlinput use&lt;BR /&gt;Then the iterate component do his job and collect all the data and throws to the MSSql connection component&lt;BR /&gt;And here is the problem, i want it to ejecute the select if it can connect to the IP (wich is actually doing) or, if it cant connect, just throw the error and go to the next ip on the list.&lt;BR /&gt;Now when i execute it and one ip is not working it just stop the execution and leaves all the following ips without proccesing.&lt;BR /&gt;&lt;BR /&gt;Anyone knows a workaround for this? i have been trying A LOT of other aproaches to this problem for more than a week and all ended up the same, when one ip is not working everything stops.&lt;BR /&gt;&lt;BR /&gt;BTW, the java error when one ip is not working is the next, in case it is too usefull.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;Exception in component tMSSqlConnection_1&lt;BR /&gt;java.sql.SQLException: Network error IOException: Connection refused: connect&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Oct 2015 12:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Keep-loop-working-on-Sql-Connection-Error/m-p/2301096#M73246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-16T12:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Keep loop working on Sql Connection Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Keep-loop-working-on-Sql-Connection-Error/m-p/2301097#M73247</link>
      <description>Try putting the connection and query code into a child job (another Talend job called by using a tRunJob). You can pass your connection values through using context variables. Make sure you untick the "Die on child error" checkbox on the tRunJob.&amp;nbsp;</description>
      <pubDate>Sat, 17 Oct 2015 11:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Keep-loop-working-on-Sql-Connection-Error/m-p/2301097#M73247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-17T11:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Keep loop working on Sql Connection Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Keep-loop-working-on-Sql-Connection-Error/m-p/2301098#M73248</link>
      <description>Hi rhall and thanks for your answer, 
&lt;BR /&gt; 
&lt;BR /&gt;Here is where i am now, i cant add context parameters to the runjob component. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/321031/blob_20151019-1216.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGoS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128051i7866B5C2FD7E2C51/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGoS.png" alt="0683p000009MGoS.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;And the subjob is just a copy paste of the previous check and execute SQL query 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/321031/blob_20151019-1214.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGoc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145566iF2A2BC5295FBCE2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGoc.png" alt="0683p000009MGoc.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Any hints about this? 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks for your help.</description>
      <pubDate>Mon, 19 Oct 2015 11:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Keep-loop-working-on-Sql-Connection-Error/m-p/2301098#M73248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T11:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Keep loop working on Sql Connection Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Keep-loop-working-on-Sql-Connection-Error/m-p/2301099#M73249</link>
      <description>You need to create the context variables you want to use within your child job. Then you can select them to be populated when you call it in your parent job.&lt;BR /&gt;&lt;BR /&gt;I believe that simply copying and pasting the components into the child job should work.</description>
      <pubDate>Mon, 19 Oct 2015 13:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Keep-loop-working-on-Sql-Connection-Error/m-p/2301099#M73249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T13:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Keep loop working on Sql Connection Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Keep-loop-working-on-Sql-Connection-Error/m-p/2301100#M73250</link>
      <description>After some texting and a bit of research on talend documentation about context variables and their use i have finally finished the program. 
&lt;BR /&gt; 
&lt;BR /&gt;Now works like a charm, i just need to finish the error logging and im done. 
&lt;BR /&gt; 
&lt;BR /&gt;Thank you so much for your help rhall. 
&lt;BR /&gt; 
&lt;BR /&gt;Cheers.</description>
      <pubDate>Tue, 20 Oct 2015 09:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Keep-loop-working-on-Sql-Connection-Error/m-p/2301100#M73250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-20T09:01:33Z</dc:date>
    </item>
  </channel>
</rss>

