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
Ganesh Babu 7Ganesh Babu 7 

visual force page Insufficient Privileges Errors

I am getting below error as soon as i hit Name  ( inside Command Link). It was Supposed show the detail page but it throws 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. 
Profiles and all field level security are taken care.

VF Page:

<apex:page standardController="Account" recordSetVar="accounts">
<apex:form >
<apex:pageBlock title="Accounts">
<apex:dataList value="{!accounts}" var="a" >
<apex:commandLink reRender="depage">
{!a.name}
<apex:param name="cid" value="{a.id}"/>
</apex:commandLink>
</apex:datalist>
<apex:outputPanel id="depage">
<apex:detail subject="{!$CurrentPage.parameters.cid}"  relatedList="false"/>
</apex:outputPanel>
</apex:pageBlock>
</apex:form>
</apex:page>
Abdul KhatriAbdul Khatri
Can you check if the profiles has been given access to VF Page?

User-added image
Ganesh Babu 7Ganesh Babu 7
Yes Abdul, profiles are there. If i pass manually value to Param(cid) in URL it is working.

Thanks for help...
Ganesh Babu 7Ganesh Babu 7
Issue Resolved.............<apex:param name="cid" value="{!a.id}"/>.
I missed the sympol  !  inside the value.
Abdul KhatriAbdul Khatri
Can you make your own answer the best so that it marked as Resolved? Thanks