<?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: Anyone had a problem when trying to update 0 rows in a tVerticaOutput? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Anyone-had-a-problem-when-trying-to-update-0-rows-in-a/m-p/2272482#M49745</link>
    <description>Hi, &lt;BR /&gt;Would you mind giving us a whole job design and job requirement so that we can see if there is an optimistic workflow for your job design.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
    <pubDate>Tue, 11 Mar 2014 02:56:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-03-11T02:56:45Z</dc:date>
    <item>
      <title>Anyone had a problem when trying to update 0 rows in a tVerticaOutput?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Anyone-had-a-problem-when-trying-to-update-0-rows-in-a/m-p/2272479#M49742</link>
      <description>I have a workflow this is AOK when it has updates to write, but if it has 0 rows to update, then it fails with an "Unexpected message type: ReadyForQuery." error. Has anyone encountered that and know how I can get around it? 
&lt;BR /&gt;I am writing to a Vertica output, using Vertica4. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Starting job j_load_earn_mall_collinson at 10:25 27/11/2013.&lt;BR /&gt; connecting to socket on port 3594&lt;BR /&gt; connected&lt;BR /&gt;2013-11-27 10:25:28 BATCH_KEY="134", ETL_JOB_NM="j_load_earn_mall_collinson", EVNT_DT="2013-11-27 10:25:27", ETL_JOB_VER_NUM="0.1", JOB_STAT_CD="begin", JOB_STAT_DESC="", PROC_TM=""&lt;BR /&gt;Exception in component tVerticaOutput_1&lt;BR /&gt;java.sql.SQLException: (100023) Unexpected message type: ReadyForQuery.&lt;BR /&gt; at com.vertica.io.ProtocolStream.readExpectedMessage(Unknown Source)&lt;BR /&gt; at com.vertica.dataengine.VDataEngine.prepareImpl(Unknown Source)&lt;BR /&gt; at com.vertica.dataengine.VDataEngine.prepare(Unknown Source)&lt;BR /&gt; at com.vertica.dataengine.VDataEngine.prepare(Unknown Source)&lt;BR /&gt; at com.vertica.jdbc.SPreparedStatement.&amp;lt;init&amp;gt;(Unknown Source)&lt;BR /&gt; at com.vertica.jdbc.VerticaPreparedStatementImpl.&amp;lt;init&amp;gt;(Unknown Source)&lt;BR /&gt; at com.vertica.jdbc.VJDBCObjectFactory.createPreparedStatement(Unknown Source)&lt;BR /&gt; at com.vertica.jdbc.SConnection.prepareStatement(Unknown Source)&lt;BR /&gt; at pdwserver.j_load_earn_mall_collinson_0_1.j_load_earn_mall_collinson.tHashInput_2Process(j_load_earn_mall_collinson.java:21000)&lt;BR /&gt; at pdwserver.j_load_earn_mall_collinson_0_1.j_load_earn_mall_collinson.tJava_3Process(j_load_earn_mall_collinson.java:21125)&lt;BR /&gt; at pdwserver.j_load_earn_mall_collinson_0_1.j_load_earn_mall_collinson.tJava_4Process(j_load_earn_mall_collinson.java:11117)&lt;BR /&gt; at pdwserver.j_load_earn_mall_collinson_0_1.j_load_earn_mall_collinson.tOracleInput_1Process(j_load_earn_mall_collinson.java:11019)&lt;BR /&gt; at pdwserver.j_load_earn_mall_collinson_0_1.j_load_earn_mall_collinson.tVerticaRow_1Process(j_load_earn_mall_collinson.java:8529)&lt;BR /&gt; at pdwserver.j_load_earn_mall_collinson_0_1.j_load_earn_mall_collinson.runJobInTOS(j_load_earn_mall_collinson.java:22239)&lt;BR /&gt;Caused by: com.vertica.support.exceptions.GeneralException: (100023) Unexpected message type: ReadyForQuery.&lt;BR /&gt; ... 14 more&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBvo.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157377iC853003839F518A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBvo.png" alt="0683p000009MBvo.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBvt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142709i3C38799A6EE67743/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBvt.png" alt="0683p000009MBvt.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 27 Nov 2013 15:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Anyone-had-a-problem-when-trying-to-update-0-rows-in-a/m-p/2272479#M49742</guid>
      <dc:creator>soowork</dc:creator>
      <dc:date>2013-11-27T15:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone had a problem when trying to update 0 rows in a tVerticaOutput?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Anyone-had-a-problem-when-trying-to-update-0-rows-in-a/m-p/2272480#M49743</link>
      <description>In case it is useful to anyone, I worked around this issue by stashing the results of the flow (which will be 0 or more rows) in a tHashOutput. Then I have a second subjob, joined by an If trigger, and I grab the values back from the hash (using a tHashInput) and write the non-zero updates to my Vertica table. 
&lt;BR /&gt;I put this sort of code in the If trigger - 
&lt;BR /&gt; (Integer)globalMap.get("tHashOutput_2_NB_LINE") &amp;gt; 0 
&lt;BR /&gt;This works, but it is inelegant. Feels like there must be a better way. 
&lt;BR /&gt;Note that if I have 0 rows to *insert*, that works fine. The error only comes up when trying to update 0 rows.</description>
      <pubDate>Thu, 28 Nov 2013 14:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Anyone-had-a-problem-when-trying-to-update-0-rows-in-a/m-p/2272480#M49743</guid>
      <dc:creator>soowork</dc:creator>
      <dc:date>2013-11-28T14:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone had a problem when trying to update 0 rows in a tVerticaOutput?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Anyone-had-a-problem-when-trying-to-update-0-rows-in-a/m-p/2272481#M49744</link>
      <description>Does Talend, or anyone else, have a better way around this error??  I have encountered the same issue on a different project, and really don't want to use the workaround I found last time.</description>
      <pubDate>Tue, 11 Mar 2014 01:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Anyone-had-a-problem-when-trying-to-update-0-rows-in-a/m-p/2272481#M49744</guid>
      <dc:creator>soowork</dc:creator>
      <dc:date>2014-03-11T01:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone had a problem when trying to update 0 rows in a tVerticaOutput?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Anyone-had-a-problem-when-trying-to-update-0-rows-in-a/m-p/2272482#M49745</link>
      <description>Hi, &lt;BR /&gt;Would you mind giving us a whole job design and job requirement so that we can see if there is an optimistic workflow for your job design.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 11 Mar 2014 02:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Anyone-had-a-problem-when-trying-to-update-0-rows-in-a/m-p/2272482#M49745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-11T02:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone had a problem when trying to update 0 rows in a tVerticaOutput?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Anyone-had-a-problem-when-trying-to-update-0-rows-in-a/m-p/2272483#M49746</link>
      <description>Hi Sabrina,
&lt;BR /&gt;Are you able to use tVerticaOutput with an action of either Update or Delete and pass in 0 rows at runtime? When I do that, I get the error described. 
&lt;BR /&gt;I would expect Talend to just recognize that there are no Updates (and/or no Deletes) to do and finish gracefully. Note that if I am do an Insert using tVerticaOutput and I pass it 0 rows, it happily and gracefully handles that.
&lt;BR /&gt;There are lots of cases where I find that I want to split my flow and do something different for Inserts than for Updates or Deletes. I don't really want a workaround - I have one already by hand-crafting SQL using tVerticaRow or by using the Hash components as described in my post. I just want tVerticaOutput to work.
&lt;BR /&gt;I simply want to understand why Talend it crashes when doing a tVerticaOutput with either Update or Delete and it happens to have 0 rows flowing in.
&lt;BR /&gt;Can you assist? I would be so grateful.</description>
      <pubDate>Tue, 11 Mar 2014 15:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Anyone-had-a-problem-when-trying-to-update-0-rows-in-a/m-p/2272483#M49746</guid>
      <dc:creator>soowork</dc:creator>
      <dc:date>2014-03-11T15:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone had a problem when trying to update 0 rows in a tVerticaOutput?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Anyone-had-a-problem-when-trying-to-update-0-rows-in-a/m-p/2272484#M49747</link>
      <description>Hi, 
&lt;BR /&gt;Please open a jira issue of DI project on 
&lt;A href="https://jira.talendforge.org/secure/Dashboard.jspa" target="_blank" rel="nofollow noopener noreferrer"&gt;Talend Bug Tracker&lt;/A&gt;, our developer will check it. 
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 12 Mar 2014 07:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Anyone-had-a-problem-when-trying-to-update-0-rows-in-a/m-p/2272484#M49747</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-12T07:03:31Z</dc:date>
    </item>
  </channel>
</rss>

