+ Start a Discussion
Kumar Rao 1Kumar Rao 1 

Insufficient Privileges - VF Page

Dear Experts,

I encountered following "Insufficient Privileges" error onmy Custom Object VF Page Employee__c... I'm not sure why.. Kindly advise.

Error:
Insufficient Privileges You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary. For more information, see Insufficient Privileges Errors.

Code:
<Apex:Page StandardController="Employee__c">
<Apex:detail Subject="{!Employee__c.Emp_Name__c}"/>
</Apex:page>

Thanks,
Kumar
Best Answer chosen by Kumar Rao 1
surasura
please correct your apex:detail tag , subject should be your record id . try this
<Apex:Page StandardController="Employee__c">
<Apex:detail Subject="{!Employee__c.Id}"/>
</Apex:page>

All Answers

Dhriti MoulickDhriti Moulick
Hi kumar,

   Please go the login user profile.Add this page as part of that profile.I think this will help.

Thanks,

Dhriti

 
Kumar Rao 1Kumar Rao 1

Hello Dhriti Moulick,

Manythanks for your response, I'm new to SFDC, so kindly help me with navigations..

Cheers,

Kumar

Dhriti MoulickDhriti Moulick
Hi Kumar,

   if you feel above answer helps you,please mark it as a best answer.


Thanks,

Dhriti
surasura
please correct your apex:detail tag , subject should be your record id . try this
<Apex:Page StandardController="Employee__c">
<Apex:detail Subject="{!Employee__c.Id}"/>
</Apex:page>
This was selected as the best answer
Kumar Rao 1Kumar Rao 1
Thank you sura.. Its working.