Microsoft KB Archive/329159

= Items collection of the CDO.KnowledgeCategoryFolder object does not list auto-categorized documents =

Article ID: 329159

Article Last Modified on 5/7/2004

-

APPLIES TO


 * Microsoft SharePoint Portal Server 2001

-



This article was previously published under Q329159





SYMPTOMS
When you set up the Category Assistant to auto-categorize documents, the documents that are categorized by this process do not appear in the items collection. This problem occurs when you use the CDO.KnowledgeCategoryFolder object to list items that are linked to a particular category.



CAUSE
When you manually categorize documents, you are essentially setting the urn:schemas-microsoft-com:publishing:Categories property of the document. However, when you use the Category Assistant, it sets the urn:schemas-microsoft-com:publishing:AutoCategories property. The urn:schemas-microsoft-com:publishing:AutoCategories property is only available by using a search.

The CDO.KnowledgeCategoryFolder object only lists documents that have the urn:schemas-microsoft-com:publishing:Categories property set. Therefore, the CDO.KnowledgeCategoryFolder object does not list the documents that are auto-categorized by Category Assistant.



RESOLUTION
Instead of using the CDO.KnowledgeCategoryFolder object to list items and to verify what documents belong to a particular category, you have to do a search. In the where clause, look for a match in the category name for the following two properties:
 * urn:schemas-microsoft-com:publishing:AutoCategories
 * urn:schemas-microsoft-com:publishing:Categories

This returns all the categorized documents. The Web Folder view of the Category folder does this and shows all the categorized documents.



STATUS
This behavior is by design.



Steps to reproduce the problem

 * 1) Set up the Category Assistant, and then train the Category Assistant.
 * 2) Manually categorize two documents.
 * 3) Let the Category Assistant categorize two documents.
 * 4) Use the CDO.KnowledgeCategoryFolder object to open the Category folder and to list the items.

Notice that the two items that are categorized by the Category Assistant are not listed.

Keywords: kbprb KB329159

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.