<?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: tFlowToIterate to Dynamic SQL in tOracleInput not executing properly in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFlowToIterate-to-Dynamic-SQL-in-tOracleInput-not-executing/m-p/2275849#M52098</link>
    <description>I reread this and realized I missed a piece of information that might help.&lt;BR /&gt;In the tJava, the actual key I'm using is AssetFlows_QUERY:&lt;BR /&gt;   globalMap.put("AssetFlows_QUERY","Select ea.Entityid dimContactId, etc....&lt;BR /&gt;I also tried:&lt;BR /&gt;   globalMap.put("tOracleInput_2_QUERY","Select ea.Entityid dimContactId, etc...&lt;BR /&gt;but this didn't seem to work with the iterate... even though I could see the iterate executing many different rows, the date value in my dynamic query remained the first value.&lt;BR /&gt;I thought you might want the actual keys incase I'm not using the correct one.</description>
    <pubDate>Fri, 01 Oct 2010 15:17:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-10-01T15:17:26Z</dc:date>
    <item>
      <title>tFlowToIterate to Dynamic SQL in tOracleInput not executing properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFlowToIterate-to-Dynamic-SQL-in-tOracleInput-not-executing/m-p/2275848#M52097</link>
      <description>Hi Guys, I'm a new to Talend (about a week or so). 
&lt;BR /&gt;I've been trying different things with this scenario and when it looked like I got it working... it wasn't really working. 
&lt;BR /&gt;So here's the deal. 
&lt;BR /&gt;from on tOracleInput I'm reading distinct dates. With these dates I'm putting it through a tFlowToIterate so they can be run as a parameter one at a time in another tOracleInput. (this is very similar to other postings so far.). 
&lt;BR /&gt;However I was having trouble witht he second tOracleInput reading my syntax, so I between the tFlowToIterate and the following tOracleInput I handled the Dynamic SQL in a tJava component (I'm not a Java developer). 
&lt;BR /&gt;in tJava I used the globalMap.put method with the key for my second tOracleInput_1_QUERY and the value being my dynamic SQL (complex). 
&lt;BR /&gt;I'll just show a piece of the where clause here. 
&lt;BR /&gt;"Where tr.TRADEDATE='"+ (TalendDate.formatDate("dd-MMM-yy 12.00.00.000000000 'AM'",(java.util.Date)globalMap.get("row1.TradeDate"))) + "' GROUP BY etc..." 
&lt;BR /&gt;To see if this was working I followed something in the user Guide to log the state on my second tOracleInput_QUERY value with a scone tJava. 
&lt;BR /&gt;Now when I run this. I see that the value in my second tOracleInput_Query changing as expected. However the only query that is executing is the original one I used to configure the second tOracleInput not the dynamic SQL. I know this because there are no rows from the output of the second tOracleInput, but when I take the code from the log and execute it directly in Oracle I get records. 
&lt;BR /&gt;So what am I missing? 
&lt;BR /&gt;Oh! from the first tJava I've played with both the OncomponentOk and the Iterate flows and both have the same effect.</description>
      <pubDate>Sat, 16 Nov 2024 13:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFlowToIterate-to-Dynamic-SQL-in-tOracleInput-not-executing/m-p/2275848#M52097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: tFlowToIterate to Dynamic SQL in tOracleInput not executing properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFlowToIterate-to-Dynamic-SQL-in-tOracleInput-not-executing/m-p/2275849#M52098</link>
      <description>I reread this and realized I missed a piece of information that might help.&lt;BR /&gt;In the tJava, the actual key I'm using is AssetFlows_QUERY:&lt;BR /&gt;   globalMap.put("AssetFlows_QUERY","Select ea.Entityid dimContactId, etc....&lt;BR /&gt;I also tried:&lt;BR /&gt;   globalMap.put("tOracleInput_2_QUERY","Select ea.Entityid dimContactId, etc...&lt;BR /&gt;but this didn't seem to work with the iterate... even though I could see the iterate executing many different rows, the date value in my dynamic query remained the first value.&lt;BR /&gt;I thought you might want the actual keys incase I'm not using the correct one.</description>
      <pubDate>Fri, 01 Oct 2010 15:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFlowToIterate-to-Dynamic-SQL-in-tOracleInput-not-executing/m-p/2275849#M52098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-01T15:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: tFlowToIterate to Dynamic SQL in tOracleInput not executing properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFlowToIterate-to-Dynamic-SQL-in-tOracleInput-not-executing/m-p/2275850#M52099</link>
      <description>Ok I've got it.
&lt;BR /&gt;This is resolved.
&lt;BR /&gt;globalMap.put doesn't work the way I'm using it.
&lt;BR /&gt;I had to create the variable context.DynamicQuery then assign my SQL in the tJava to this.
&lt;BR /&gt;Then in the tOracleInput_2 I just referenced context.DynamicQuery in the QUERY parameter.
&lt;BR /&gt;It's running... it's slow but it's running.</description>
      <pubDate>Fri, 01 Oct 2010 18:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFlowToIterate-to-Dynamic-SQL-in-tOracleInput-not-executing/m-p/2275850#M52099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-01T18:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: tFlowToIterate to Dynamic SQL in tOracleInput not executing properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFlowToIterate-to-Dynamic-SQL-in-tOracleInput-not-executing/m-p/2275851#M52100</link>
      <description>&lt;P&gt;Can you please provide end to end approach to arrive the solution for such scenarios ? This helps to understand clearly about Dynamic Select statements execution using TOS.&lt;BR /&gt;&lt;BR /&gt;Many Thanks&lt;/P&gt;
&lt;P&gt;Sreeram&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 11:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFlowToIterate-to-Dynamic-SQL-in-tOracleInput-not-executing/m-p/2275851#M52100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-22T11:22:25Z</dc:date>
    </item>
  </channel>
</rss>

