<?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 Full load order by index in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2126853#M7636</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I recently read through this article which showed how we can get the full load to select the table in order of index in order to avoid duplicates.&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Handling-Duplicate-Rows-when-doing-a-Full-Load-in-Replicate/ta-p/1712074" target="_self"&gt;&amp;nbsp;https://community.qlik.com/t5/Official-Support-Articles/Handling-Duplicate-Rows-when-doing-a-Full-Load-in-Replicate/ta-p/1712074&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I think I've followed all the steps correctly however I can't seem to get the syntax to parse. When I click parse nothing happens and no messages appear. (Success nor fail). I can't click&amp;nbsp;&lt;STRONG&gt;ok&amp;nbsp;&lt;/STRONG&gt;either because nothing happens.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MoeyE_2-1696915368668.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117946iC90F11F81495933A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MoeyE_2-1696915368668.png" alt="MoeyE_2-1696915368668.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I played with the syntax a bit more and found that this statement allows me to parse successfully however I'm not sure if this achieves the same thing. Can someone please confirm? Thank you.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MoeyE_0-1696915273079.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117944iCBF755C8BB6D5644/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MoeyE_0-1696915273079.png" alt="MoeyE_0-1696915273079.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Mohammed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2023 05:33:23 GMT</pubDate>
    <dc:creator>MoeE</dc:creator>
    <dc:date>2023-10-10T05:33:23Z</dc:date>
    <item>
      <title>Full load order by index</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2126853#M7636</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I recently read through this article which showed how we can get the full load to select the table in order of index in order to avoid duplicates.&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Handling-Duplicate-Rows-when-doing-a-Full-Load-in-Replicate/ta-p/1712074" target="_self"&gt;&amp;nbsp;https://community.qlik.com/t5/Official-Support-Articles/Handling-Duplicate-Rows-when-doing-a-Full-Load-in-Replicate/ta-p/1712074&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I think I've followed all the steps correctly however I can't seem to get the syntax to parse. When I click parse nothing happens and no messages appear. (Success nor fail). I can't click&amp;nbsp;&lt;STRONG&gt;ok&amp;nbsp;&lt;/STRONG&gt;either because nothing happens.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MoeyE_2-1696915368668.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117946iC90F11F81495933A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MoeyE_2-1696915368668.png" alt="MoeyE_2-1696915368668.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I played with the syntax a bit more and found that this statement allows me to parse successfully however I'm not sure if this achieves the same thing. Can someone please confirm? Thank you.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MoeyE_0-1696915273079.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117944iCBF755C8BB6D5644/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MoeyE_0-1696915273079.png" alt="MoeyE_0-1696915273079.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Mohammed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 05:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2126853#M7636</guid>
      <dc:creator>MoeE</dc:creator>
      <dc:date>2023-10-10T05:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Full load order by index</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2126860#M7638</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/214271"&gt;@MoeE&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Add the filter&amp;nbsp;&lt;SPAN&gt;directly into the Record Selection Condition [Instead of adding it in Expression Builder] Click okay, then save your task.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;--FILTER: 1=1) ORDER BY $AddressIDs&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Suresh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 06:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2126860#M7638</guid>
      <dc:creator>sureshkumar</dc:creator>
      <dc:date>2023-10-10T06:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Full load order by index</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2127154#M7657</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/214271"&gt;@MoeE&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Looks like the article is out of date. I will try to amend it when I have time.&lt;/P&gt;
&lt;P&gt;Now you can follow below steps:&lt;/P&gt;
&lt;P&gt;1. Go to Replicate console &lt;STRONG&gt;Design perspective&lt;/STRONG&gt; window&lt;/P&gt;
&lt;P&gt;2. Choose the table, press the&lt;STRONG&gt; left &amp;lt;Ctrl&amp;gt; key&lt;/STRONG&gt;, and click &amp;lt;&lt;STRONG&gt;Table Settings&lt;/STRONG&gt;&amp;gt; button&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1696951918551.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117987i8007540A22B05BE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_0-1696951918551.png" alt="john_wang_0-1696951918551.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. Then you will get the "&lt;SPAN&gt;&lt;STRONG&gt;Fullload Passthru Filter&lt;/STRONG&gt;" window in Filter area&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_1-1696952098932.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/117988i48985F73574B6FA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_1-1696952098932.png" alt="john_wang_1-1696952098932.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;4. Add the below expression in Fullload Passthru Filter input area:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; 1=1 ) ORDER BY ID,NAME --&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;where &lt;EM&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ID,NAME&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt; is the columns name you want to order by. please take note there are two&amp;nbsp;minus signs at the end of the expression.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 15:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2127154#M7657</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2023-10-10T15:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Full load order by index</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2127262#M7663</link>
      <description>&lt;P&gt;Hi John,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the response.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1=1 ) ORDER BY $AddressID --&amp;nbsp;&lt;/STRONG&gt;doesn't seem to work at all whether I put it in the &lt;STRONG&gt;Passthru filter&lt;/STRONG&gt; or the &lt;STRONG&gt;Record Selection Condition&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Removing the parentheses like this, "&lt;STRONG&gt;1=1 ORDER BY $AddressID --&lt;/STRONG&gt;", or adding another parentheses likes this, "&lt;STRONG&gt;(1=1) ORDER BY $AddressID --&lt;/STRONG&gt;", lets me run the full load with no errors. However this only works when I enter it into the&amp;nbsp;&lt;STRONG&gt;Record Selection Condition&amp;nbsp;&lt;/STRONG&gt;only but not the&amp;nbsp;&lt;STRONG&gt;Passthru Filter&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Do you know if my new syntax is still doing the order by chosen column? e.g. will it do the same thing as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"1=1 ) ORDER BY ID,NAME --"&amp;nbsp;&lt;/STRONG&gt;?&lt;/P&gt;
&lt;P&gt;2. It also seems to run (in Record Selection Condition) with without the two minus signs at the end. What is the purpose of those two signs? "&lt;STRONG&gt;1=1 ORDER BY $AddressID&lt;/STRONG&gt;"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mohammed&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 00:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2127262#M7663</guid>
      <dc:creator>MoeE</dc:creator>
      <dc:date>2023-10-11T00:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Full load order by index</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2127270#M7664</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/214271"&gt;@MoeE&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your feedback.&lt;/P&gt;
&lt;P&gt;I have a detailed description of the expression syntax, see my comment in&amp;nbsp;&lt;A title="Qlik Replicate | Custom SQL" href="https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Custom-SQL/m-p/2036218#M4945" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Qlik Replicate | Custom SQL&lt;/SPAN&gt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Regarding your doubts:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;&lt;STRONG&gt;1=1 ) ORDER BY $AddressID --&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;doesn't seem to work at all whether I put it in the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Passthru filter&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;or the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Record Selection Condition&lt;/STRONG&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think the column name is incorrect - unless in the database table the column name contains "$".&lt;/P&gt;
&lt;P&gt;In short, the column name presents here is exactly the same name as the table because the expression in&amp;nbsp;&lt;SPAN&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Passthru filter&lt;/STRONG&gt; will be delivered to the source database for executing as is.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;SPAN&gt;2. It also seems to run (in Record Selection Condition) with without the two minus signs at the end. What is the purpose of those two signs? "&lt;/SPAN&gt;&lt;STRONG&gt;1=1 ORDER BY $AddressID&lt;/STRONG&gt;&lt;SPAN&gt;"&amp;nbsp;&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm not sure what's the Replicate version you are running now. The expression syntax was changed a little between different versions. The expression samples I provided today work in Replicate 2022.11 &amp;amp; 2023.5.&lt;/P&gt;
&lt;P&gt;If you hit any error, please turn SOURCE_UNLOAD to Verbose, and provide the few of lines (with the SQL statements line and error messages line) I'd love to work with you together to fix it.&lt;/P&gt;
&lt;P&gt;Good Luck,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 01:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2127270#M7664</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2023-10-11T01:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Full load order by index</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2127718#M7683</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;STRONG&gt;1=1 ) ORDER BY $AddressID&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;--&amp;nbsp;doesn't seem to work at all whether I put it in the&amp;nbsp;Passthru filter&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Duh... it is a PASSED THRU and $AddressID is a Replicate variable, not a source DB column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replicate just adds a WHERE clause to the source SELECT.&lt;/P&gt;
&lt;P&gt;Seems to me you need to drop that closing parenthesis to make it a valid SQL where close.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;No Quotes.&lt;/P&gt;
&lt;P&gt;If you still have trouble share the relevant chunk(s) from the exported task JSON&lt;/P&gt;
&lt;P&gt;Better still, run with a single tiny test table only and LOGGING for SOURCE_UNLOAD set to debug or VERBOSE&lt;/P&gt;
&lt;P&gt;Check the log to see if you can spot the issue yourself and share (parts) if help is still needed.&lt;/P&gt;
&lt;P&gt;Hein.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 22:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2127718#M7683</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-10-11T22:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Full load order by index</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2127722#M7685</link>
      <description>&lt;P&gt;Hi John, Hi Hein,&lt;/P&gt;
&lt;P&gt;Thank you for the help. My source is MySQL,&amp;nbsp;after analysing&amp;nbsp; the logs I found that the "--" was not commenting out the final parentheses ")". I replaced it with a "#" instead and it worked successfully.&lt;/P&gt;
&lt;P&gt;My final statement was "1=1) ORDER BY ProductID; #".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the help.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mohammed&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 22:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2127722#M7685</guid>
      <dc:creator>MoeE</dc:creator>
      <dc:date>2023-10-11T22:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Full load order by index</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2127723#M7686</link>
      <description>&lt;P&gt;I agree with both&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp; and&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;This is the trick to Passthrough filter :&lt;/P&gt;
&lt;P&gt;Build the query (select * table where date &amp;gt; sysdate) in the source DB, run and verify whether it fetches the required data and copy everything after where clause and paste it in the &lt;STRONG&gt;FullLoad Passthru Filter&lt;/STRONG&gt; field.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 22:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2127723#M7686</guid>
      <dc:creator>shashi_holla</dc:creator>
      <dc:date>2023-10-11T22:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Full load order by index</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2127754#M7687</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/214271"&gt;@MoeE&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for the feedback.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;My final statement was "1=1) ORDER BY ProductID; #".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You are right! the sub-clause will be delivered to source database, and certainly the syntax is different between variable databases. (for DB2, the comment off sign is "--";&amp;nbsp; for MySQL it's "#" etc).&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 04:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Full-load-order-by-index/m-p/2127754#M7687</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2023-10-12T04:00:34Z</dc:date>
    </item>
  </channel>
</rss>

