<?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: SQL Server non-uniformly mapped partitions in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-SQL-Server-non-uniformly-mapped-partitions/ta-p/2076473</link>
    <description>&lt;P&gt;SQL server table partitions will be excluded from CDC if the partitions are not found to be uniform. Partitions will not be uniform if&amp;nbsp;only some of the partitions are compressed/uncompressed.&lt;/P&gt;
&lt;P&gt;In some occurrences, you may also find that partitions can become non-uniform even when all partitions are uncompressed or compressed. The&amp;nbsp;offset position values of the partitions no longer match with each other which will lead Qlik Replicate to log the following warning message.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;Table 'schema.table' is not uniformly mapped across partitions. Therefore - it is excluded from CDC&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;The indexes of the partitions will need to be completely rebuilt if the&amp;nbsp;&lt;SPAN&gt;offset position values have changed and the warnings are received. This fix is only intended for scenarios where all partitions are either uncompressed or compressed.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Cause&lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Limitation:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;CDC is not supported from tables which have both compressed and uncompressed partitions.&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-mc-conditions="QDI_Replicate.NotInHDD"&gt;If only some of the partitions are compressed, the following message will be shown:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Table 'xxx' is not uniformly mapped across partition&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;s. Therefore it is excluded from CDC.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/replicate/November2022/Content/Global_Common/Content/SharedReplicateHDD/SQLServer-Source/limitations_source_SQLServerDB.htm" target="_self"&gt;SQL Server Limitations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instances where all partitions are either&amp;nbsp;compressed or uncompressed, the same warning message will be displayed if partitions are still found to be non-uniform.&lt;/P&gt;
&lt;P&gt;The following query can be used to check the&amp;nbsp;&lt;SPAN&gt;offset position values of the partitions. The values are expected to be the same for all partitions for them to be considered uniform. Partition id and schema will need to be changed to reflect your own values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;select
c.colid as col_id,
c.length as col_len,
pc.leaf_offset as xoffset,
pc.leaf_bit_position as bitpos,
pc.leaf_null_bit as null_bit_pos
from syscolumns c ,sysobjects o, sys.system_internals_partition_columns pc
where
(c.colid = pc.partition_column_id) and
(c.id=o.id and o.uid = schema_id(N'dbo')) and
o.name = N'dm_pa' and
o.xtype = N'U' and
pc.partition_id = 72057596702621696 and
pc.is_uniqueifier = 0 and
pc.is_dropped = 0 and
c.iscomputed = 0
order by c.colid;&lt;/LI-CODE&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;&amp;nbsp;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px" data-unlink="true"&gt;RECOB-6727&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px" data-unlink="true"&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;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;SQL Server source endpoint&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2023 08:31:44 GMT</pubDate>
    <dc:creator>Alan_Wang</dc:creator>
    <dc:date>2023-05-29T08:31:44Z</dc:date>
    <item>
      <title>Qlik Replicate: SQL Server non-uniformly mapped partitions</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-SQL-Server-non-uniformly-mapped-partitions/ta-p/2076473</link>
      <description>&lt;P&gt;SQL server table partitions will be excluded from CDC if the partitions are not found to be uniform. Partitions will not be uniform if&amp;nbsp;only some of the partitions are compressed/uncompressed.&lt;/P&gt;
&lt;P&gt;In some occurrences, you may also find that partitions can become non-uniform even when all partitions are uncompressed or compressed. The&amp;nbsp;offset position values of the partitions no longer match with each other which will lead Qlik Replicate to log the following warning message.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;Table 'schema.table' is not uniformly mapped across partitions. Therefore - it is excluded from CDC&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;The indexes of the partitions will need to be completely rebuilt if the&amp;nbsp;&lt;SPAN&gt;offset position values have changed and the warnings are received. This fix is only intended for scenarios where all partitions are either uncompressed or compressed.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Cause&lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Limitation:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;CDC is not supported from tables which have both compressed and uncompressed partitions.&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-mc-conditions="QDI_Replicate.NotInHDD"&gt;If only some of the partitions are compressed, the following message will be shown:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Table 'xxx' is not uniformly mapped across partition&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;s. Therefore it is excluded from CDC.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/replicate/November2022/Content/Global_Common/Content/SharedReplicateHDD/SQLServer-Source/limitations_source_SQLServerDB.htm" target="_self"&gt;SQL Server Limitations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instances where all partitions are either&amp;nbsp;compressed or uncompressed, the same warning message will be displayed if partitions are still found to be non-uniform.&lt;/P&gt;
&lt;P&gt;The following query can be used to check the&amp;nbsp;&lt;SPAN&gt;offset position values of the partitions. The values are expected to be the same for all partitions for them to be considered uniform. Partition id and schema will need to be changed to reflect your own values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;select
c.colid as col_id,
c.length as col_len,
pc.leaf_offset as xoffset,
pc.leaf_bit_position as bitpos,
pc.leaf_null_bit as null_bit_pos
from syscolumns c ,sysobjects o, sys.system_internals_partition_columns pc
where
(c.colid = pc.partition_column_id) and
(c.id=o.id and o.uid = schema_id(N'dbo')) and
o.name = N'dm_pa' and
o.xtype = N'U' and
pc.partition_id = 72057596702621696 and
pc.is_uniqueifier = 0 and
pc.is_dropped = 0 and
c.iscomputed = 0
order by c.colid;&lt;/LI-CODE&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;&amp;nbsp;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px" data-unlink="true"&gt;RECOB-6727&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px" data-unlink="true"&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;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;SQL Server source endpoint&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 08:31:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-SQL-Server-non-uniformly-mapped-partitions/ta-p/2076473</guid>
      <dc:creator>Alan_Wang</dc:creator>
      <dc:date>2023-05-29T08:31:44Z</dc:date>
    </item>
  </channel>
</rss>

