Handling error has occured errors on visual force pages on force.com sites

If you are using a force.com site and having a lot of visual force pages, you would encounter an error message which is error has occurred suddenly when you edit or roll back changes on visual force page. This would drive you insane and make you to pull your hair.

Cause of the problem.
Some times if you have apex classes which are dependent among them, making a change in one visual force page or class can result in a compile exception. If you ignore the error which happens when you use IDE like eclipse or force.com ide, the ide would say page compiled good. So this is caused to incomplete compile errors.

1. Go to the setup–>develop –> apex classes and click on compile all classes.
2. This would compile all classes and spit out the compile error. You can then fix the code and recompile which would solve the problem..Hope this solution works good for your site.

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.


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 *