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
Jose Daniel Angarita 2Jose Daniel Angarita 2 

SObject row was retrieved via SOQL without querying the requested field on managed package

So, we uploaded the managed package and installed it in a new org (as the clients would) but when accessing a vf page we get the error

SObject row was retrieved via SOQL without querying the requested field
 
The problem is that on the previous org everything works fine and on that VF Page we are not actually referencing any value that was the result of a query.

Any idea why this is happening?
Eric-∑Eric-∑
It seems that you missed some fields in your SOQL statement, fields being used in the VF or related controller must be retrieved in your SOQL.