<?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>article Qlik Replicate using existing SQL Server target view for replication in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-using-existing-SQL-Server-target-view-for/ta-p/2546377</link>
    <description>&lt;P&gt;By default, &lt;STRONG&gt;&lt;FONT color="#339966"&gt;Qlik Replicate&lt;/FONT&gt;&lt;/STRONG&gt; reads primary keys from source tables and creates target tables using those same keys. If you want to use an existing view that doesn’t share the same key columns, you can modify the replication process to define matching key columns and adjust the task settings to prevent it from reloading the target table.&lt;/P&gt;
&lt;P&gt;In table transformations, use &lt;STRONG&gt;&lt;FONT color="#339966"&gt;Set Key Columns&lt;/FONT&gt;&lt;/STRONG&gt; &amp;gt; &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Use transformation definition&lt;/STRONG&gt;&lt;/FONT&gt; to ensure the key columns match the target view.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table view.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187728i83159587B80B74EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="table view.png" alt="table view.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But using Views as the target (instead of a table) will result in this error, as indexes cannot be applied to views.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;[TARGET_LOAD ]E: RetCode: SQL_ERROR SqlState: 42000 NativeError: 1939 Message: [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Cannot create index on view 'PPHTRAN' because the view is not schema bound. Line: 1 Column: -1 [1022502] (ar_odbc_stmt.c:5083)&lt;/FONT&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Target views behave differently from tables, but an internal parameter can be used to trigger a manual query. To achieve this, add the &lt;STRONG&gt;$info.query_syntax.create_index&lt;/STRONG&gt; internal parameter and value to the SQL Server target endpoint.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to the&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Endpoint&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;connection&lt;/LI&gt;
&lt;LI&gt;Switch to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Advanced&amp;nbsp;&lt;/STRONG&gt;tab&lt;/LI&gt;
&lt;LI&gt;Click&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Internal Parameters&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Add the following:&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;Parameter:&amp;nbsp;&lt;EM&gt;$info.query_syntax.create_index&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;Value:&amp;nbsp;&lt;EM&gt;select 1&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;EM&gt;SELECT 1&lt;/EM&gt;&lt;SPAN&gt; query itself has no effect, but it overrides the task behavior, preventing it from attempting to create a new unique index on the view, which is not supported.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="info query syntax create index internal parameter.png" style="width: 901px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187730iF2466831C64AA647/image-size/large?v=v2&amp;amp;px=999" role="button" title="info query syntax create index internal parameter.png" alt="info query syntax create index internal parameter.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;For more information about Internal Parameters, see &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-How-to-set-Internal-Parameters-and-what-are-they/ta-p/2036183" target="_blank" rel="noopener"&gt;Qlik Replicate: How to set Internal Parameters and what are they for?&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Internal Investigation ID(s)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;SUPPORT-9276&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Replicate&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Fri, 10 Apr 2026 05:32:03 GMT</pubDate>
    <dc:creator>Alan_Wang</dc:creator>
    <dc:date>2026-04-10T05:32:03Z</dc:date>
    <item>
      <title>Qlik Replicate using existing SQL Server target view for replication</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-using-existing-SQL-Server-target-view-for/ta-p/2546377</link>
      <description>&lt;P&gt;By default, &lt;STRONG&gt;&lt;FONT color="#339966"&gt;Qlik Replicate&lt;/FONT&gt;&lt;/STRONG&gt; reads primary keys from source tables and creates target tables using those same keys. If you want to use an existing view that doesn’t share the same key columns, you can modify the replication process to define matching key columns and adjust the task settings to prevent it from reloading the target table.&lt;/P&gt;
&lt;P&gt;In table transformations, use &lt;STRONG&gt;&lt;FONT color="#339966"&gt;Set Key Columns&lt;/FONT&gt;&lt;/STRONG&gt; &amp;gt; &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Use transformation definition&lt;/STRONG&gt;&lt;/FONT&gt; to ensure the key columns match the target view.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table view.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187728i83159587B80B74EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="table view.png" alt="table view.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But using Views as the target (instead of a table) will result in this error, as indexes cannot be applied to views.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;[TARGET_LOAD ]E: RetCode: SQL_ERROR SqlState: 42000 NativeError: 1939 Message: [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Cannot create index on view 'PPHTRAN' because the view is not schema bound. Line: 1 Column: -1 [1022502] (ar_odbc_stmt.c:5083)&lt;/FONT&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Target views behave differently from tables, but an internal parameter can be used to trigger a manual query. To achieve this, add the &lt;STRONG&gt;$info.query_syntax.create_index&lt;/STRONG&gt; internal parameter and value to the SQL Server target endpoint.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to the&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Endpoint&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;connection&lt;/LI&gt;
&lt;LI&gt;Switch to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Advanced&amp;nbsp;&lt;/STRONG&gt;tab&lt;/LI&gt;
&lt;LI&gt;Click&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Internal Parameters&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Add the following:&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;Parameter:&amp;nbsp;&lt;EM&gt;$info.query_syntax.create_index&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;Value:&amp;nbsp;&lt;EM&gt;select 1&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;EM&gt;SELECT 1&lt;/EM&gt;&lt;SPAN&gt; query itself has no effect, but it overrides the task behavior, preventing it from attempting to create a new unique index on the view, which is not supported.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="info query syntax create index internal parameter.png" style="width: 901px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187730iF2466831C64AA647/image-size/large?v=v2&amp;amp;px=999" role="button" title="info query syntax create index internal parameter.png" alt="info query syntax create index internal parameter.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;For more information about Internal Parameters, see &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-How-to-set-Internal-Parameters-and-what-are-they/ta-p/2036183" target="_blank" rel="noopener"&gt;Qlik Replicate: How to set Internal Parameters and what are they for?&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Internal Investigation ID(s)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;SUPPORT-9276&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Replicate&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 10 Apr 2026 05:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-using-existing-SQL-Server-target-view-for/ta-p/2546377</guid>
      <dc:creator>Alan_Wang</dc:creator>
      <dc:date>2026-04-10T05:32:03Z</dc:date>
    </item>
  </channel>
</rss>

