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
Marry SteinMarry Stein 

temporary: Error (common.apex.runtime.impl.executionexception sobject row was retrieved via soql test__c

Hello guys, 

some users have an issue to open a visualforce page. Sometimes, the following error occurs: 

common.apex.runtime.impl.executionexception sobject row was retrieved via soql field__c 

Its weird, because the page included the field__c and after the users tried to load it again, it works. Is it a salesforce issue > 
AbhishekAbhishek (Salesforce Developers) 
Hi Marry,

Can you check the below blog,

https://salesforce.stackexchange.com/questions/40379/error-message-sobject-row-was-retrieved-via-soql-without-querying-the-requested

https://salesforce.stackexchange.com/questions/95270/common-apex-runtime-impl-executionexception-sobject-row-was-retrieved-via-soql

The developer also faced the similar issue and the above workaround helped them.

Thanks.
Marry SteinMarry Stein
Hi Abhishek, 
thanks for your response. I alreade declared the field on the page, but don't render it.  
AbhishekAbhishek (Salesforce Developers) 
Marry that's is the only I have seen the issue.

If you have access raise a case with salesforce support because this could be code.
Marry SteinMarry Stein
Hi Abhishek, 
thanks for your time. Yep, i will raise a case. I was afraid that the error is not easy to solve.