<?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 What to do when we see the error 'Native code #9003' on Replicate log. in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/What-to-do-when-we-see-the-error-Native-code-9003-on-Replicate/ta-p/1924240</link>
    <description>&lt;H4&gt;Environment&lt;/H4&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#SQL Server source&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Recently one of the customer reported a missing LSN issue with the below error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[SOURCE_CAPTURE&amp;nbsp; ]E:&amp;nbsp; LSN '000c6d7d:00000029:0001' could not be found, neither in the transaction log nor in the backup log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We started debugging entire Replicate logs and SQL server logs. Then we found the below issue within the customer environment.&lt;/P&gt;
&lt;P&gt;Error message from Replicate log:&lt;/P&gt;
&lt;P&gt;00007900: 2022-04-25T08:21:14 [SOURCE_CAPTURE&amp;nbsp; ]I:&amp;nbsp; Executing 'exec sp_repldone 0x,0x000c6cd700000dff0004,-1,0' is not applicable due to 'Native code #9003' transient state and therefore ignored.&amp;nbsp; (sqlserver_log_truncation_safeguard.c:700)&lt;/P&gt;
&lt;P&gt;Error message from SQL Server log:&lt;/P&gt;
&lt;P&gt;04/25/2022 08:21:14,spid66,Unknown,The log scan number (xxxxx:xxxx:x) passed to log scan in database 'PROLOGUE' is not valid. This error may indicate data corruption or that the log file (.ldf) does not match the data file (.mdf). If this error occurred during replication&amp;lt;c/&amp;gt; re-create the publication. Otherwise&amp;lt;c/&amp;gt; restore from backup if the problem results in a failure during startup.&lt;/P&gt;
&lt;P&gt;04/25/2022 08:21:14,spid66,Unknown,Error: 9003&amp;lt;c/&amp;gt; Severity: 20&amp;lt;c/&amp;gt; State: 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Customer recently restored the database and from then they started seeing the issues related to SQL log data corruption.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.microsoft.com/en-us/topic/kb4458880-fix-9003-error-sev-20-state-1-error-when-a-backup-operation-fails-on-a-secondary-replica-that-is-running-under-asynchronous-commit-mode-11efdb9e-d734-ce56-0e0f-ffa793a2c7aa" target="_blank"&gt;https://support.microsoft.com/en-us/topic/kb4458880-fix-9003-error-sev-20-state-1-error-when-a-backup-operation-fails-on-a-secondary-replica-that-is-running-under-asynchronous-commit-mode-11efdb9e-d734-ce56-0e0f-ffa793a2c7aa&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As per the Microsoft article, the best option to resolve the issue is to drop and create the Publication.&lt;/P&gt;
&lt;P&gt;Make sure to add the dbcc checkdb for SQL server database to correct page corruption issues.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 19:48:49 GMT</pubDate>
    <dc:creator>SwathiPulagam</dc:creator>
    <dc:date>2022-04-28T19:48:49Z</dc:date>
    <item>
      <title>What to do when we see the error 'Native code #9003' on Replicate log.</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/What-to-do-when-we-see-the-error-Native-code-9003-on-Replicate/ta-p/1924240</link>
      <description>&lt;H4&gt;Environment&lt;/H4&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#SQL Server source&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Recently one of the customer reported a missing LSN issue with the below error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[SOURCE_CAPTURE&amp;nbsp; ]E:&amp;nbsp; LSN '000c6d7d:00000029:0001' could not be found, neither in the transaction log nor in the backup log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We started debugging entire Replicate logs and SQL server logs. Then we found the below issue within the customer environment.&lt;/P&gt;
&lt;P&gt;Error message from Replicate log:&lt;/P&gt;
&lt;P&gt;00007900: 2022-04-25T08:21:14 [SOURCE_CAPTURE&amp;nbsp; ]I:&amp;nbsp; Executing 'exec sp_repldone 0x,0x000c6cd700000dff0004,-1,0' is not applicable due to 'Native code #9003' transient state and therefore ignored.&amp;nbsp; (sqlserver_log_truncation_safeguard.c:700)&lt;/P&gt;
&lt;P&gt;Error message from SQL Server log:&lt;/P&gt;
&lt;P&gt;04/25/2022 08:21:14,spid66,Unknown,The log scan number (xxxxx:xxxx:x) passed to log scan in database 'PROLOGUE' is not valid. This error may indicate data corruption or that the log file (.ldf) does not match the data file (.mdf). If this error occurred during replication&amp;lt;c/&amp;gt; re-create the publication. Otherwise&amp;lt;c/&amp;gt; restore from backup if the problem results in a failure during startup.&lt;/P&gt;
&lt;P&gt;04/25/2022 08:21:14,spid66,Unknown,Error: 9003&amp;lt;c/&amp;gt; Severity: 20&amp;lt;c/&amp;gt; State: 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Customer recently restored the database and from then they started seeing the issues related to SQL log data corruption.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.microsoft.com/en-us/topic/kb4458880-fix-9003-error-sev-20-state-1-error-when-a-backup-operation-fails-on-a-secondary-replica-that-is-running-under-asynchronous-commit-mode-11efdb9e-d734-ce56-0e0f-ffa793a2c7aa" target="_blank"&gt;https://support.microsoft.com/en-us/topic/kb4458880-fix-9003-error-sev-20-state-1-error-when-a-backup-operation-fails-on-a-secondary-replica-that-is-running-under-asynchronous-commit-mode-11efdb9e-d734-ce56-0e0f-ffa793a2c7aa&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As per the Microsoft article, the best option to resolve the issue is to drop and create the Publication.&lt;/P&gt;
&lt;P&gt;Make sure to add the dbcc checkdb for SQL server database to correct page corruption issues.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 19:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/What-to-do-when-we-see-the-error-Native-code-9003-on-Replicate/ta-p/1924240</guid>
      <dc:creator>SwathiPulagam</dc:creator>
      <dc:date>2022-04-28T19:48:49Z</dc:date>
    </item>
  </channel>
</rss>

