+ Start a Discussion
bdhcodebdhcode 

Error returned when referencing a custom object with a standardController

this works when referencing standard object like accounts but below returns an error message "plan_c does not exist" when referencing a custom object 
 
<apex:page standardController="plan_c">

   Hello {!$User.FirstName}!    
   
   <p>You are viewing the {!plan_c.name} account.</p>
   

  </apex:page>
 
 
Saw some others had this problem a while back but not able to find a solution on the board.  Something simple and obvious perhaps given how basic this is?
 
Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard
Custom objects have a suffix of '__c' - i.e. 2 underscores followed by 'c' - your references only have one underscore and thus VF can't handle them.

All Answers

bob_buzzardbob_buzzard
Custom objects have a suffix of '__c' - i.e. 2 underscores followed by 'c' - your references only have one underscore and thus VF can't handle them.
This was selected as the best answer
bdhcodebdhcode
That was it, thanks!