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
Bob_zBob_z 

Force.com Authorization Required error message

I created a survey to using visualforce and force.com sites. when i test the force.com survey link with the case.id, account.id and the contact.id in the link, clicking the submit button I get the Authorization Required error. Why won't the information go back to the survey object with that info?

 

 

bob_buzzardbob_buzzard

Is this a public access site?  If so, it may be that the code is throwing an exception - I've found that if that happens, the platform attempts to send you to an error page.  As the error page is only available to authenticated users, you get the auth required.

 

Have you tried turning on debug logging for the public access user for the site to see if there is an error occuring? 

Pradeep_NavatarPradeep_Navatar

You need to give the access permissions through the Public Access Settings from site details page for the visulaforce pages and objects for the site guest users to access them on site.

matturbanowskimatturbanowski
I had the same issue. It turned out that my controller class had "with sharing" enabled. I changed this to "without sharing" and it then worked.