You need to sign in to do that
Don't have an account?
SObject row was retrieved via SOQL without querying the requested field... with Standard Controller
Component - configDetails:
<apex:component >
<apex:attribute name="config" description="This is the value for the Configuration" type="Configuration__c" required="true"/>
{!config.Quantity__c}
</apex:component>
Inline VF page:
<apex:page showheader="false" standardController="Configuration__c">
<c:configDetails config="{!Configuration__c}"/>
</apex:page>
This has been working fine for well over a year and the component currently displays data from the parent with no issues but when I try to add a new field I get this error.
Any idea what I am missing? I am only able to replicate this issue in production so I'm thinking it is some sort of security permission but I can't figure it out.
Thanks,
Jason
Hello Teh;
Sometimes you may need to add following code piece to your page and set the rendered property to false.
<apex:outputText value="{!config.Quantity__c}" rendered="false"/>
Please follow this URL:
http://www.salesforce.com/us/developer/docs/pages/Content/apex_pages_standardcontroller.htm
Support case # 03169217.
I was able to reproduce this in a recently refreshed sandbox.
Hmm.. I've been getting this too. For now I've included the (hidden) field in my pages e.g.
<apex:inputhidden value="{!myObject__c.field__c}" />
Keen to find out what's happening, thanks for logging it.
Wes
If I add the hidden input it will start to work immediately. I can them remove this hidden input and then it will still work.
Doing a simple test this was not reproducible on Spring 10.
It is still reproducible on Winter 10.
Thanks Jason.
Know this is an old thread but though I would post for the record:
Thought I was having the same issue on Spring 10 but ended up being a Field Level Security issue.
Like Broz88, I got this error due to an FLS conflict. Be sure to check!
I just duplicated this error. Sounds like it should resolve within 24 hours but annoying nonetheless