<?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 Query String Passed as Context Param is not running Properly in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Query-String-Passed-as-Context-Param-is-not-running-Properly/m-p/2306046#M77625</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a situation in which the query to be executed itself would be passed as a context parameter from the parent job.&lt;/P&gt; 
&lt;P&gt;The query string is approximately 1250 characters. When i try to print the query - am able to print them all (no truncation of character), but when i pass that as parameter and execute in a tmssql component, it is showing a column as Invalid.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Example : Query String (not real query though)- SELECT A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P from dbo.Table (of length 1250).&lt;/P&gt; 
&lt;P&gt;Issue - The error message is tMSSqlInput_1 Invalid column name 'K'. If i remove column 'K' the error says Invalid Column 'L'. But when i pass 'SELECT * FROM dbo.table' or 'SELECT A,B,C,D,E,F,G,H,I,J from dbo.Table' it is running fine. I checked tens of times all the columns i mentioned here are available in Table.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Someone, please help me to unveil this issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 08:08:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-08T08:08:46Z</dc:date>
    <item>
      <title>Query String Passed as Context Param is not running Properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-String-Passed-as-Context-Param-is-not-running-Properly/m-p/2306046#M77625</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a situation in which the query to be executed itself would be passed as a context parameter from the parent job.&lt;/P&gt; 
&lt;P&gt;The query string is approximately 1250 characters. When i try to print the query - am able to print them all (no truncation of character), but when i pass that as parameter and execute in a tmssql component, it is showing a column as Invalid.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Example : Query String (not real query though)- SELECT A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P from dbo.Table (of length 1250).&lt;/P&gt; 
&lt;P&gt;Issue - The error message is tMSSqlInput_1 Invalid column name 'K'. If i remove column 'K' the error says Invalid Column 'L'. But when i pass 'SELECT * FROM dbo.table' or 'SELECT A,B,C,D,E,F,G,H,I,J from dbo.Table' it is running fine. I checked tens of times all the columns i mentioned here are available in Table.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Someone, please help me to unveil this issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 08:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-String-Passed-as-Context-Param-is-not-running-Properly/m-p/2306046#M77625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-08T08:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Query String Passed as Context Param is not running Properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-String-Passed-as-Context-Param-is-not-running-Properly/m-p/2306047#M77626</link>
      <description>&lt;P&gt;Does it work when you run it directly on the MSSQL? double checking MS SQL engine, skip Talend ...&lt;BR /&gt;Looks weird indeed!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 12:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-String-Passed-as-Context-Param-is-not-running-Properly/m-p/2306047#M77626</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-03-08T12:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Query String Passed as Context Param is not running Properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-String-Passed-as-Context-Param-is-not-running-Properly/m-p/2306048#M77627</link>
      <description>Yes it does execute in MS studio. I figured it out after 4 hours of head scratching and 8 cups of tea. It may sound silly, but that's the truth. Since I am passing the entire query as parameter I used dynamic column propagation and that is why when I use "Select * from table" it ran. But when I give columns A,B,C etc I am dropping some columns from table which I don't need. But i belive this dynamic option try to match table structure with the query we give. If it's * it's matching with it and ran, but when we select particular columns, it don't match with it so showing weird error. We did a workaround to handle this. But someone from Talend team may have to confirm this behaviour though. 
&lt;BR /&gt;Anyway, thank you ! Peace be with you !</description>
      <pubDate>Thu, 08 Mar 2018 16:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-String-Passed-as-Context-Param-is-not-running-Properly/m-p/2306048#M77627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-08T16:41:45Z</dc:date>
    </item>
  </channel>
</rss>

