Fulltext index references unknown key index error
eaguilar106
Posts: 4 New member
I keep getting the error 'Fulltext index references unknown key index...' on initial commit of a sql server database using TFS. The index referenced does indeed exist. It is for a FileTable, which is a fixed schema table. Anybody seen this and have a fix?
Thanks
Tagged:
Answers
Tianjiao Li | Redgate Software
Have you visited our Help Center?
Yes, I have unlinked and relinked several times trying different options to no avail. I also created a new database with a single filetable with a full text index and NOTHING else and tried linking to a new azure devops account with TFS as the source control and I get the same error. I don't think redgate likes filetables. Any help or workaround would be greatly appreciated.
Thank you.
Thanks!
Tianjiao Li | Redgate Software
Have you visited our Help Center?
Sure! See below...
/* First make sure FileStream is enabled on the server instance. You do this through SQL Server Configuration Manager - see books online. Not hard. Next, create a new directory 'C:\FileTablesDemo' for the database filesExecute this script a section at a time, do not just run it. */use master
EXEC sp_configure filestream_access_level, 2
CREATE DATABASE RedGateFS ON PRIMARY (NAME = RedGateFS_data, FILENAME = 'C:\FileTablesDemo\RedGateFS.mdf'),
FILEGROUP RedGateFSFSGroup CONTAINS FILESTREAM (NAME = RedGateFS_FS, FILENAME = 'C:\FileTablesDemo\RedGateFSFileStream')
LOG ON (NAME = 'RedGateFS_log', FILENAME = 'C:\FileTablesDemo\RedGateFS_log.ldf');
ALTER DATABASE RedGateFS
SET FILESTREAM (NON_TRANSACTED_ACCESS = FULL, DIRECTORY_NAME = N'RedGateFSDataFS')
Use RedGateFS
CREATE TABLE Docs AS FileTable
GOCreate FullText Catalog RGFullTextCatalog as Default
GODECLARE @pk VARCHAR(50)
SET @pk = (
SELECT OBJECT_NAME(object_id) AS constraints
FROM sys.filetable_system_defined_objects
WHERE OBJECT_NAME(object_id) like ('PK%'));
SELECT @pk -- copy this, should look similar to PK__Docs__5A5B77D59C913F2B, paste in next section
Create FullText Index on dbo.Docs
(name Language 1033, File_stream type column file_type Language 1033)
key Index PK__Docs__5A5B77D5D74C9885 -- REPLACE THIS WITH THE ONE YOU JUST COPIED
on RGFullTextCatalog
with Change_Tracking Auto, StopList=system
GoI've reproduced and logged as SC-10319 in our internal bug tracking system.
Please keep an eye on the release note!
Tianjiao Li | Redgate Software
Have you visited our Help Center?
I'm pleased to let you know the fix has gone out to frequent update 7.0.7.8791.
Tianjiao Li | Redgate Software
Have you visited our Help Center?