Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.

What to do when we see the error 'Native code #9003' on Replicate log.

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
SwathiPulagam
Support
Support

What to do when we see the error 'Native code #9003' on Replicate log.

Last Update:

Apr 28, 2022 3:48:49 PM

Updated By:

SwathiPulagam

Created date:

Apr 28, 2022 3:48:49 PM

Environment

Qlik Replicate 

#SQL Server source

 

Recently one of the customer reported a missing LSN issue with the below error:

 

[SOURCE_CAPTURE  ]E:  LSN '000c6d7d:00000029:0001' could not be found, neither in the transaction log nor in the backup log

 

We started debugging entire Replicate logs and SQL server logs. Then we found the below issue within the customer environment.

Error message from Replicate log:

00007900: 2022-04-25T08:21:14 [SOURCE_CAPTURE  ]I:  Executing 'exec sp_repldone 0x,0x000c6cd700000dff0004,-1,0' is not applicable due to 'Native code #9003' transient state and therefore ignored.  (sqlserver_log_truncation_safeguard.c:700)

Error message from SQL Server log:

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<c/> re-create the publication. Otherwise<c/> restore from backup if the problem results in a failure during startup.

04/25/2022 08:21:14,spid66,Unknown,Error: 9003<c/> Severity: 20<c/> State: 1.

 

Customer recently restored the database and from then they started seeing the issues related to SQL log data corruption.

https://support.microsoft.com/en-us/topic/kb4458880-fix-9003-error-sev-20-state-1-error-when-a-backu...

 

As per the Microsoft article, the best option to resolve the issue is to drop and create the Publication.

Make sure to add the dbcc checkdb for SQL server database to correct page corruption issues.

Contributors
Version history
Last update:
‎2022-04-28 03:48 PM
Updated by: