function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RRKRRK 

Sobject SOQL issue

StandardController.reset() error can throw error: SObject row was retrieved via SOQL without querying the requested field:Attachment.body
pbattissonpbattisson
Could you post the code to give an overview of the context in which you are using the method.
James LoghryJames Loghry
Sounds like you need to add "Body" to your Attachment SOQL query.