<?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 Creating a task to just count source table records in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Creating-a-task-to-just-count-source-table-records/m-p/1976559#M3631</link>
    <description>&lt;P&gt;I don't have direct access to the source tables so I would like to create a replicate task to just count the records in the source tables.&amp;nbsp; Can I create task to just count the source table records?&amp;nbsp; I would prefer not to transfer gb's of data, but can I create a task to move data to a test table but not impact other tasks using the same source table?&amp;nbsp; Could I create a filter that would prevent data from being transferred but yet give me a count in the logs or on the monitor on the total records scanned? Any other ideas?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 20:56:56 GMT</pubDate>
    <dc:creator>RaySRI1</dc:creator>
    <dc:date>2022-09-02T20:56:56Z</dc:date>
    <item>
      <title>Creating a task to just count source table records</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Creating-a-task-to-just-count-source-table-records/m-p/1976559#M3631</link>
      <description>&lt;P&gt;I don't have direct access to the source tables so I would like to create a replicate task to just count the records in the source tables.&amp;nbsp; Can I create task to just count the source table records?&amp;nbsp; I would prefer not to transfer gb's of data, but can I create a task to move data to a test table but not impact other tasks using the same source table?&amp;nbsp; Could I create a filter that would prevent data from being transferred but yet give me a count in the logs or on the monitor on the total records scanned? Any other ideas?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 20:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Creating-a-task-to-just-count-source-table-records/m-p/1976559#M3631</guid>
      <dc:creator>RaySRI1</dc:creator>
      <dc:date>2022-09-02T20:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a task to just count source table records</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Creating-a-task-to-just-count-source-table-records/m-p/1976561#M3632</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You can try this -&amp;nbsp; run a full load only task using a NULL target endpoint&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please find the steps below to create NULL target endpoint,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. hold down CTRL key, click on "Manage Endpoint Connections".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. click "New Endpoint Connection".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. set the Role to "Target"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. In the "Type" list, you should find a type called "NULL Target (&amp;gt;/dev/null)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then please use this NULL Target endpoint in your task.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Lyka&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 20:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Creating-a-task-to-just-count-source-table-records/m-p/1976561#M3632</guid>
      <dc:creator>lyka</dc:creator>
      <dc:date>2022-09-02T20:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a task to just count source table records</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Creating-a-task-to-just-count-source-table-records/m-p/1976566#M3634</link>
      <description>&lt;P&gt;That works! thank you very much for the quick response. Weekend is starting on a high note.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 21:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Creating-a-task-to-just-count-source-table-records/m-p/1976566#M3634</guid>
      <dc:creator>RaySRI1</dc:creator>
      <dc:date>2022-09-02T21:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a task to just count source table records</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Creating-a-task-to-just-count-source-table-records/m-p/1976568#M3635</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/192645"&gt;@RaySRI1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;im glad it worked out! have a great long weekend &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Lyka&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 21:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Creating-a-task-to-just-count-source-table-records/m-p/1976568#M3635</guid>
      <dc:creator>lyka</dc:creator>
      <dc:date>2022-09-02T21:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a task to just count source table records</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Creating-a-task-to-just-count-source-table-records/m-p/1977199#M3638</link>
      <description>&lt;P&gt;The solution you chose is still transferring all rows from the source to Replicate, only to ignore them after that. That does not seem to address your stated objective "&amp;nbsp;I would prefer not to transfer gb's of data,"&lt;/P&gt;
&lt;P&gt;Is there a single row (system) table in the source DB, not part of the Replication?&amp;nbsp; See if you can solve this using a bunch of source lookups using that single row in &amp;lt;some_schema&amp;gt;.&amp;lt;some_table_with_1_row&amp;gt; as the table to load in your count task but dropping all existing columns for that table and adding a fresh column for each table for which you need a count using a source_lookup as expression. &lt;BR /&gt;Each of those (many) expressions would look like: &lt;BR /&gt;Added column name = &amp;lt;own&amp;gt;_&amp;lt;table&amp;gt;_&amp;lt;count&amp;gt; &lt;BR /&gt;Expression = source_lookup(0,'&amp;lt;some_schema&amp;gt;','&amp;lt;some_table_with_1_row&amp;gt;',&lt;BR /&gt;'(SELECT COUNT(1) FROM &amp;lt;own&amp;gt;.&amp;lt;table&amp;gt;)','1=1')&lt;/P&gt;
&lt;P&gt;Can you create a helper table in the source database such as: create table table_row_counts ( owner_name varchar(30), table_name varchar(30));&lt;BR /&gt;Now add a single column with a single expression to count for each source row: source_lookup(0,$OWNER_NAME,$TABLE_NAME,'COUNT(1)','1=1')&lt;/P&gt;
&lt;P&gt;Both methods tested, and they work for me for an Oracle source.&lt;/P&gt;
&lt;P&gt;No data, other than the counts transferred (and the owner/tablename columns for the second solution).&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 03:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Creating-a-task-to-just-count-source-table-records/m-p/1977199#M3638</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2022-09-06T03:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a task to just count source table records</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Creating-a-task-to-just-count-source-table-records/m-p/1977589#M3653</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/192645"&gt;@RaySRI1&lt;/a&gt;&amp;nbsp;, copy&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/113691"&gt;@lyka&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;if the source DB is Oracle then&amp;nbsp;&lt;SPAN&gt;Materialized View can be archive that by the most efficient way. the key problem is if it's allowed to create such a view in PROD system.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 14:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Creating-a-task-to-just-count-source-table-records/m-p/1977589#M3653</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2022-09-06T14:09:43Z</dc:date>
    </item>
  </channel>
</rss>

