+ Start a Discussion
KaranrajKaranraj 

Getting error only on Managed package

Hi,

 

Am getting following error message in my visualforce page



Visualforce Error

System.SObjectException: SObject row was retrieved via SOQL without querying the requested field: Opportunity.Account

 

Note:

Am getting this error, when i created as a manged package only.

 

Help me to solve this issue :smileysad:

 

Best Answer chosen by Admin (Salesforce Developers) 
KaranrajKaranraj

finally i solved this error by written my code under this tag

<apex:repeat value="{!A__c}" var="A__c"></apex:repeat>

 

and declared I declared my custom object A__c in my Extension..

 

 

 

All Answers

KaranrajKaranraj

finally i solved this error by written my code under this tag

<apex:repeat value="{!A__c}" var="A__c"></apex:repeat>

 

and declared I declared my custom object A__c in my Extension..

 

 

 

This was selected as the best answer
Nirmal ChristopherNirmal Christopher
@karanraj thanks worked like a charm