<?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 tDBConnection to Snowflake error; no connection in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219374#M14200</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;Currently I am trying to connect in a tPrejob with a Snowflake database. After the prejob i have a tRESTRequest component and after the API call i am trying to access the Snowflake database and read data from it based on parameters from the API call. Job looks like this: &lt;STRONG&gt;tPrejob --&amp;gt; tDBConnection&lt;/STRONG&gt; then &lt;STRONG&gt;tRESTRequest --&amp;gt; tFlowToIterate --&amp;gt; tDBInput....&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The last part (&lt;EM&gt;reading data from Snowflake&lt;/EM&gt;) works perfectly if i use the connection details from the metadata repository in the &lt;STRONG&gt;tDBInput component&lt;/STRONG&gt;, so &lt;EM&gt;&lt;U&gt;without&lt;/U&gt; &lt;/EM&gt;the connection being made in the prejob. (i need it in the prejob so that the connection to Snowflake stays &lt;STRONG&gt;alive&lt;/STRONG&gt; and it will not connect to the database on every call that is made to the API)&lt;BR /&gt;&lt;BR /&gt;When i use only the &lt;STRONG&gt;prejob --&amp;gt; tDBConnection (Snowflake connection)&lt;/STRONG&gt; and after that &lt;STRONG&gt;tDBInput (Snowflake read) --&amp;gt; tLogRow &lt;/STRONG&gt;it also works perfectly! So it seems to have a problem when the tRESTRequest component is in between.&lt;BR /&gt;&lt;BR /&gt;Does anyone have a solution for this?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;PS. the error message is:&lt;/P&gt; 
&lt;PRE&gt;Exception in component tDBInput_1 (API_transactions)
java.lang.RuntimeException: Referenced component: tDBConnection_2 not connected
	at cloud_sandbox.api_transactions_0_1.API_transactions.tRESTRequest_1_LoopProcess(API_transactions.java:6234)...&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:48:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T03:48:14Z</dc:date>
    <item>
      <title>tDBConnection to Snowflake error; no connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219374#M14200</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;Currently I am trying to connect in a tPrejob with a Snowflake database. After the prejob i have a tRESTRequest component and after the API call i am trying to access the Snowflake database and read data from it based on parameters from the API call. Job looks like this: &lt;STRONG&gt;tPrejob --&amp;gt; tDBConnection&lt;/STRONG&gt; then &lt;STRONG&gt;tRESTRequest --&amp;gt; tFlowToIterate --&amp;gt; tDBInput....&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The last part (&lt;EM&gt;reading data from Snowflake&lt;/EM&gt;) works perfectly if i use the connection details from the metadata repository in the &lt;STRONG&gt;tDBInput component&lt;/STRONG&gt;, so &lt;EM&gt;&lt;U&gt;without&lt;/U&gt; &lt;/EM&gt;the connection being made in the prejob. (i need it in the prejob so that the connection to Snowflake stays &lt;STRONG&gt;alive&lt;/STRONG&gt; and it will not connect to the database on every call that is made to the API)&lt;BR /&gt;&lt;BR /&gt;When i use only the &lt;STRONG&gt;prejob --&amp;gt; tDBConnection (Snowflake connection)&lt;/STRONG&gt; and after that &lt;STRONG&gt;tDBInput (Snowflake read) --&amp;gt; tLogRow &lt;/STRONG&gt;it also works perfectly! So it seems to have a problem when the tRESTRequest component is in between.&lt;BR /&gt;&lt;BR /&gt;Does anyone have a solution for this?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;PS. the error message is:&lt;/P&gt; 
&lt;PRE&gt;Exception in component tDBInput_1 (API_transactions)
java.lang.RuntimeException: Referenced component: tDBConnection_2 not connected
	at cloud_sandbox.api_transactions_0_1.API_transactions.tRESTRequest_1_LoopProcess(API_transactions.java:6234)...&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219374#M14200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: tDBConnection to Snowflake error; no connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219375#M14201</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Could you please add job and component screenshots for better clarity of your use case?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 16:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219375#M14201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-17T16:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: tDBConnection to Snowflake error; no connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219376#M14202</link>
      <description>&lt;P&gt;Yeah sure, here you are:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2019-12-17 191749.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M88B.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131275iD6BF83D5F27886B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M88B.png" alt="0683p000009M88B.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The components work perfect if i don't use the connection that is established in the prejob, but when i switch in the tDBInput(Snowflake) to the component next to the tPreJob then it fails and i get the error message that i have posted earlier.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;PS. don't mind the tReplicate and tJava, those are just for logging and testing during development.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 18:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219376#M14202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-17T18:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: tDBConnection to Snowflake error; no connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219377#M14203</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Could you please try the same flow but instead of tPreJob, use only tSnowflakeConnection and then connect to RESTRequest component using an On SubJob Ok link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 19:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219377#M14203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-17T19:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: tDBConnection to Snowflake error; no connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219378#M14204</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That would work but that is not a solution for my problem. Because i wan't to keep the connection open during the job time and i only want to open the connection to Snowflake once and then for every call use that open connection from performance perspective.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i use the on subjob ok then the connection wil re-open each time a call is being sent. Please correct me if i'm wrong!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And as you can see, on the top right the 2 seperate components do actually work with the prejob + connection. it seems to have a problem with either the tRESTRequest component or the tFlowToIterate....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 21:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219378#M14204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-17T21:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: tDBConnection to Snowflake error; no connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219379#M14205</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;I am trying to understand whether there is any bug when the code is getting generated in your specific use case. If you are using Connection before tRest component, the connection will be established only once and it will happen before executing tRest component.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Could you please try and let me know the results along with job screenshots?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 02:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219379#M14205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-18T02:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: tDBConnection to Snowflake error; no connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219380#M14206</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have tried what you suggested but i am getting the same error, see the screenshot for details. Can you please provide more suggestions on how to fix this?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also one thing i have tried in the meantime: i have replaced the tDBInput(Snowflake) with a tDBInput(MySQL) connection and that works perfectly, with the exact same setup as below. So the problem seems to occur only when having a connection to Snowflake...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2019-12-18 093830.png" style="width: 848px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8Ny.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139741iE0011B2157C1CA83/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8Ny.png" alt="0683p000009M8Ny.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 08:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219380#M14206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-18T08:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: tDBConnection to Snowflake error; no connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219381#M14207</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I guess its a bug in the Product. If you are an enterprise customer, could you please raise a support case so that they will help to check with R&amp;amp;D team about this issue. Please add the community link also so that you do not have to repeat the same steps again.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; If you are using Talend open source version, could you please create a JIRA ticket using below link?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://jira.talendforge.org/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 14:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBConnection-to-Snowflake-error-no-connection/m-p/2219381#M14207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-18T14:03:23Z</dc:date>
    </item>
  </channel>
</rss>

