Unable to resolve value of type 'ConstantIndicationT' to query node
I am receiving the error described in the title when executing the following line:
var schoolTaxon = taxonomyManager.GetTaxa<HierarchicalTaxon>().Where(t =>
t.Taxonomy.Id == Constants.TeacherClassesTaxonomyGuid
&& t.Name == schoolId.ToString()).SingleOrDefault();
Any ideas? Searching Google for ConstantIndicationT yields no results.
I know this is a bit old, but for others (hopefully)
I have had the same error in Linq queries that produce an IQueryable. In my case, it's because I'm doing comparisons between 2 fields that do not match in type between how they are stored in the database (and must be referenced when an IQueryable) and how they are deserialized into objects (and must be referenced when an IEnumerable). For example, the following fails:
var committeeName = item.GetValue<Lstring>(
"Title"
);
var myCollection = DynamicModuleManager.GetDataItems(committeeServiceType).Where(i => i.GetValue<
string
>(
"CommitteeLookup"
) == committeeName);
if
(myCollection.Any()) <=========== FAILS HERE
logic here
string committeeName = item.GetValue<Lstring>(
"Title"
); <==== note difference
var myCollection = DynamicModuleManager.GetDataItems(committeeServiceType).Where(i => i.GetValue<
string
>(
"CommitteeLookup"
) == committeeName);
if
(myCollection.Any())
logic here