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 developer 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?
Note: We follow this and tried appending namespace__ as:
{!namespace__CustomObject__c.namespace__CustomField__c}
But then the error we were getting at the subscriber org started happening at the developer org.
I'm referencing the custom fields like this:
<form
action="https://someurl.com/{!Object__c.Custom_Field__c}”
method="post" enctype="multipart/form-data">
<input type="hidden" name="key" value="{!Object__c.Custom_Field2__c}” />
//some other stuff
</form>