<?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: Get MAX(ID) from tMysqlInput - job error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-MAX-ID-from-tMysqlInput-job-error/m-p/2335846#M104359</link>
    <description>Have you tried your Query directly against the database using mysql workbench or squirrel or whatever ?? 
&lt;BR /&gt;if you look for the queries which are made by quess query, the all have `backticks` as they are always used in mysql. 
&lt;BR /&gt;But your query hasn´t&amp;nbsp; `backticks` 
&lt;BR /&gt;That might be the problem 
&lt;BR /&gt;HTH 
&lt;BR /&gt;DJ</description>
    <pubDate>Thu, 04 Feb 2016 16:30:44 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2016-02-04T16:30:44Z</dc:date>
    <item>
      <title>Get MAX(ID) from tMysqlInput - job error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-MAX-ID-from-tMysqlInput-job-error/m-p/2335845#M104358</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I am trying to get the maximum value of a column which contains INT values.&lt;BR /&gt;&lt;BR /&gt;For that, I am using the following mysql query:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;"SELECT COALESCE(MAX(id_partner),0) as id_partner FROM BI_DWH_dimension_partner"&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;When I launch the job, it raise an error NullPointerException.&lt;BR /&gt;&lt;BR /&gt;You can check that error in the screenshot below.&lt;BR /&gt;&lt;BR /&gt;I also added a screenshot of the table dimension_partner to show that there is data inside so I should'nt get any NullPointerException error.&lt;BR /&gt;&lt;BR /&gt;Thank you for your advice.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MH5x.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151822i0D95B90072096286/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MH5x.png" alt="0683p000009MH5x.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MH62.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139686i9B50AB07BA5CEB5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MH62.png" alt="0683p000009MH62.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MH67.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155485iA5EDC852FAA86477/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MH67.png" alt="0683p000009MH67.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MH0e.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151865i88F2181431909B1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MH0e.png" alt="0683p000009MH0e.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MH6C.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157120iBD204D94344621AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MH6C.png" alt="0683p000009MH6C.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MH6H.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142141i1DE7BDD0EA275C72/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MH6H.png" alt="0683p000009MH6H.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 09:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-MAX-ID-from-tMysqlInput-job-error/m-p/2335845#M104358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-02T09:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get MAX(ID) from tMysqlInput - job error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-MAX-ID-from-tMysqlInput-job-error/m-p/2335846#M104359</link>
      <description>Have you tried your Query directly against the database using mysql workbench or squirrel or whatever ?? 
&lt;BR /&gt;if you look for the queries which are made by quess query, the all have `backticks` as they are always used in mysql. 
&lt;BR /&gt;But your query hasn´t&amp;nbsp; `backticks` 
&lt;BR /&gt;That might be the problem 
&lt;BR /&gt;HTH 
&lt;BR /&gt;DJ</description>
      <pubDate>Thu, 04 Feb 2016 16:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-MAX-ID-from-tMysqlInput-job-error/m-p/2335846#M104359</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-02-04T16:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get MAX(ID) from tMysqlInput - job error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-MAX-ID-from-tMysqlInput-job-error/m-p/2335847#M104360</link>
      <description>Hi djdeejay_offline,
&lt;BR /&gt;
&lt;BR /&gt;Thank you for your reply.
&lt;BR /&gt;
&lt;BR /&gt;I added the backticks but it didn't change anything.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MH6M.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155988iF38588990DFA0988/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MH6M.png" alt="0683p000009MH6M.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 04 Feb 2016 23:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-MAX-ID-from-tMysqlInput-job-error/m-p/2335847#M104360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-04T23:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get MAX(ID) from tMysqlInput - job error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-MAX-ID-from-tMysqlInput-job-error/m-p/2335848#M104361</link>
      <description>The NullPointerException appears if you are trying to assign a nullable number to a none-nullable number in the tMap. 
&lt;BR /&gt;I suggest you let the job run again and after take the last line before the Exception in the stack trace -&amp;gt;points to the line where the NullPointerException will be thrown and switch to the Code view. Now click right on the far left side and activate the line numbers. 
&lt;BR /&gt;With the line numbers in the code and the line number where the NullPointerException happens you will see the problem line. 
&lt;BR /&gt;I bet it is a assignment like 
&lt;BR /&gt; 
&lt;PRE&gt;row2.partner_id.intValue() + 1&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;I suggest you do this instead: 
&lt;BR /&gt; 
&lt;PRE&gt;(row2.partner_id != null ? row2.partner_id.intValue() + 1 : 1)&lt;/PRE&gt; 
&lt;BR /&gt;&amp;nbsp; The output flow NEW get the values from the inner join reject -&amp;gt; it is quit reasonable the partner_id can be null here.</description>
      <pubDate>Mon, 08 Feb 2016 22:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-MAX-ID-from-tMysqlInput-job-error/m-p/2335848#M104361</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-08T22:01:55Z</dc:date>
    </item>
  </channel>
</rss>

