Error: System.ApplicationException: Error fetching records (DoSearch()): QueryField not found

When attempting to load a constituent based list in NetCommunity, you may get the following error when the list loads:
System.ApplicationException: Error fetching records (DoSearch()): QueryField not found
   at Blackbaud.Web.Content.Core.Data.RecordSearch.DoSearch()
   at Blackbaud.Web.Content.Core.DataSourceConstituentFetch.StartPagedFetchByQueryID(Int32 QueryID, Int32 RecordsPerPage, IDataSourceFetchFields[] FetchFields, String options, Int32 SystemID)

This error occurs when you have a constituent query in The Raiser's Edge that is utilizing Constituent Consent fields (for example, Response)
We are currently evaluating this issue and will update this article when we have more information. In the meantime, change your query to static in The Raiser's Edge and re-load the list.

Steps to Duplicate

  1. Create a Constituent Query in The Raiser's Edge
  2. Add in the Criteria of Constituent Contact Consent -> Response -> [not blank]
  3. Login to NetCommunity
  4. Create a new list based on this query
  5. Observe the list fails to load with this error

Environment

 Blackbaud NetCommunity
 7.1

Was this article helpful?