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
Saurabh ThoratSaurabh Thorat 

Why am I getting the "Unknown property referenced error" in my Vf page

I'm getting the following error on my VF page apex

Error: Unknown property 'Solution__c' referenced in ProductEnhancements

Please help


This is the code:

<apex:page> standardController="Solution__c" sidebar="false">
<apex:form>
<apex:pageblock title="Product Details" id="ACPPageBlock" mode="edit">
<apex:pagemessages/>
<apex:pageBlockButtons>
<apex:commandButton value="Save" action="{!save}"/>                
<apex:commandButton value="Cancel" action="{!cancel}"/>             
</apex:pageBlockButtons>            
<apex:actionRegion >                
<apex:pageBlockSection title="Basic Opportunity Info" columns="1">                     
<apex:inputField value="{!Solution__c.CustomerID__c}"/>                     
<apex:pageBlockSectionItem >                        
<apex:outputLabel value="Product"/>                        
<apex:outputLabel >                            
<apex:inputField value="{!Solution__c.Product__c}">                                 
<apex:actionSupport event="onchange" rerender=" ACPPageBlock" status="Product__c"/>                             
</apex:inputField>                            
<apex:actionStatus startText="applying value..." id="Product__c"/>                          
</apex:outputLabel> 
</apex:pageBlockSectionItem> 
</apex:pageBlockSection>               
</apex:actionRegion>            
<apex:pageBlockSection title="Ratings and Reviews" columns="1" rendered="{!Solution__c.Product__c == 'UGC-R&R'}">                
<apex:inputField value="{!Solution__c.Sorting_Functionality__c}"/>            
</apex:pageBlockSection>            
</apex:pageBlock>
</apex:form>
</apex:page>

 

Best Answer chosen by Saurabh Thorat
Raj VakatiRaj Vakati
I got it  .. Use this code and there was an extrac >

<apex:page standardController="Solution__c" sidebar="false">
<apex:form>
<apex:pageblock title="Product Details" id="ACPPageBlock" mode="edit">
<apex:pagemessages/>
<apex:pageBlockButtons>
<apex:commandButton value="Save" action="{!save}"/>                
<apex:commandButton value="Cancel" action="{!cancel}"/>             
</apex:pageBlockButtons>            
<apex:actionRegion >                
<apex:pageBlockSection title="Basic Opportunity Info" columns="1">                     
<apex:inputField value="{!Solution__c.CustomerID__c}"/>                     
<apex:pageBlockSectionItem >                        
<apex:outputLabel value="Product"/>                        
<apex:outputLabel >                            
<apex:inputField value="{!Solution__c.Product__c}">                                 
<apex:actionSupport event="onchange" rerender=" ACPPageBlock" status="Product__c"/>                             
</apex:inputField>                            
<apex:actionStatus startText="applying value..." id="Product__c"/>                          
</apex:outputLabel> 
</apex:pageBlockSectionItem> 
</apex:pageBlockSection>               
</apex:actionRegion>            
<apex:pageBlockSection title="Ratings and Reviews" columns="1" rendered="{!Solution__c.Product__c == 'UGC-R&R'}">                
<apex:inputField value="{!Solution__c.Sorting_Functionality__c}"/>            
</apex:pageBlockSection>            
</apex:pageBlock>
</apex:form>
</apex:page>
 

All Answers

Raj VakatiRaj Vakati
Are you using the Standard Solution object or the custom one ??

Try this
 
<apex:page> standardController="Solution" sidebar="false">
<apex:form>
<apex:pageblock title="Product Details" id="ACPPageBlock" mode="edit">
<apex:pagemessages/>
<apex:pageBlockButtons>
<apex:commandButton value="Save" action="{!save}"/>                
<apex:commandButton value="Cancel" action="{!cancel}"/>             
</apex:pageBlockButtons>            
<apex:actionRegion >                
<apex:pageBlockSection title="Basic Opportunity Info" columns="1">                     
<apex:inputField value="{!Solution.CustomerID__c}"/>                     
<apex:pageBlockSectionItem >                        
<apex:outputLabel value="Product"/>                        
<apex:outputLabel >                            
<apex:inputField value="{!Solution.Product__c}">                                 
<apex:actionSupport event="onchange" rerender=" ACPPageBlock" status="Product__c"/>                             
</apex:inputField>                            
<apex:actionStatus startText="applying value..." id="Product__c"/>                          
</apex:outputLabel> 
</apex:pageBlockSectionItem> 
</apex:pageBlockSection>               
</apex:actionRegion>            
<apex:pageBlockSection title="Ratings and Reviews" columns="1" rendered="{!Solution.Product__c == 'UGC-R&R'}">                
<apex:inputField value="{!Solution.Sorting_Functionality__c}"/>            
</apex:pageBlockSection>            
</apex:pageBlock>
</apex:form>
</apex:page>

 
Raj VakatiRaj Vakati
Make sure your profile is having an access  to Solution__c object if its a custom object 
Saurabh ThoratSaurabh Thorat

Hi Raj,

I'm using a custom object with the API name Solution__c

Also, I'm the System Admin and I do have access to the object

Raj VakatiRaj Vakati
Do you have access for the fields and make sure all the field API names are correct 

 
<apex:page> standardController="Solution__c" sidebar="false">
<apex:form>
<apex:pageblock title="Product Details" id="ACPPageBlock" mode="edit">
<apex:pagemessages/>
<apex:pageBlockButtons>
<apex:commandButton value="Save" action="{!save}"/>                
<apex:commandButton value="Cancel" action="{!cancel}"/>             
</apex:pageBlockButtons>            
<apex:actionRegion >                
<apex:pageBlockSection title="Basic Opportunity Info" columns="1">                     
<apex:inputField value="{!Solution__c.CustomerID__c}"/>                     
<apex:pageBlockSectionItem >                        
<apex:outputLabel value="Product"/>                        
<apex:outputLabel >                            
<apex:inputField value="{!Solution__c.Product__c}">                                 
<apex:actionSupport event="onchange" rerender=" ACPPageBlock" status="products"/>                             
</apex:inputField>                            
<apex:actionStatus startText="applying value..." id="products"/>                          
</apex:outputLabel> 
</apex:pageBlockSectionItem> 
</apex:pageBlockSection>               
</apex:actionRegion>            
<apex:pageBlockSection title="Ratings and Reviews" columns="1" rendered="{!Solution__c.Product__c == 'UGC-R&R'}">                
<apex:inputField value="{!Solution__c.Sorting_Functionality__c}"/>            
</apex:pageBlockSection>            
</apex:pageBlock>
</apex:form>
</apex:page>

 
Saurabh ThoratSaurabh Thorat
I have access to the fileds and i have even double checked the API names. This is driving me mad!
Raj VakatiRaj Vakati
finally one more try .. delete this page and create again 
Saurabh ThoratSaurabh Thorat
Tried. Same error. 
Raj VakatiRaj Vakati
I got it  .. Use this code and there was an extrac >

<apex:page standardController="Solution__c" sidebar="false">
<apex:form>
<apex:pageblock title="Product Details" id="ACPPageBlock" mode="edit">
<apex:pagemessages/>
<apex:pageBlockButtons>
<apex:commandButton value="Save" action="{!save}"/>                
<apex:commandButton value="Cancel" action="{!cancel}"/>             
</apex:pageBlockButtons>            
<apex:actionRegion >                
<apex:pageBlockSection title="Basic Opportunity Info" columns="1">                     
<apex:inputField value="{!Solution__c.CustomerID__c}"/>                     
<apex:pageBlockSectionItem >                        
<apex:outputLabel value="Product"/>                        
<apex:outputLabel >                            
<apex:inputField value="{!Solution__c.Product__c}">                                 
<apex:actionSupport event="onchange" rerender=" ACPPageBlock" status="Product__c"/>                             
</apex:inputField>                            
<apex:actionStatus startText="applying value..." id="Product__c"/>                          
</apex:outputLabel> 
</apex:pageBlockSectionItem> 
</apex:pageBlockSection>               
</apex:actionRegion>            
<apex:pageBlockSection title="Ratings and Reviews" columns="1" rendered="{!Solution__c.Product__c == 'UGC-R&R'}">                
<apex:inputField value="{!Solution__c.Sorting_Functionality__c}"/>            
</apex:pageBlockSection>            
</apex:pageBlock>
</apex:form>
</apex:page>
 
This was selected as the best answer
Saurabh ThoratSaurabh Thorat
Awesome, Thanks Raj, appreciate the help and time,