October 2016 archive

SObject row was retrieved via SOQL without querying the requested field

SObject row was retrieved via SOQL without querying the requested field SObject row was retrieved via SOQL without querying the requested field is very common error in apex. As name of error suggest, this error occurs when we try to use some field of an object instance which is not queried. There can be two …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/sobject-row-was-retrieved-via-soql-without-querying-the-requested-field/