To solve the problem of a KB Article reference to a subject still existing in the full text catalog within CRM, run the following sql statement against the crm database.
UPDATE DOCUMENTINDEX SET DELETIONSTATECODE = 2 FROM DOCUMENTINDEX C INNER JOIN SUBJECTBASE S ON C.SUBJECTID = S.SUBJECTID WHERE S.TITLE = 'THE SUBJECT TITLE IN QUESTION HERE'
The above statement will update the deletionstatecode to 2, which will be picked up by the CRM Deletion Service the next time it runs. You can manually force the delection service to run by:
1)Opening the command prompt
2) type 'CD C:\Program Files\Microsoft CRM Server\Server\bin' and press enter
3) type 'CRMDELETIONSERVICE.EXE /RUNONCE'
4) You should receive a confirmation message that states 'Service successfully executed'
You can verify that the full-text KB Articles were deleted by running the following SQL Statement against your CRM Database
SELECT C.SUBJECTID, C.DELETIONSTATECODE, S.TITLE FROM DOCUMENTINDEX C INNER JOIN SUBJECTBASE S ON C.SUBJECTID = S.SUBJECTID WHERE S.TITLE = 'THE SUBJECT TITLE IN QUESTION HERE'
Finally, you should be able to navigate to the subject and delete it from CRM. |