Page Query Error: Conversion failed when converting the nvarchar value '=not Page.Fields!ISOLDPAGE andAlso Globals.isWebshell' to data type bit

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". 
 
Download and install the latest patch which contains all fixes from previous patches. If you are running an older version, download and install the latest version and then the patch.

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.  

Environment

 Blackbaud CRM
 4.0
 Service Pack 17
 4.0.168

Was this article helpful?


Thanks for your feedback! Did this solve your issue?

Comments (optional):


Thanks for your feedback!
We're glad it was helpful but sorry it didn’t solve your issue. If you need assistance, click Chat with Support below.
We’re sorry to hear that. Please tell us why.

 I don't like how this works.

 The answer is confusing.

 The answer didn't match what I was searching for.

Additional Comments (optional):


Thanks for your feedback! If you need assistance, click Chat with Support below.
Thanks for your feedback. Help us make our products even better by sharing details in our Idea Banks or our online Community.
Thanks for letting us know. We'll work on clarifying the information in the article. If you need assistance, click Chat with Support below.
Thanks for letting us know. We'll work on updating the search engine to return more relevant results.