+ Start a Discussion
Saravanan @CreationSaravanan @Creation 

Authorization Required Error

Hi All,

I have an page on site that have one form and two button(save & cancel).The page is loading correctly but while clicking save or cancel
I am getting Authorizartion required error.

Cancel method code:
PageReference curPage;
        if(redirectVal=='i')
             curPage = new PageReference('/apex/AAAA?id='+positionId);
        else
             curPage = new PageReference('/apex/BBBB');               
       
  curPage.setRedirect(true);
  return curPage;

redirectVal I am collection in the constructor.help me to figureout the issues.Thanks in advance
Best Answer chosen by Saravanan @Creation
AshwaniAshwani
Try to run from login into Salesforce. One of the reason can be is you are getting exception in controller but those exception cannot be visible from site. IOn site all exception show "Authorizartion required"

All Answers

AshwaniAshwani
Try to run from login into Salesforce. One of the reason can be is you are getting exception in controller but those exception cannot be visible from site. IOn site all exception show "Authorizartion required"
This was selected as the best answer
Saravanan @CreationSaravanan @Creation
Thanks Avilion its works. Do you know the reason for this below error

The installed managed class XXX.ExampleControler is not visible
AshlekhAshlekh
Hi,

It is not visible because this class is a part of Manage Package. In manage package we cann't see the code only can use the app which is installed.