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
Michael MMichael M 

VF page displaying error for non-admin users

Anyone know what the issue is? 

My VF page is displaying fine for me (admin), but other users are seeing this on the page display:


Object type not accessible. Please check permissions and make sure the object is not in development mode: No such column 'Referral_Name__c' on entity 'Eligibility__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.. Original queryString was: 'SELECT Created_Date_formula__c, (SELECT Address_Number_and_Street__c, Anniversary_Date__c, City__c, Client_ID__c, County_formula__c, CS_Code10__c, CS_Code11__c, CS_Code12__c, CS_Code13__c, CS_Code14__c, CS_Code15__c, CS_Code16__c, CS_Code17__c, CS_Code18__c, CS_Code19__c, CS_Code1__c, CS_Code20__c, CS_Code2__c, CS_Code3__c, CS_Code4__c, CS_Code5__c, CS_Code6__c, CS_Code7__c, CS_Code8__c, CS_Code9__c, CS_Description10__c, CS_Description11__c, CS_Description12__c, CS_Description13__c, CS_Description14__c, CS_Description15__c, CS_Description16__c, CS_Description17__c, CS_Description18__c, CS_Description19__c, CS_Description1__c, CS_Description20__c, CS_Description2__c, CS_Description3__c, CS_Description4__c, CS_Description5__c, CS_Description6__c, CS_Description7__c, CS_Description8__c, CS_Description9__c, Date_of_Birth__c, Date_of_Service__c, eMeds_error_message__c, Exception_Code1__c, Exception_Code2__c, Exception_Code3__c, Exception_Code4__c, Exception_Code5__c, Gender_Formula__c, Id, Medicare_Identifier__c, Name_formula__c, NAMI_Amount__c, NAMI_Effective_Date__c, Office__c, Other_Payer1_Name__c, Other_Payer2_Name__c, Other_Payer3_Name__c, Other_Payer_Name__c, Plan__c, Plan_Address_2__c, Plan_Address_City__c, Plan_Address_Number_and_Street__c, Plan_Address_State__c, Plan_Address_Zip_Code__c, Plan_Code__c, Plan_Date__c, Plan_Name__c, Plan_Phone_Number__c, Provider1__c, Provider2__c, Provider3__c, Provider4__c, Provider5__c, Recertification_Month__c, State__c, Third_Party1_Address_2__c, Third_Party1_Address_Number_and_Street__c, Third_Party1_benefit_id__c, Third_Party1_City__c, Third_Party1_Group_Number__c, Third_Party1_Phone__c, Third_Party1_Policy_Number__c, Third_Party1_State__c, Third_Party1_Zip_Code__c, Third_Party2_Address_2__c, Third_Party2_Address_Number_and_Street__c, Third_Party2_benefit_id__c, Third_Party2_City__c, Third_Party2_Group_Number__c, Third_Party2_Phone__c, Third_Party2_Policy_Number__c, Third_Party2_State__c, Third_Party2_Zip_Code__c, Third_Party3_Address_2__c, Third_Party3_Address_Number_and_Street__c, Third_Party3_benefit_id__c, Third_Party3_City__c, Third_Party3_Group_Number__c, Third_Party3_Phone__c, Third_Party3_Policy_Number__c, Third_Party3_State__c, Third_Party3_Zip_Code__c, Zip_Code__c FROM Eligibilities__r), Id, Patient_SSN__c FROM Lead WHERE id = '00Q63000007eJqq''


Here is the VF page:
<apex:page standardController="Lead"  lightningStylesheets="true">

    
    <apex:stylesheet value="{!$Resource.emedCss}"/>  
  
    
<!-- Header section --> 
    <div>
        <div style = "float: left"> {!lead.Created_Date_formula__c} </div>
        <div style = "float: right; font-size: 14px; position: relative; padding-right:30%;"> eMeds Eligibility Response Details - Salesforce </div>
    </div>
    <br/>
    <apex:image id="theImage" value="{!$Resource.eMedSymbol}" width="500" height="45"/>
 <h2>
     Eligibility Response Details 
    </h2> 
<apex:pageBlock mode="maindetail">
  <apex:repeat value="{!Lead.Eligibilities__r}" var="ci">  
      <!-- Error Message -->
    <apex:outputPanel rendered="{!IF(ci.eMeds_error_message__c ='' || ci.eMeds_error_message__c = null,false,true)}">
        <h2 style = "background-color: #faed27 ;">
          {!ci.emeds_error_message__c}
        </h2>
      </apex:outputPanel>     
  <!-- Missing Fields Information  
    <apex:outputPanel rendered="{!IF(  lead.medicaid_id__c = null && lead.patient_ssn__c = null,false,true)}">
        <h2 style = "background-color: #faed27 ;">
          Medicaid ID and SSN fields are both empty. Please fill in one of them to make the callout. 
        </h2>
      </apex:outputPanel>   -->        

<!-- Client Information -->
<apex:outputPanel styleClass="boldHeader" rendered="{!IF(ci.Client_ID__c ='' ||  ci.Client_ID__c = null ,false,true)}">           
<div class= "containerOfContainer">
    <div class="container">
 <h3>
     Client Information:
 </h3>
<div class="floatLeft">
    
<table>
  <tr>
    <th>Client ID:</th>
    <td>{!ci.Client_ID__c}</td>
  </tr>
  <tr>
    <th>Gender:</th>
    <td>{!ci.Gender_Formula__c}</td>
  </tr>
  <tr>
    <th>Date of Birth:</th>
    <td>{!ci.Date_of_Birth__c}</td>
  </tr>
  <tr>
    <th>Anniversary Date:</th>
    <td>{!ci.Anniversary_Date__c}</td>
  </tr>
  <tr>
    <th>Recertification:</th>
    <td>{!ci.Recertification_Month__c}</td>
  </tr>
  <tr>
    <th>County:</th>
    <td>{!ci.County_formula__c}</td>
  </tr>
  <tr>
    <th>Date of Service:</th>
    <td>{!ci.Date_of_Service__c}</td>
  </tr>    
   <tr>
    <th></th>
    <td></td>
  </tr>  
</table>
    <br/>
</div>

<div class="floatRight">
<table>
  <tr>
    <th>Client Name:</th>
    <td>{!ci.Name_formula__c}</td>
  </tr>
  <tr>
    <th>SSN:</th>
    <td>{!lead.patient_ssn__c}</td>
  </tr>
  <tr>
    <th>Address:</th>
    <td>{!ci.Address_Number_and_Street__c}</td>
  </tr>
  <tr>
  <!--  <th>Address 2:</th>
    <td></td>
  </tr>
  <tr> --> 
    <th>City, State Zip:</th>
    <td>{!ci.City__c}, {!ci.State__c}  {!ci.Zip_Code__c}</td>
  </tr>
  <tr>
    <th>Office:</th>
    <td>{!ci.Office__c}</td>
  </tr>
  <tr>
    <th>Plan Date:</th>
    <td>{!ci.Plan_Date__c}</td>
  </tr>        
</table>
    <br/>
</div>
</div>
</div>
</apex:outputPanel>
    <br/>
<!-- Medicaid Eligibility Information-->   
<apex:outputPanel styleClass="boldHeader" rendered="{!IF(ci.CS_Code1__c ='' ||  ci.CS_Code1__c = null ,false,true)}">       
<div class= "containerOfContainer">
<div class="container">
   <h3>
     Medicaid Eligibility Information:
   </h3>            
   <h3 class="planName"> 
      {!ci.Plan__c}  
    </h3>
  <!-- NAMI -->
<apex:outputPanel styleClass="boldHeader" rendered="{!IF(ci.NAMI_Amount__c ='' ||  ci.NAMI_Amount__c = null ,false,true)}">        
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; {!ci.NAMI_Amount__c}
    <br/>
 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {!ci.NAMI_Effective_Date__c}
    </apex:outputPanel>    
    <h4>
      Covered Services  
    </h4>
 <table  class="boxedInTable">
    <col style="width:15%"/>
    <col style="width:40%"/>  
     <tr>
     <th>Code</th>
     <th> Description</th>
     </tr>       
     <tr>
     <td>{!ci.CS_Code1__c}</td>
     <td>{!ci.CS_Description1__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code2__c}</td>
     <td>{!ci.CS_Description2__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code3__c}</td>
     <td>{!ci.CS_Description3__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code4__c}</td>
     <td>{!ci.CS_Description4__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code5__c}</td>
     <td>{!ci.CS_Description5__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code6__c}</td>
     <td>{!ci.CS_Description6__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code7__c}</td>
     <td>{!ci.CS_Description7__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code8__c}</td>
     <td>{!ci.CS_Description8__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code9__c}</td>
     <td>{!ci.CS_Description9__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code10__c}</td>
     <td>{!ci.CS_Description10__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code11__c}</td>
     <td>{!ci.CS_Description11__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code12__c}</td>
     <td>{!ci.CS_Description12__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code13__c}</td>
     <td>{!ci.CS_Description13__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code14__c}</td>
     <td>{!ci.CS_Description14__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code15__c}</td>
     <td>{!ci.CS_Description15__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code16__c}</td>
     <td>{!ci.CS_Description16__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code17__c}</td>
     <td>{!ci.CS_Description17__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code18__c}</td>
     <td>{!ci.CS_Description18__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code19__c}</td>
     <td>{!ci.CS_Description19__c}</td>
     </tr>
      <tr>
     <td>{!ci.CS_Code20__c}</td>
     <td>{!ci.CS_Description20__c}</td>
     </tr>     
 </table>
    <br/>
</div>
</div>   
    </apex:outputPanel>    
    <br/>
<!-- Medicaid Managed Care -->
<apex:outputPanel styleClass="boldHeader" rendered="{!IF(ci.Plan_Name__c ='' ||  ci.Plan_Name__c = null ,false,true)}">           
<div class= "containerOfContainer">
<div class="container">
   <h3>
     Medicaid Managed Care:
   </h3> 
<table class="boxedInTable">
  <tr>
    <th>Plan name:</th>
    <td>{!ci.Plan_Name__c}</td>
  </tr>
  <tr>
    <th>Address:</th>
      <td>{!ci.Plan_Address_Number_and_Street__c} {!ci.Plan_Address_2__c}, {!ci.Plan_Address_City__c} {!ci.Plan_Address_State__c} {!ci.Plan_Address_Zip_Code__c}</td>
  </tr>
  <tr>
    <th>Phone:</th>
    <td>{!ci.Plan_Phone_Number__c}</td>
  </tr>
  <tr>
    <th>Plan Code:</th>
    <td>{!ci.Plan_Code__c}</td>
  </tr>
</table>  
    <br/>
</div>
</div> 
    </apex:outputPanel>
    <br/>
    
<!-- Medicaid Exceptions -->
<apex:outputPanel styleClass="boldHeader" rendered="{!IF(ci.Exception_Code1__c ='' ||  ci.Exception_Code1__c = null ,false,true)}">               
<div class= "containerOfContainer">
<div class="container">
   <h3>
       Medicaid Exceptions:
   </h3> 
 <table  class="boxedInTable">
    <col style="width:30%"/>
    <col style="width:40%"/> 
     <tr>
     <th colspan="2">Exception Code</th>
     <th style="padding-right:10px;" colspan="3">Provider</th>
     </tr>       
     <tr>
     <td>{!ci.Exception_Code1__c}</td>
     <td>{!ci.Provider1__c}</td>
     </tr>
     <tr>
     <td>{!ci.Exception_Code2__c}</td>
     <td>{!ci.Provider2__c}</td>
     </tr>
     <tr>
     <td>{!ci.Exception_Code3__c}</td>
     <td>{!ci.Provider3__c}</td>
     </tr>
     <tr>
     <td>{!ci.Exception_Code4__c}</td>
     <td>{!ci.Provider4__c}</td>
     </tr>
     <tr>
     <td>{!ci.Exception_Code5__c}</td>
     <td>{!ci.Provider5__c}</td>
     </tr>     
  </table>    
    <br/>
</div>
</div>
    </apex:outputPanel>    
    <br/> 
<!-- Medicare Information--> 
<apex:outputPanel styleClass="boldHeader" rendered="{!IF(ci.Medicare_Identifier__c ='' ||  ci.Medicare_Identifier__c = null ,false,true)}">                   
<div class= "containerOfContainer">
<div class="container">
   <h3>
     Medicare Information:
   </h3> 
<table style="padding-left: 3px;" class="boxedInTable">
  <tr>
    <th>Other Payer Name:</th>
    <td>{!ci.Other_Payer_Name__c}</td>
  </tr>
  <tr>
    <th>Medicare Identifier:</th>
      <td>{!ci.Medicare_Identifier__c}</td>
  </tr>
</table>  
    <br/>
</div>
</div> 
    </apex:outputPanel>    
 <br/>    

<!-- Third Party Insurance -->   
<apex:outputPanel styleClass="boldHeader" rendered="{!IF(ci.Other_Payer1_Name__c ='' ||  ci.Other_Payer1_Name__c = null ,false,true)}">        
<div class= "containerOfContainer">
<div class="container">
   <h3>
     Third Party Insurance:
   </h3>        
<table style="padding-left: 3px;" class="boxedInTable">
  <tr>
    <th>Other Payer Name:</th>
    <td>{!ci.Other_Payer1_Name__c}</td>
  </tr>
  <tr>
    <th>Carrier Code:</th>
      <td>{!ci.Third_Party1_benefit_id__c}</td>
  </tr>
 <tr>
    <th>Other Payer Address:</th>
    <td>{!ci.Third_Party1_Address_Number_and_Street__c} {!ci.Third_Party1_Address_2__c}, {!ci.Third_Party1_City__c} {!ci.Third_Party1_State__c} {!ci.Third_Party1_Zip_Code__c} </td>
  </tr>
  <tr>
    <th>Phone Number:</th>
      <td>{!ci.Third_Party1_Phone__c}</td>
  </tr>
 <tr>
    <th>Policy Number:</th>
    <td>{!ci.Third_Party1_Policy_Number__c}</td>
  </tr>   
 <tr>
    <th>Group Number:</th>
    <td>{!ci.Third_Party1_Group_Number__c}</td>
  </tr>     
</table>  
     
 <br/>  
<apex:outputPanel styleClass="boldHeader" rendered="{!IF(ci.Other_Payer2_Name__c ='' ||  ci.Other_Payer2_Name__c = null ,false,true)}">    
 <table style="padding-left: 3px;" class="boxedInTable">
  <tr>
    <th>Other Payer Name:</th>
    <td>{!ci.Other_Payer2_Name__c}</td>
  </tr>
  <tr>
    <th>Carrier Code:</th>
      <td>{!ci.Third_Party2_benefit_id__c}</td>
  </tr>
 <tr>
    <th>Other Payer Address:</th>
    <td>{!ci.Third_Party2_Address_Number_and_Street__c} {!ci.Third_Party2_Address_2__c}, {!ci.Third_Party2_City__c} {!ci.Third_Party2_State__c} {!ci.Third_Party2_Zip_Code__c} </td>
  </tr>
  <tr>
    <th>Phone Number:</th>
      <td>{!ci.Third_Party2_Phone__c}</td>
  </tr>
 <tr>
    <th>Policy Number:</th>
    <td>{!ci.Third_Party2_Policy_Number__c}</td>
  </tr>   
 <tr>
    <th>Group Number:</th>
    <td>{!ci.Third_Party2_Group_Number__c}</td>
  </tr>     
</table>        
 <br/>  
 </apex:outputPanel>    
 
<apex:outputPanel styleClass="boldHeader" rendered="{!IF(ci.Other_Payer3_Name__c ='' ||  ci.Other_Payer3_Name__c = null ,false,true)}">       
 <table style="padding-left: 3px;" class="boxedInTable">
  <tr>
    <th>Other Payer Name:</th>
    <td>{!ci.Other_Payer3_Name__c}</td>
  </tr>
  <tr>
    <th>Carrier Code:</th>
      <td>{!ci.Third_Party3_benefit_id__c}</td>
  </tr>
 <tr>
    <th>Other Payer Address:</th>
    <td>{!ci.Third_Party3_Address_Number_and_Street__c} {!ci.Third_Party3_Address_2__c}, {!ci.Third_Party3_City__c} {!ci.Third_Party3_State__c} {!ci.Third_Party3_Zip_Code__c} </td>
  </tr>
  <tr>
    <th>Phone Number:</th>
      <td>{!ci.Third_Party3_Phone__c}</td>
  </tr>
 <tr>
    <th>Policy Number:</th>
    <td>{!ci.Third_Party3_Policy_Number__c}</td>
  </tr>   
 <tr>
    <th>Group Number:</th>
    <td>{!ci.Third_Party3_Group_Number__c}</td>
  </tr>     
</table> 
    </apex:outputPanel>    
 </div>
</div>    
</apex:outputPanel>     
     </apex:repeat>     
    </apex:pageBlock> 

          
</apex:page>
Best Answer chosen by Michael M
Michael MMichael M
Ah- this is fixed. The problem was the Object's status is "in development" instead of "Deployed" Thank you!

All Answers

VinayVinay (Salesforce Developers) 
Hi Micheal,

Can you check object permission and field level fls?

Also check permission of Referral_Name__c field on entity 'Eligibility__c' object.

Thanks,
Michael MMichael M
Object permission: the user's profile has modify all permission for Eligibility__c object

Field level security for Referral_name__c: the user's profile is Visible
Michael MMichael M
Ah- this is fixed. The problem was the Object's status is "in development" instead of "Deployed" Thank you!
This was selected as the best answer
VinayVinay (Salesforce Developers) 
Good to know issue is fixed.