Debugging Force.com SItes errors on the message error has occured

If you have a lot of visual force pages on force.com sites, one of the challenges is fixing the error has occurred error message on each visual force page. This message would drive you crazy and takes most of the time for developers to fix it. So here is some common tips where you can fix issues quickly.
1. If a visual force page crashes with the error has occured, one area to look is at the on load method on the visual force page. Go to the controller on load method and look at the new custom objects you have added in the soql query. Make sure that the guest user profile has read access to the custom object and field security is set to visible for those fields used in the soql query.
2. Another area is to look the logged in user profile. You can see this on customer portal settings where you can check the customer profile and for each profile, ensure that the custom object has field security and read permission on the custom object.
So these 2 places would help you to fix most of the security issues on visual force pages on force.com sites.

Please Subscribe

Subscribe to our mailing list to get tips on maximizing your salesforce

We respect your privacy.

Please subscribe

Subscribe to our mailing list and get tips to maximize salesforce to your email inbox.

I am honored to have your subscription. Stay tuned for tips to maximize your salesforce investment

Something went wrong.

buyan47

Author: buyan47

Hi there! My name is Buyan Thyagarajan. I am a Salesforce consultant specializing in Higher Education, Manufacturing and Marketing Automation. My blogs will help you to maximize your Salesforce CRM investments, prevent problems beforehand and make the right decisions. If you need to talk to me right away, you can email me at buyan47@gmail.com or call me at 302-438-4097

Leave a Reply

Your email address will not be published. Required fields are marked *