+ Start a Discussion
Antonio VelascoAntonio Velasco 

Managed Package - 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: namespace_MyObject_c.namespace_CustomField_c
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?  We checked the namespace but when we changed it in the development org, it gave us an error.
Daniel B ProbertDaniel B Probert
out of interest what is the managed package?

the only time that error comes up if in my experience is if the field is in the VF page does reference that field or you profile doesn't have permissions to see the field so you soql is running without the field.
Sridhar BonagiriSridhar Bonagiri
Hi Antonio,

I have couple of questions.
Where did you uploaded the package? this issue might be because of the you are referencing the filed  which is not a part of the SOQL query and the other reason might be the user who logged in and running this page& class do not have sufficient permissions for this field.

Regards,
Sridhar Bonagiri