When in a Page Ad-Hoc Query, the node Page\Hide caption causes the preview to throw the error: Conversion failed when converting the nvarchar value '=not Page.Fields!ISOLDPAGE andAlso Globals.isWebshell' to data type bit. This happens when no criteria is entered in the "Include records where" section and all Page fields are added to "Results fields to display" along with any other field(s) from other nodes. It also happens when Hide caption is equal to Yes is included in the "Include records where" section and the "Results fields to display".
We are currently evaluating this issue for a fix in a future service pack.
Steps to Duplicate
1. Navigate to the Analysis Functional area. Click Add an ad-hoc query. Select Page and click OK. 2. Add Page\Hide caption is equal to Yes to "Include records where" area and add Page\Hide caption to "Results fields to display". 3. Click the Preview results tab. Receive the error. 4. Return to the Select filter and output fields tab. Clear out the "Include records where" area. 5. Select and add all of the Page fields to the "Results fields to display" area. 6. Select and add a field from any of the remaining parent nodes to the "Results" area (ie Action groups\Image key). Click Preview results tab. Receive error.