<?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: Load a table with no Primary Keys or Unique Keys In Qlik Replicate in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025241#M4713</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/212845"&gt;@nabeelaslam1994&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Totally agree with&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121014"&gt;@Dana_Baldwin&lt;/a&gt;&amp;nbsp;, no way to use a custom query within Replicate, maybe we can use other options which is out of Replicate. See how about to create a VIEW in DB400 to get&amp;nbsp;&lt;SPAN&gt;distinct&amp;nbsp;rows, and then use the VIEW as source table in Replicate task? Note it can be used in Full Load only. A sample:&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE style="background-color: lightgrey; width: 100%; border-style: none;" border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;FONT face="courier new,courier"&gt;CREATE VIEW apsupdb/johnvw2 AS (SELECT DISTINCT id,name FROM apsupdb/emp)&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2023 01:56:08 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2023-01-13T01:56:08Z</dc:date>
    <item>
      <title>Load a table with no Primary Keys or Unique Keys In Qlik Replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025095#M4704</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;I am trying to see if how can i load a table which does not have a primary or unique keys in it. Is there a way to do a DISTINCT when loading a table into a target? I need all records to be distinct when loading into target.&lt;/P&gt;
&lt;P&gt;Nabeel&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 17:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025095#M4704</guid>
      <dc:creator>nabeelaslam1994</dc:creator>
      <dc:date>2023-01-12T17:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Load a table with no Primary Keys or Unique Keys In Qlik Replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025111#M4705</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/212845"&gt;@nabeelaslam1994&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Will there be a PK/UI on the target table?&lt;/P&gt;
&lt;P&gt;What is your source &amp;amp; target database product?&lt;/P&gt;
&lt;P&gt;You can also define which columns the task should use to enforce uniqueness on the target. Generally speaking if a PK/UI is defined on the target, Replicate will use that, else it will use what is defined in the task (depends on the target endpoint).&lt;/P&gt;
&lt;P&gt;More information can be found here:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/replicate/November2022/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/tasks_transformations.htm#Defining%20transformations%20for%20a%20single%20table/view" target="_blank"&gt;Defining transformations for a single table/view #Defining transformations for a single table/view | Qlik Replicate Help&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 18:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025111#M4705</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2023-01-12T18:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load a table with no Primary Keys or Unique Keys In Qlik Replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025148#M4708</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121014"&gt;@Dana_Baldwin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes I am familiar with that but if the table has REALLY NO primary key/ UNIQUE Key combination in it, and there are duplicates record, How can we ignore those and just bring on into target? Some sort of DISTINCT feature.&lt;/P&gt;
&lt;P&gt;Source Endpoint: DB2 for Iseries&lt;/P&gt;
&lt;P&gt;Target Endpoint: Snowflake&lt;/P&gt;
&lt;P&gt;Nabeel&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 19:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025148#M4708</guid>
      <dc:creator>nabeelaslam1994</dc:creator>
      <dc:date>2023-01-12T19:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Load a table with no Primary Keys or Unique Keys In Qlik Replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025197#M4710</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/212845"&gt;@nabeelaslam1994&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There isn't a way to modify the select query against the source to use the distinct keyword. At the moment the only suggestion I have would be to make every column a key column in the table definition within Replicate. I will reply again if I find a different solution.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dana&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 21:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025197#M4710</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2023-01-12T21:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Load a table with no Primary Keys or Unique Keys In Qlik Replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025241#M4713</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/212845"&gt;@nabeelaslam1994&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Totally agree with&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121014"&gt;@Dana_Baldwin&lt;/a&gt;&amp;nbsp;, no way to use a custom query within Replicate, maybe we can use other options which is out of Replicate. See how about to create a VIEW in DB400 to get&amp;nbsp;&lt;SPAN&gt;distinct&amp;nbsp;rows, and then use the VIEW as source table in Replicate task? Note it can be used in Full Load only. A sample:&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE style="background-color: lightgrey; width: 100%; border-style: none;" border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;FONT face="courier new,courier"&gt;CREATE VIEW apsupdb/johnvw2 AS (SELECT DISTINCT id,name FROM apsupdb/emp)&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 01:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025241#M4713</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2023-01-13T01:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load a table with no Primary Keys or Unique Keys In Qlik Replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025251#M4714</link>
      <description>&lt;P&gt;There is a way to modify the source unload query but only the WHERE clause, not the FROM no SELECT part. This method is called 'passthru' queries. See links below. Unfortunately I don't think that'll solve your problem.&lt;/P&gt;
&lt;P&gt;I suppose you not make any changes on the source to 'clean it up'? Like just delete the dups, or have a count of duplicates column instead of actual duplicates?&amp;nbsp; 99 out of 100 Replicate users are barely allowed to 'look' at the date and certainly not allowed to change the source data. Yes I know.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your best alternative is a VIEW on the source as suggested.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next best alternative is a VIEW on the target. Load to a 'helper' table and have the real table name be 'SELECT DISTINCT' view on the helper. Replicate will happily rename the target to 'helper'.&lt;/P&gt;
&lt;P&gt;May I suggest the following older articles as background reading?&lt;/P&gt;
&lt;P&gt;#&lt;A href="https://community.qlik.com/t5/Qlik-Replicate/Filtering-duplicates-using-Fullload-Passthru-Filter/td-p/1891227" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Replicate/Filtering-duplicates-using-Fullload-Passthru-Filter/td-p/1891227&lt;/A&gt;&lt;BR /&gt;#&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Filter-for-last-90-days-of-data-in-Qlik-Replicate/ta-p/1880761" target="_blank"&gt;https://community.qlik.com/t5/Official-Support-Articles/Filter-for-last-90-days-of-data-in-Qlik-Replicate/ta-p/1880761&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 03:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025251#M4714</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-01-13T03:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Load a table with no Primary Keys or Unique Keys In Qlik Replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025586#M4717</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I can not make a view in the source database and no changes are allowed except with a proper change request. I believe AS400 Sourcepoint does not allow to see a view in the table setting. I am trying to see if RRN option in source endpoint settings can control the dupes in target..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nabeel&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 15:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025586#M4717</guid>
      <dc:creator>nabeelaslam1994</dc:creator>
      <dc:date>2023-01-13T15:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Load a table with no Primary Keys or Unique Keys In Qlik Replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025604#M4718</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;no changes are allowed except with a proper change request.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;That's Standard Operation Procedure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It shouldn't stop you and you shouldn't be making the request, but whoever needs the target&amp;nbsp; data. You tell your 'customer' that needs the Replication task that you can only deliver the optimal output with XXX changes done on the source. Let them fight the good fight or realize that their needs can not be met.&lt;/P&gt;
&lt;P&gt;I'm thinking a view on target me be better for all involved. Biggest drawback is that too much data many be transferred.&lt;/P&gt;
&lt;P&gt;Hein&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 15:33:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025604#M4718</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-01-13T15:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load a table with no Primary Keys or Unique Keys In Qlik Replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025608#M4719</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/212845"&gt;@nabeelaslam1994&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Yes, using RRN should also alleviate this issue.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/replicate/November2022/Content/Replicate/Main/IBM%20DB2%20for%20iSeries/advanced_prop_db2_source.htm" target="_blank"&gt;Setting advanced connection properties | Qlik Replicate Help&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;For the sake of providing complete information, if you were to go with the route of defining all columns within Replicate as key columns, you would also need to enable upsert &amp;amp; merge.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Implementing-UPSERT-and-MERGE-modes-by-applying-a/ta-p/1780009" target="_blank"&gt;https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Implementing-UPSERT-and-MERGE-modes-by-applying-a/ta-p/1780009&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dana&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 15:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025608#M4719</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2023-01-13T15:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load a table with no Primary Keys or Unique Keys In Qlik Replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025623#M4720</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp;The other issue with target database is SNOWFLAKE. I believe there is no key enforcement when it comes to snowflake.&lt;/P&gt;
&lt;P&gt;Nabeel&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 15:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Load-a-table-with-no-Primary-Keys-or-Unique-Keys-In-Qlik/m-p/2025623#M4720</guid>
      <dc:creator>nabeelaslam1994</dc:creator>
      <dc:date>2023-01-13T15:58:26Z</dc:date>
    </item>
  </channel>
</rss>

