<?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: MS-CDC Fitness Check: Database is not enabled for MS-CDC in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/MS-CDC-Fitness-Check-Database-is-not-enabled-for-MS-CDC/m-p/2537282#M15548</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/164978"&gt;@narendersarva&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I also tried adding the internal property UseDBNameInsteadOfDBID, but Qlik Cloud returned the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Status(StatusCode="Internal", Detail="The following internal properties are not supported: UseDBNameInsteadOfDBID")&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;So it seems this parameter is not supported on Qlik Cloud.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Nov 2025 08:22:57 GMT</pubDate>
    <dc:creator>nhorvat</dc:creator>
    <dc:date>2025-11-26T08:22:57Z</dc:date>
    <item>
      <title>MS-CDC Fitness Check: Database is not enabled for MS-CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/MS-CDC-Fitness-Check-Database-is-not-enabled-for-MS-CDC/m-p/2537191#M15535</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I’m using Qlik Cloud and the Microsoft SQL Server (Microsoft CDC based) connection type.&lt;BR /&gt;For several of my replication tasks, I consistently receive the following error:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;02450713: 2025-11-25T10:14:20 [SOURCE_CAPTURE  ]E:  MS-CDC Fitness Check: Database is not enabled for MS-CDC [1020101]  (sqlserver_mscdc.c:729)
02450713: 2025-11-25T10:14:20 [SOURCE_CAPTURE  ]E:  Failed in MS-CDC fitness check [1020101]  (sqlserver_endpoint_capture.c:286)
02450713: 2025-11-25T10:14:20 [SOURCE_CAPTURE  ]E:  Error executing command [1020101]  (streamcomponent.c:2069)
02450713: 2025-11-25T10:14:20 [TASK_MANAGER    ]E:  Stream component failed at subtask 0, component st_0_EP_8C02ejUonfw2P6o0ADgh4A  [1020101]  (subtask.c:1504)
02450713: 2025-11-25T10:14:20 [SOURCE_CAPTURE  ]E:  Stream component 'st_0_EP_8C02ejUonfw2P6o0ADgh4A' terminated [1020101]  (subtask.c:1675)
02450707: 2025-11-25T10:14:20 [TASK_MANAGER    ]W:  Task 'TASK_R4v-lHpcOQmtS1r9xubfrg' encountered a fatal error  (repository.c:6387)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, CDC is fully enabled on the database and also enabled on all required tables.&lt;BR /&gt;All CDC system tables are accessible, and the replication user has all necessary permissions.&lt;/P&gt;
&lt;P&gt;To troubleshoot, I additionally tried the following:&lt;/P&gt;
&lt;P&gt;Added the internal property: skipMscdcJobFitnessCheck = true in the connection settings - no change.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nhorvat_0-1764081523426.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/185249i3CC34A2C8CBE5E08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nhorvat_0-1764081523426.png" alt="nhorvat_0-1764081523426.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Granted the user db_owner permissions, also no effect.&lt;/P&gt;
&lt;P&gt;It’s important to note that CDC replication works correctly for other databases using the same configuration, so the issue only affects a few specific databases even though everything appears identical.&lt;/P&gt;
&lt;P&gt;Does anyone have an idea what could be causing this MS-CDC fitness check error in Qlik Cloud?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 14:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/MS-CDC-Fitness-Check-Database-is-not-enabled-for-MS-CDC/m-p/2537191#M15535</guid>
      <dc:creator>nhorvat</dc:creator>
      <dc:date>2025-11-25T14:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: MS-CDC Fitness Check: Database is not enabled for MS-CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/MS-CDC-Fitness-Check-Database-is-not-enabled-for-MS-CDC/m-p/2537238#M15541</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/356689"&gt;@nhorvat&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We need to enable source capture to verbose for some time so we can review the SELECT statement that Replicate uses to check the MS-CDC status using the database ID&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Meanwhile, please run below query in source dba and see if it returns anything.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;select is_cdc_enabled from sys.databases d where d.database_id=db_id()&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is urgent, please open a support case and a member of our technical support team will be able to assist you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;BR /&gt;Naren&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 16:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/MS-CDC-Fitness-Check-Database-is-not-enabled-for-MS-CDC/m-p/2537238#M15541</guid>
      <dc:creator>narendersarva</dc:creator>
      <dc:date>2025-11-25T16:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: MS-CDC Fitness Check: Database is not enabled for MS-CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/MS-CDC-Fitness-Check-Database-is-not-enabled-for-MS-CDC/m-p/2537276#M15546</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/164978"&gt;@narendersarva&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I ran the query you suggested:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;select is_cdc_enabled 
from sys.databases d 
where d.database_id = db_id();&lt;/LI-CODE&gt;
&lt;P&gt;and it returns no rows.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;However, CDC is definitely enabled. When I run the following query:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SELECT is_cdc_enabled
FROM sys.databases
WHERE name = DB_NAME()
  AND is_cdc_enabled = 1;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get one row with is_cdc_enabled = 1, which confirms that CDC is enabled for this database.&lt;/P&gt;
&lt;P&gt;So it seems that in my Azure SQL Database environment, the condition d.database_id = db_id() does not match any row in sys.databases, while filtering by name = DB_NAME() works correctly.&lt;/P&gt;
&lt;P&gt;This might explain why the MS-CDC fitness check fails, even though CDC is configured properly: if Replicate/Cloud is using a query based on database_id = db_id(), it will not find the database in this environment.&lt;/P&gt;
&lt;P&gt;Please let me know if this helps and if there is a workaround or fix on the Qlik side for Azure SQL.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 07:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/MS-CDC-Fitness-Check-Database-is-not-enabled-for-MS-CDC/m-p/2537276#M15546</guid>
      <dc:creator>nhorvat</dc:creator>
      <dc:date>2025-11-26T07:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: MS-CDC Fitness Check: Database is not enabled for MS-CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/MS-CDC-Fitness-Check-Database-is-not-enabled-for-MS-CDC/m-p/2537282#M15548</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/164978"&gt;@narendersarva&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I also tried adding the internal property UseDBNameInsteadOfDBID, but Qlik Cloud returned the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Status(StatusCode="Internal", Detail="The following internal properties are not supported: UseDBNameInsteadOfDBID")&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;So it seems this parameter is not supported on Qlik Cloud.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 08:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/MS-CDC-Fitness-Check-Database-is-not-enabled-for-MS-CDC/m-p/2537282#M15548</guid>
      <dc:creator>nhorvat</dc:creator>
      <dc:date>2025-11-26T08:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: MS-CDC Fitness Check: Database is not enabled for MS-CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/MS-CDC-Fitness-Check-Database-is-not-enabled-for-MS-CDC/m-p/2537822#M15564</link>
      <description>&lt;P&gt;Just to follow up on this thread and share the findings, as this might help others using Azure SQL Database with Qlik Cloud MS-CDC:&lt;/P&gt;
&lt;P&gt;I confirmed that the issue is not related to permissions or the CDC configuration itself.&lt;BR /&gt;CDC is fully enabled on the database and all required tables.&lt;/P&gt;
&lt;P&gt;The root cause appears to be that in Azure SQL Database, the value returned by &lt;EM&gt;DB_ID()&lt;/EM&gt; does &lt;STRONG&gt;not always match&lt;/STRONG&gt; the &lt;EM&gt;database_id&lt;/EM&gt; in &lt;EM&gt;sys.databases&lt;/EM&gt;. In that case, a check like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SELECT is_cdc_enabled
FROM sys.databases d
WHERE d.database_id = DB_ID();&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;returns no rows, even though CDC is enabled.&lt;BR /&gt;But filtering by database name works correctly:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SELECT is_cdc_enabled
FROM sys.databases
WHERE name = DB_NAME();
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on this behavior, I assume that Qlik Cloud currently performs the MS-CDC fitness check using the ID-based method, which unfortunately does not work reliably in Azure SQL.&lt;/P&gt;
&lt;P&gt;This behavior is documented by Microsoft here:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/sql/t-sql/functions/db-id-transact-sql" target="_blank"&gt;https://learn.microsoft.com/en-us/sql/t-sql/functions/db-id-transact-sql&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Because of this mismatch, the MS-CDC fitness check in Qlik Cloud fails for some databases, even though CDC is configured properly.&lt;/P&gt;
&lt;P&gt;I also tried the &lt;EM&gt;UseDBNameInsteadOfDBID&lt;/EM&gt; internal property mentioned in the Qlik article, but Qlik Cloud does not support it at the moment.&lt;/P&gt;
&lt;P&gt;I have opened a support case, and the Qlik team is currently reviewing this scenario and working on allowing the parameter.&lt;BR /&gt;&lt;BR /&gt;Once they whitelist it on Qlik Cloud, the issue should be resolved.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 14:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/MS-CDC-Fitness-Check-Database-is-not-enabled-for-MS-CDC/m-p/2537822#M15564</guid>
      <dc:creator>nhorvat</dc:creator>
      <dc:date>2025-12-02T14:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: MS-CDC Fitness Check: Database is not enabled for MS-CDC</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/MS-CDC-Fitness-Check-Database-is-not-enabled-for-MS-CDC/m-p/2538816#M15613</link>
      <description>&lt;P&gt;I received an update yesterday that the &lt;EM&gt;UseDBNameInsteadOfDBID&lt;/EM&gt; parameter has now been enabled in &lt;STRONG&gt;Qlik Cloud.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nhorvat_0-1765366514262.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/185694iCA6798960C0EEFE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nhorvat_0-1765366514262.png" alt="nhorvat_0-1765366514262.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;After testing, I can confirm that the MS-CDC fitness check works correctly and replication runs without any issues.&lt;/P&gt;
&lt;P&gt;Hopefully this will help anyone else encountering the same behavior in Azure SQL Database.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 11:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/MS-CDC-Fitness-Check-Database-is-not-enabled-for-MS-CDC/m-p/2538816#M15613</guid>
      <dc:creator>nhorvat</dc:creator>
      <dc:date>2025-12-10T11:35:43Z</dc:date>
    </item>
  </channel>
</rss>

