SP2010 Content Migration - Custom Content Query Web Part

2011-08-13

Description

Fields used in a custom CQWP that are of "Lookup" type don’t render out correctly. This occurs when the CQWP is designed to strip extraneous information from the values of the Lookup field

Resolution

Updates to the custom CQWP .webpart file, and the associated XSLT file are required. Ensure the .webpart file refers to the Lookup field as a “Lookup” type in the CommonViewFields node, and update the XSL file associated to the CQWP to no longer remove characters prior to a “#” character (SharePoint 2010’s CQWP parses the data from a Lookup field without the pure “2;#Value” style rendering, instead the looked up value comes out in the CQWP as “Value”)