Activity Forums Salesforce® Discussions Insufficient Privileges Error - Partially Rendering Visualforce page

  • Insufficient Privileges Error - Partially Rendering Visualforce page

    Posted by Ajit on April 14, 2016 at 7:50 am

    I am facing a problem where I am partially rendering my Visualforce page and I am getting this error

    "You have not 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."

     

    <apex:CommandLink reRender="sectiion1">

     

    <apex:outputPanel id="section1">
    <apex:detail subject="{!$CurrentPage.parameters.id}"/>
    </apex:outputPanel>

     

     

     

    shariq replied 6 years, 1 month ago 4 Members · 3 Replies
  • 3 Replies
  • Rachit

    Member
    April 14, 2016 at 7:51 am

    I think this is an issue pertaining to field level security.

    GO to the object and select the field and click on field level security , some times it also creates an error insufficient privileges.Thanks

  • Parul

    Member
    September 19, 2018 at 11:36 pm

    Hello Ajit,

    I replicated this and found out the following:

    Instead of:

    <apex:param value="{a.ID}" name="aID"/>
    You need:

    <apex:param value="{!a.ID}" name="aID"/>
    The line of code is missing a '!', which makes the page parameter be '{a.ID}' instead of the actual Id. Then SFDC reports that you don't have privileges for the Account with Id '{a.ID}', which is confusing but makes sense.

    Hope this helps.

  • shariq

    Member
    September 20, 2018 at 11:23 pm

    Hi,

    I think you have not given the field permission on that profile thats why it is giving this error.

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos