<?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 how print a query for debugging in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-print-a-query-for-debugging/m-p/2246499#M31996</link>
    <description>Hi to all. 
&lt;BR /&gt;I have an error writing into my AS400 db, but I can't find what's wrong in my job. 
&lt;BR /&gt;I tried to print the sql statement (System.out.println(((String)globalMap.get("tAS400Output_1_QUERY"))) 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; but it's null. 
&lt;BR /&gt;How can I debug my job? 
&lt;BR /&gt;All fields have the same type and lenght. 
&lt;BR /&gt;Help me please. 
&lt;BR /&gt;Exception in component tAS400Output_1 
&lt;BR /&gt;java.lang.RuntimeException: Execution failure, there might be an error in your SQL syntax. 
&lt;BR /&gt; at cps_corsi.corsi_formazione_0_1.Corsi_Formazione.tMSSqlInput_1Process(Corsi_Formazione.java:3071) 
&lt;BR /&gt; at cps_corsi.corsi_formazione_0_1.Corsi_Formazione.tMSSqlConnection_1Process(Corsi_Formazione.java:701) 
&lt;BR /&gt; at cps_corsi.corsi_formazione_0_1.Corsi_Formazione.tRunJob_1Process(Corsi_Formazione.java:579) 
&lt;BR /&gt; at cps_corsi.corsi_formazione_0_1.Corsi_Formazione.runJobInTOS(Corsi_Formazione.java:5237) 
&lt;BR /&gt; at cps_corsi.corsi_formazione_0_1.Corsi_Formazione.runJob(Corsi_Formazione.java:5097) 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks 
&lt;BR /&gt; 
&lt;BR /&gt;Gisella</description>
    <pubDate>Sat, 16 Nov 2024 13:22:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:22:14Z</dc:date>
    <item>
      <title>how print a query for debugging</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-print-a-query-for-debugging/m-p/2246499#M31996</link>
      <description>Hi to all. 
&lt;BR /&gt;I have an error writing into my AS400 db, but I can't find what's wrong in my job. 
&lt;BR /&gt;I tried to print the sql statement (System.out.println(((String)globalMap.get("tAS400Output_1_QUERY"))) 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; but it's null. 
&lt;BR /&gt;How can I debug my job? 
&lt;BR /&gt;All fields have the same type and lenght. 
&lt;BR /&gt;Help me please. 
&lt;BR /&gt;Exception in component tAS400Output_1 
&lt;BR /&gt;java.lang.RuntimeException: Execution failure, there might be an error in your SQL syntax. 
&lt;BR /&gt; at cps_corsi.corsi_formazione_0_1.Corsi_Formazione.tMSSqlInput_1Process(Corsi_Formazione.java:3071) 
&lt;BR /&gt; at cps_corsi.corsi_formazione_0_1.Corsi_Formazione.tMSSqlConnection_1Process(Corsi_Formazione.java:701) 
&lt;BR /&gt; at cps_corsi.corsi_formazione_0_1.Corsi_Formazione.tRunJob_1Process(Corsi_Formazione.java:579) 
&lt;BR /&gt; at cps_corsi.corsi_formazione_0_1.Corsi_Formazione.runJobInTOS(Corsi_Formazione.java:5237) 
&lt;BR /&gt; at cps_corsi.corsi_formazione_0_1.Corsi_Formazione.runJob(Corsi_Formazione.java:5097) 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks 
&lt;BR /&gt; 
&lt;BR /&gt;Gisella</description>
      <pubDate>Sat, 16 Nov 2024 13:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-print-a-query-for-debugging/m-p/2246499#M31996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: how print a query for debugging</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-print-a-query-for-debugging/m-p/2246500#M31997</link>
      <description>Hi 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I tried to print the sql statement (System.out.println(((String)globalMap.get("tAS400Output_1_QUERY")))wink but it's null.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;It is normal, because we don't set a value to global variable globalMap.get("tAS400Output_1_QUERY"), so it is null. 
&lt;BR /&gt;If you know Java, you can go to the debug model and print the query. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Sun, 04 Jul 2010 15:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-print-a-query-for-debugging/m-p/2246500#M31997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-04T15:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: how print a query for debugging</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-print-a-query-for-debugging/m-p/2246501#M31998</link>
      <description>So can I ask why globalMap.get("tAS400Output_1_QUERY") exists at all if it's never populated?  Is that the case for all tOutput components: that their tOutput_1_QUERY globalMap variable is not populated?  (Also see &lt;A href="http://www.talendforge.org/forum/viewtopic.php?pid=42041#p42041" target="_blank" rel="nofollow noopener noreferrer"&gt;this post&lt;/A&gt;).</description>
      <pubDate>Sun, 04 Jul 2010 23:51:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-print-a-query-for-debugging/m-p/2246501#M31998</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-07-04T23:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: how print a query for debugging</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-print-a-query-for-debugging/m-p/2246502#M31999</link>
      <description>Thanks Shong. 
&lt;BR /&gt;I printed the query as you show me, I filled and executed it manually: all works. 
&lt;BR /&gt;But still I have some talend exception 
&lt;BR /&gt;Exception in component tAS400Output_1 
&lt;BR /&gt;java.lang.RuntimeException: Execution failure, there might be an error in your SQL syntax. 
&lt;BR /&gt; at cps_corsi.corsi_formazione_0_1.Corsi_Formazione.tMSSqlInput_1Process(Corsi_Formazione.java:2134) 
&lt;BR /&gt; at cps_corsi.corsi_formazione_0_1.Corsi_Formazione.tAS400Connection_2Process(Corsi_Formazione.java:552) 
&lt;BR /&gt; at cps_corsi.corsi_formazione_0_1.Corsi_Formazione.tMSSqlConnection_2Process(Corsi_Formazione.java:3293) 
&lt;BR /&gt;I found that this error is throws when is used an existing connection. 
&lt;BR /&gt;Specifying the connection params all works well. 
&lt;BR /&gt;May be it's a bug? I'm using talend 3.2.2. 
&lt;BR /&gt;Gisella</description>
      <pubDate>Mon, 05 Jul 2010 15:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-print-a-query-for-debugging/m-p/2246502#M31999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-05T15:42:51Z</dc:date>
    </item>
  </channel>
</rss>

