<?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: tDBOutput (mySQL): truncate and 'Insert or update' keeps table empty in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tDBOutput-mySQL-truncate-and-Insert-or-update-keeps-table-empty/m-p/2342536#M110391</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;From your screenshot, I see 0 rows are extracted from response string, add a tLogRow before tDBOutput to check if there has data.&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>Tue, 17 Jan 2023 14:35:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-01-17T14:35:20Z</dc:date>
    <item>
      <title>tDBOutput (mySQL): truncate and 'Insert or update' keeps table empty</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBOutput-mySQL-truncate-and-Insert-or-update-keeps-table-empty/m-p/2342535#M110390</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a tDBOutput component which reads data from a tRest component and writes it into a mySQL table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bHj1uAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132299i7FBECC0217D7B024/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bHj1uAAC.png" alt="0695b00000bHj1uAAC.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The property 'Action on Table' of tDBOutput_1 (mytable) is set to 'Default' and 'Action on data' is set to 'Insert or update'.&lt;/P&gt;&lt;P&gt;If I run the job then I can see the data in mySQL table as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to truncate the mySQL table each time the job is running to get 'fresh' data and consider deleted records in the source table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set the property 'Action on Table' of tDBOutput_1 (mytable) to 'Truncate' and 'Action on data' keep as 'Insert or update'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run the job now the mySQL table is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expected that 'Action on table' = 'Truncate' truncates the table and 'Action on data' = 'insert or update' inserts the data again.&lt;/P&gt;&lt;P&gt;But as I mentioned the table is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am misisng? How to delete/truncate the table each time the job is running ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBOutput-mySQL-truncate-and-Insert-or-update-keeps-table-empty/m-p/2342535#M110390</guid>
      <dc:creator>mr_burns</dc:creator>
      <dc:date>2024-11-15T22:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: tDBOutput (mySQL): truncate and 'Insert or update' keeps table empty</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBOutput-mySQL-truncate-and-Insert-or-update-keeps-table-empty/m-p/2342536#M110391</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;From your screenshot, I see 0 rows are extracted from response string, add a tLogRow before tDBOutput to check if there has data.&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>Tue, 17 Jan 2023 14:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBOutput-mySQL-truncate-and-Insert-or-update-keeps-table-empty/m-p/2342536#M110391</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-17T14:35:20Z</dc:date>
    </item>
  </channel>
</rss>

