Problem

Collections report Hits but Fail.  The Collection Work Manager log reports the following:

ERROR Infrastructure.Components.SiteServer.Wrapper.SiteServerCollectionResultsXMLFile [(null)] - Error in: CreateCollectionResultXMLFile
System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

 

Resolution

Perform the collection again, by make sure the "Responsive Path" in the Collection Wizard is less than 135 characters.

 

Cause

Due to the folders and files created by a collection, the full responsive path can get too long to create the final CollectionResult XML.  As such, we recommend keeping the user-specified portion of the Responsive Path under 135 characters.