<?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: Load context from MS SQL table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207370#M7045</link>
    <description>Hi, 
&lt;BR /&gt;I suspect you job still use explicit context which contains "null" value in Contexts. Make sure you have checked your Implicit context option in job view. 
&lt;BR /&gt;Is it working when you use explicit context?(give fixed value in context ). 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC2Q.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143844i05641D17A3B19A8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC2Q.png" alt="0683p000009MC2Q.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MByL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146594i54FE1E9BF5FC9142/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MByL.png" alt="0683p000009MByL.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Wed, 04 Dec 2013 06:38:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-12-04T06:38:01Z</dc:date>
    <item>
      <title>Load context from MS SQL table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207366#M7041</link>
      <description>I've used implicit context load using file but now I'm trying Load context from a table but I don't know why its not able to load the contexts from the table. 
&lt;BR /&gt;Table columns 
&lt;BR /&gt;key | value
&lt;BR /&gt;host | abc.it.go
&lt;BR /&gt;username | talend
&lt;BR /&gt;pwd | mypassword
&lt;BR /&gt;additonal_param | php=domain
&lt;BR /&gt;port | 1234
&lt;BR /&gt;I've created a context group called test_contexts 
&lt;BR /&gt;in that i've created
&lt;BR /&gt;host
&lt;BR /&gt;username
&lt;BR /&gt;pwd
&lt;BR /&gt;additional_param
&lt;BR /&gt;port
&lt;BR /&gt;So in the SQLconnection i've got the host as context.host , username as context.username and so on ... I've got system.out.println(context.host); and so on in a tjava. When I run the job it fails saying implicit_context_load exception for 'key' and everything is null null null null what ever prints for host, username etc 
&lt;BR /&gt; Is it mandatory to use another tsqlconnection and then tcontextload to read this 2 columns? Can you let me know what am doing wrong here? 
&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 04 Dec 2013 02:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207366#M7041</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-04T02:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from MS SQL table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207367#M7042</link>
      <description>Hi, 
&lt;BR /&gt;I have made a testing on talend open studio for Data Integration 5.3.1, everything is fine. Could you connect to your DB with data without context directly? Is there any error when you click guess schema under the condition of using implicit context? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC2L.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135148i92FFAD8E4B610D19/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC2L.png" alt="0683p000009MC2L.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC1n.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141072iAB8B8666C6DF4FE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC1n.png" alt="0683p000009MC1n.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBur.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135633i1AD96EF518D2BD7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBur.png" alt="0683p000009MBur.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA17.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136276i931EBAE4ABCA100A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA17.png" alt="0683p000009MA17.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 04 Dec 2013 03:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207367#M7042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-04T03:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from MS SQL table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207368#M7043</link>
      <description>Yes. It connects succesfully if I hardcode the values. So you used the same key and value as columns? &lt;BR /&gt;Does this problem occur if MS SQL server has both windows and SQL server authentication? &lt;BR /&gt;Thanks,&lt;BR /&gt;Anjan</description>
      <pubDate>Wed, 04 Dec 2013 04:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207368#M7043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-04T04:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from MS SQL table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207369#M7044</link>
      <description>no there is no error when i click the schema retrieval under implicit context load&lt;BR /&gt;Thanks,&lt;BR /&gt;Anjan</description>
      <pubDate>Wed, 04 Dec 2013 04:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207369#M7044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-04T04:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from MS SQL table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207370#M7045</link>
      <description>Hi, 
&lt;BR /&gt;I suspect you job still use explicit context which contains "null" value in Contexts. Make sure you have checked your Implicit context option in job view. 
&lt;BR /&gt;Is it working when you use explicit context?(give fixed value in context ). 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC2Q.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143844i05641D17A3B19A8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC2Q.png" alt="0683p000009MC2Q.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MByL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146594i54FE1E9BF5FC9142/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MByL.png" alt="0683p000009MByL.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 04 Dec 2013 06:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207370#M7045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-04T06:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from MS SQL table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207371#M7046</link>
      <description>Found the error. &lt;BR /&gt;&lt;BR /&gt;MS SQL server does not allow key as a column. So even if you create a table with key and value as a column MS SQL will put  as the column so when you take the SQL from the generated code &lt;BR /&gt;select context.key,context.value from context and execute it will fail. Is there a work around for this without changing anything in the job? &lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 04 Dec 2013 16:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207371#M7046</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-12-04T16:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from MS SQL table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207372#M7047</link>
      <description>Found a solution. You need to edit the 
&lt;BR /&gt;\plugins\tContextLoad\tContextLoad_java.xml 
&lt;BR /&gt;and change the key to the column name you are using.. for ex i used tkey
&lt;BR /&gt;&amp;lt;TABLE READONLY="true"&amp;gt;
&lt;BR /&gt; &amp;lt;COLUMN NAME="tkey" TYPE="id_String" READONLY="true" CUSTOM="true" LENGTH="255"/&amp;gt;
&lt;BR /&gt; &amp;lt;COLUMN NAME="value" TYPE="id_String" READONLY="false" CUSTOM="true" LENGTH="255"/&amp;gt;
&lt;BR /&gt; &amp;lt;/TABLE&amp;gt;
&lt;BR /&gt; &amp;lt;/PARAMETER&amp;gt;
&lt;BR /&gt;
&lt;BR /&gt;However i think talend should fix this bug on their side to add [] to key in the query like 
&lt;BR /&gt;select ,value from table;
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Anjan</description>
      <pubDate>Wed, 04 Dec 2013 19:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207372#M7047</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-12-04T19:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from MS SQL table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207373#M7048</link>
      <description>BTW we are using enterprise edition. So I don't know if you guys still have a solution without changing the xml file and editing any existing jobs using the context groups which have already been defined please let us know.</description>
      <pubDate>Wed, 04 Dec 2013 19:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207373#M7048</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-12-04T19:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from MS SQL table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207374#M7049</link>
      <description>Hi, 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;BTW we are using enterprise edition. So I don't know if you guys still have a solution without changing the xml file and editing any existing jobs using the context groups which have already been defined please let us know.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Thanks for sharing your solution with us.
&lt;BR /&gt;Could you open a ticket on 
&lt;A href="http://support.talend.com/otrs/customer.pl" target="_blank" rel="nofollow noopener noreferrer"&gt;Talend Support Portal&lt;/A&gt; so that we can follow your steps to see if it is a bug for talend.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 05 Dec 2013 03:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207374#M7049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-05T03:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from MS SQL table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207375#M7050</link>
      <description>Hello, 
&lt;BR /&gt;There is already a ticket with support #2013120510000201 
&lt;BR /&gt;After modifying tContextload.xml, It works on Talend Studio on local machine, Please suggest what needs to be done to apply same component to job/tac server ? 
&lt;BR /&gt;tried updating : /talend/studio/Talend-Studio-r99271-V5.2.2/plugins/org.talend.designer.components.localprovider_5.2.2.r99271/components/tContextLoad 
&lt;BR /&gt;and 
&lt;BR /&gt;/talend/cmdline/studio/plugins/org.talend.designer.components.localprovider_5.2.2.r99271/components/tContextLoad 
&lt;BR /&gt;also removed javacache at /talend/cmdline/studio/configuration but no luck.</description>
      <pubDate>Wed, 11 Dec 2013 23:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-MS-SQL-table/m-p/2207375#M7050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-11T23:07:15Z</dc:date>
    </item>
  </channel>
</rss>

