Friday, 23 May 2014

The property or field XXXXX has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested

The property or field 'PathOfTerm' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested
Root Cause: PathOfTerm is not included in the contentx.

objterms = termSet.GetAllTerms();
clientContext.Load(objterms,objtermColl => objtermColl.Include(termNew => termNew.Id,termNew => termNew.Name,termNew => termNew.PathOfTerm));