<?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: tDBRow bug - unable to run update statements for Postgres tables in tDBRow (Postgres) components in sequence in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361664#M125973</link>
    <description>&lt;P&gt;Thanks ​&amp;nbsp;@Shicong Hong​&amp;nbsp;and @Xuan Junior​&amp;nbsp;for your pointers. I have managed to isolate the problem as @Xuan Junior​&amp;nbsp;mentioned down to two separate DB Connections being used interchangeably across multiple tDBInputs and tDBRows leading to this issue. I have found that using one single connection to &lt;B&gt;select &lt;/B&gt;(tDBInput) and &lt;B&gt;update &lt;/B&gt;(tDBRow) the data across source tables has helped minimising any values not being passed from one table (db schema #1) to another (db schema #2) and resolved the problem I was facing. In order to troubleshoot it, I had to deactivate one of the connections and resolve the problem. This has ensured that the values are being selected/updated correctly at the source tables. However, I have used the second DB Connection solely for &lt;B&gt;updates &lt;/B&gt;(tDBOutput) for target system tables. I was also restricted by the fact that I could not commit anywhere during the entire ETL process (target system restrictions) and had to use a tDBCommit only at the end. &lt;/P&gt;</description>
    <pubDate>Fri, 03 Sep 2021 21:55:24 GMT</pubDate>
    <dc:creator>rohsuh</dc:creator>
    <dc:date>2021-09-03T21:55:24Z</dc:date>
    <item>
      <title>tDBRow bug - unable to run update statements for Postgres tables in tDBRow (Postgres) components in sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361657#M125966</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using Talend Data Management Platform Studio version 7.2 (see attachment for patch details)&lt;/P&gt;&lt;P&gt;I am working on a job where I am running UPDATE statements in tDBRow (Postgres) components updating certain columns different staging tables after processing them in the following manner.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The values being populated into the columns come from context variables. These context variables are being populated at runtime.&lt;/P&gt;&lt;P&gt;tJava -&amp;gt; tDBInput (Postgres) -&amp;gt;tJavaRow (populate context variables)&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;gt; OnSubJobOk -&amp;gt;&lt;/P&gt;&lt;P&gt;tJava&lt;/P&gt;&lt;P&gt;-&amp;gt; OnSubJobOk -&amp;gt;&lt;/P&gt;&lt;P&gt;tDBRow (Postgres) Update # 1&lt;/P&gt;&lt;P&gt;-&amp;gt; OnSubJobOk-&amp;gt;&lt;/P&gt;&lt;P&gt;tJava -&amp;gt; tDBInput (Postgres) -&amp;gt;tJavaRow (populate context variables)&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;gt; OnSubJobOk -&amp;gt;&lt;/P&gt;&lt;P&gt;tDBRow (Postgres) Update # 2&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;gt; OnSubJobOk -&amp;gt;&lt;/P&gt;&lt;P&gt;tJava -&amp;gt; tDBInput (Postgres) -&amp;gt;tJavaRow (populate context variables)&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;gt; OnSubJobOk -&amp;gt;&lt;/P&gt;&lt;P&gt;tDBRow (Postgres) Update # 3&lt;/P&gt;&lt;P&gt;-&amp;gt; OnSubJobOk -&amp;gt;&lt;/P&gt;&lt;P&gt;tJava -&amp;gt; tDBInput (Postgres) -&amp;gt;tJavaRow (populate context variables)&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;gt; OnSubJobOk -&amp;gt;&lt;/P&gt;&lt;P&gt;tDBRow (Postgres) Update # 4&lt;/P&gt;&lt;P&gt;Job Snapshot shared&amp;nbsp;in attachment.&lt;/P&gt;&lt;P&gt;The first update statement, runs successfully and updates the relevant columns (&lt;B&gt;green&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;arrow&lt;/B&gt;) if records are available to satisfy the criteria in the where clause. However, any subsequent update statement either within the same tDBRow (Postgres) or in subsequent tDBRow (s) execute but do not update the relevant columns in different tables (&lt;B&gt;red arrows&lt;/B&gt;) even if there are records that satisfy the criteria in the where clause.&lt;/P&gt;&lt;P&gt;My colleague and I tried to override the underlying &lt;B&gt;postgresql-42.2.5.jar &lt;/B&gt;with the latest version available in Maven website - &lt;B&gt;postgresql-42.2.23.jar &lt;/B&gt;within the Talend Studio but were unsuccessful as the job errored .&lt;/P&gt;&lt;P&gt;Can you please help in troubleshooting and resolving this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Rohini&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361657#M125966</guid>
      <dc:creator>rohsuh</dc:creator>
      <dc:date>2024-11-15T23:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: tDBRow bug - unable to run update statements for Postgres tables in tDBRow (Postgres) components in sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361658#M125967</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I don't think the issue is related to the driver jar file Do you use an existing DB connection or create the connection on each tDBRow component? If former, don't forget to use a tDBCommit to commit the change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 02:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361658#M125967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-30T02:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: tDBRow bug - unable to run update statements for Postgres tables in tDBRow (Postgres) components in sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361659#M125968</link>
      <description>&lt;P&gt;could you post the actual error message ? thx&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 08:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361659#M125968</guid>
      <dc:creator>XJ_1630</dc:creator>
      <dc:date>2021-08-30T08:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: tDBRow bug - unable to run update statements for Postgres tables in tDBRow (Postgres) components in sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361660#M125969</link>
      <description>&lt;P&gt;hi @Shicong Hong​&amp;nbsp;, we use an existing tPostgresqlConnection throughout the job and we use a tPostgresqlCommit at the end to commit changes. Its confusing as to why the first tDBRow works and the rest dont.&lt;/P&gt;&lt;P&gt;@Xuan Junior​&amp;nbsp;there are no errors but a behaviour which is unexpected.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 13:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361660#M125969</guid>
      <dc:creator>rohsuh</dc:creator>
      <dc:date>2021-09-01T13:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: tDBRow bug - unable to run update statements for Postgres tables in tDBRow (Postgres) components in sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361661#M125970</link>
      <description>&lt;P&gt;if you are updating &amp;amp; retrieving details to update your variables (based on your screenshot) : check that the value of your variable is as you expect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@roshu is correct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you use one connection to update records&lt;/P&gt;&lt;P&gt;**but** a different connection for reading records WHILE changes are not committed;&lt;/P&gt;&lt;P&gt;your variable may not read uncommitted changes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;enjoy the views over the lovely little airport in Oxford-shire ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 14:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361661#M125970</guid>
      <dc:creator>XJ_1630</dc:creator>
      <dc:date>2021-09-01T14:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: tDBRow bug - unable to run update statements for Postgres tables in tDBRow (Postgres) components in sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361662#M125971</link>
      <description>&lt;P&gt;@Xuan Junior​&amp;nbsp;,In the whole job, I am using 2 DB Connections to connect to 2 separate schemas. I am retrieving value using one DB connection (tPostgresConnection_1) but passing that value to a context variable. Then I am using the value in the context variable to update column in a table using the second DB Connection (tPostgresConnection_1) . Will this approach not work? How do I get around this issue, if that's what's causing the update not to work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rohini&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 14:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361662#M125971</guid>
      <dc:creator>rohsuh</dc:creator>
      <dc:date>2021-09-01T14:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: tDBRow bug - unable to run update statements for Postgres tables in tDBRow (Postgres) components in sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361663#M125972</link>
      <description>&lt;P&gt;@Rohini Subash​&amp;nbsp;- in this Forum is difficult to assert if the approach is correct or not;   we do not have sufficient details of the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the above responses provide good pointers to seek a solution.&lt;/P&gt;&lt;P&gt;and, you are getting there!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;keep us posted&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, i meant that @Shicong Hong​&amp;nbsp;was correct (see above, it was late!)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 23:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361663#M125972</guid>
      <dc:creator>XJ_1630</dc:creator>
      <dc:date>2021-09-01T23:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: tDBRow bug - unable to run update statements for Postgres tables in tDBRow (Postgres) components in sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361664#M125973</link>
      <description>&lt;P&gt;Thanks ​&amp;nbsp;@Shicong Hong​&amp;nbsp;and @Xuan Junior​&amp;nbsp;for your pointers. I have managed to isolate the problem as @Xuan Junior​&amp;nbsp;mentioned down to two separate DB Connections being used interchangeably across multiple tDBInputs and tDBRows leading to this issue. I have found that using one single connection to &lt;B&gt;select &lt;/B&gt;(tDBInput) and &lt;B&gt;update &lt;/B&gt;(tDBRow) the data across source tables has helped minimising any values not being passed from one table (db schema #1) to another (db schema #2) and resolved the problem I was facing. In order to troubleshoot it, I had to deactivate one of the connections and resolve the problem. This has ensured that the values are being selected/updated correctly at the source tables. However, I have used the second DB Connection solely for &lt;B&gt;updates &lt;/B&gt;(tDBOutput) for target system tables. I was also restricted by the fact that I could not commit anywhere during the entire ETL process (target system restrictions) and had to use a tDBCommit only at the end. &lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 21:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361664#M125973</guid>
      <dc:creator>rohsuh</dc:creator>
      <dc:date>2021-09-03T21:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: tDBRow bug - unable to run update statements for Postgres tables in tDBRow (Postgres) components in sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361665#M125974</link>
      <description>&lt;P&gt;@Shicong Hong​&amp;nbsp;@Xuan Junior​&amp;nbsp;I am using tJDBCxxxx components to satisfy the above requirements I have and this seems to work without any of the above.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 12:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBRow-bug-unable-to-run-update-statements-for-Postgres-tables/m-p/2361665#M125974</guid>
      <dc:creator>rohsuh</dc:creator>
      <dc:date>2022-02-16T12:25:17Z</dc:date>
    </item>
  </channel>
</rss>

